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
➜ str_alloc crash, null?
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
| Sat 26 Mar 2005 09:05 PM (UTC) |
Message
| #0 0x080e720c in str_alloc (str=0x0) at hashstr.c:50
#1 0x0816ccb7 in editor_clear_buf (ch=0x9ddaff8, edd=0x9de1e98, argument=0xbffebf52 "") at editor.c:616
#2 0x0816c746 in edit_buffer (ch=0x9ddaff8, argument=0xbffebf52 "") at editor.c:446
#3 0x080bed9c in game_loop () at comm.c:691
#4 0x080be62d in main (argc=8, argv=0xbffec390) at comm.c:317
But in frame 3...
(gdb) f 3
#3 0x080bed9c in game_loop () at comm.c:691
691 edit_buffer( d->character, cmdline );
(gdb) p cmdline
$4 = "/c\000and\000 up for the 10 Yen lapdances? o.o\000le decide to molest me\000s... =/\000angerous\000because of all the\000) Smiling he tells Hayaku to try.\000 gasped for air. His wounds began to heal around his chest and arm"...
Is cmdline suppose to be stored as that? :/ |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Sun 27 Mar 2005 02:30 AM (UTC) |
Message
| Just means that their command was /c, since the next character is \0, the null character. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #2 on Sun 27 Mar 2005 03:43 AM (UTC) |
Message
| In any case,
#0 0x080e720c in str_alloc (str=0x0) at hashstr.c:50
... you have a NULL string somewhere trying to be allocated :) | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Sun 27 Mar 2005 04:13 AM (UTC) |
Message
| Yeah I realized that. This is uh, Cronel's new editor snippet for Smaug. Heard about this bug from someone today. Would a simple ifcheck suffice? |
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.
12,015 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top