Tony Robbins wrote: > > Hey all, > > I decided to try out CircleMUD 3.0 bpl 17 with Oasis OLC v1.6b. > > I'm running into that damn "zedit new" crash that people used to have > problems with, but I can't find the fix in the archives (and I've been > searching for 3 hours). > > If people can provide me some hints, I've been debugging this for hours (I > get anything from malloc() errors to crashes). > > I also tried using Oasis OLC v2.0's create_new_zone and related routines, > but this allowed me to create a new zone, but the new zone would ALWAYS be > put at the end of the list. > > Here is the code related to that: > > RECREATE(zone_table, struct zone_data, top_of_zone_table + 2); > zone_table[top_of_zone_table + 1].number = 32000; Hmm, I wonder if those trying to extend their zone count have remembered to do the bit above... > if (vzone_num > zone_table[top_of_zone_table].number) > rznum = top_of_zone_table + 1; > else { > for (i = top_of_zone_table + 1; i > 0 && vzone_num < zone_table[i - > 1].number; i--) > zone_table[i] = zone_table[i - 1]; > rznum = i; > } > zone = &zone_table[rznum]; > > In the if (...) check, we always reach the first case; vzone_num (the number > which one types in after zedit new) is always greater than > zone_table[top_of_zone_table].number. If I try to put log() statements with > the values of variables, it crashes. Sounds very dubious, strange question, but have you tried compiling without optimisation? The code above looks right, but it could be a library or gcc bug in cygwin... > I'm using CygWin b19 which has an annoying graphical GDB (that crashes more > often than the MUD), so I can't really get debugger output at the moment. You may find upgrading to the latest cygwin, b20 or b21 I think, may help. You should also be able to find gcc 2.95.2 as well, and probably the latest version of gdb (v 5.0) I've not actually looked at cygwin for a while. But I've definetly had circlemud working under cygwin... Chris +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT