Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Crash on destroy

Crash on destroy

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Fri 12 Nov 2004 04:37 PM (UTC)
Message
There was a crash when I destroyed an Immortal.
#0  0x08074513 in close_area (pArea=0x91a28b0) at act_wiz.c:5850
#1  0x08075cc6 in do_destroy (ch=0x923fd58, argument=0xfef1cde8 "tyke")
    at act_wiz.c:6125
#2  0x080ce941 in interpret (ch=0x923fd58, argument=0xfef1cde8 "tyke")
    at interp.c:571
#3  0x080a42b9 in game_loop () at comm.c:679
#4  0x080a3b6a in main (argc=8, argv=0xfef1d220) at comm.c:308


(gdb) f 0
#0  0x08074513 in close_area (pArea=0x91a28b0) at act_wiz.c:5850
5850            if ( rid->area == pArea || exit->to_room->area == pArea )
(gdb) list
5845          rid_next = rid->next;
5846
5847          for ( exit = rid->first_exit; exit; exit = exit_next )
5848          {
5849            exit_next = exit->next;
5850            if ( rid->area == pArea || exit->to_room->area == pArea )
5851            {
5852              STRFREE( exit->keyword );
5853              STRFREE( exit->description );
5854              UNLINK( exit, rid->first_exit, rid->last_exit, next, prev );


Not sure what is wrong, so I'm not sure what to print. But here is some...
(gdb) p *rid
$8 = {next = 0x90f3d40, next_sort = 0x0, first_person = 0x0,
  last_person = 0x0, first_content = 0x0, last_content = 0x0,
  first_extradesc = 0x0, last_extradesc = 0x0, area = 0x91a29e0,
  first_exit = 0x921b540, last_exit = 0x921b5e8, first_affect = 0x0,
  last_affect = 0x0, map = 0x0, plane = 0x9212160, mpact = 0x0, mpactnum = 0,
  mudprogs = 0x0, mpscriptpos = 0,
  name = 0x921b518 "Between Apartments 700-E and 700-F",
  description = 0x8ff8940 "", vnum = 4105, room_flags = 1073741824,
  progtypes = {bits = {0, 0, 0, 0}}, light = 0, sector_type = 1,
  tele_vnum = 0, tele_delay = 0, tunnel = 0, shouki = 0}


(gdb) p *pArea
$9 = {next = 0x91a73b8, prev = 0x91a26b0, next_sort = 0x91a73b8,
  prev_sort = 0x91a2440, next_sort_name = 0x0, prev_sort_name = 0x0,
  first_reset = 0x0, last_reset = 0x0,
  name = 0x91a2980 "{PROTO} Tyke's area in progress",
  filename = 0x91a2970 "Tyke.are", flags = 0, status = 2, age = 0,
  nplayer = 0, reset_frequency = 0, low_r_vnum = 600, hi_r_vnum = 699,
  low_o_vnum = 600, hi_o_vnum = 699, low_m_vnum = 600, hi_m_vnum = 699,
  low_soft_range = 0, hi_soft_range = 0, low_hard_range = 0,
  hi_hard_range = 0, spelllimit = 0, curr_spell_count = 0,
  author = 0x91a2960 "Tyke", era = 0x910aa98 "Modern", resetmsg = 0x0,
  last_mob_reset = 0x0, last_obj_reset = 0x0, max_players = 1, mkills = 0,
  mdeaths = 0, pkills = 0, pdeaths = 0, gold_looted = 0, illegal_pk = 0,
  high_economy = 0, low_economy = 0, weather = 0x91a29a8}


(gdb) p *exit
$10 = {prev = 0x0, next = 0x921b578, rexit = 0x0, to_room = 0x0,
  keyword = 0x8ff8940 "", description = 0x8ff8940 "", vnum = 4104,
  rvnum = 4105, exit_info = 0, key = -1, vdir = 0, distance = 0, pull = 0,
  pulltype = 0, keypad = 0}


So it's comparing Reklah.are to Tyke.are, nothing is null, so I'm not sure why it crashed.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Fri 12 Nov 2004 06:26 PM (UTC)
Message
The issue is with exit->to_room->area. exit->to_room is null, as per your p *exit.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Fri 12 Nov 2004 07:10 PM (UTC)
Message
Ah, didn't notice that while reviewing a chapter in Cisco. Hmmmm. It only happened because I manually changed some wrong vnums to the correct. Thanks.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,291 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.