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 ➜ Pretitle snippet

Pretitle snippet

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


Pages: 1  2  3 

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #30 on Sun 13 Feb 2005 06:30 AM (UTC)
Message
I don't think Wuninitialized matters very much. Someone else could explain more about it, I'm not familar with Cygwin or how Wuninitialized works.

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #31 on Sun 13 Feb 2005 06:32 AM (UTC)
Message
attached gdb to smaug via
~/smaug/area
$gdb ../src/smaug.exe
run
...
blah
...
Agian the commands below are all i did while connected.

Sun Feb 13 02:22:10 2005 :: Sock.sinaddr: 127.0.0.1, port 1338.
Sun Feb 13 02:22:13 2005 :: Preloading player data for: Rakon (9K)
Sun Feb 13 02:22:14 2005 :: Loading player data for: Rakon (9K)
Sun Feb 13 02:22:14 2005 :: Rakon (127.0.0.1) has connected.
Sun Feb 13 02:22:29 2005 :: Log Rakon: cedit pretitle create
Sun Feb 13 02:22:55 2005 :: Rakon has quit (Room 1201).

Here i attempted to reconnect and when i put my password in --------->|
|
Sun Feb 13 02:22:56 2005 :: Sock.sinaddr: 127.0.0.1, port 1342. |
Sun Feb 13 02:22:58 2005 :: Preloading player data for: Rakon (9K) |
<-------------------------------------------------------|
Program received signal SIGSEGV, Segmentation fault. <problem.... i cannot find SIGSEGV anywhere>
0x610b4d71 in random () from /usr/bin/cygwin1.dll
(gdb) c
Continuing.
6 [main] smaug 3732 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1337 [main] smaug 3732 open_stackdumpfile: Dumping stack trace to smaug.exe.s
tackdump

Program exited with code 0305400.
(gdb) q

Bill@DDKXK661 ~/smaug/area
$ ls -li core*
ls: core*: No such file or directory

Bill@DDKXK661 ~/smaug/area
$ ls
Build.are export.are help.are newdark.are smaug.exe.stackdump<-----core file??? Stackdump... gdb won't procces it
area.lst gallery.are help.are.bak newgate.are srefuge.are
astral.are gods.are limbo.are pixie.are unholy.are
boot.txt grave.are limbo.are2 plains.are
chapel.are grind manor.are redferne.are
daycare.are grove.are midennir.are sewer.are
dwarven.are haon.are newacad.are shutdown.txt

Bill@DDKXK661 ~/smaug/area
$ gdb ../area/smaug.exe.stackdump

GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"..."/home/Bill/smaug/area/smaug.exe.s
tackdump": not in executable format: File format not recognized<----- Not a core file maybe??

(gdb) run
Starting program:
No executable specified, use `target exec'.

(gdb) q

------------
Thanks Agian Zeno

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #32 on Sun 13 Feb 2005 06:35 AM (UTC)
Message
You have to specify the core and exec file in gdb. For example:
gdb ../src/smaug.exe stackdump

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #33 on Sun 13 Feb 2005 06:38 AM (UTC)
Message
When I do that it says "no such file or directory" yet i can see it with LS in the area dir.

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #34 on Sun 13 Feb 2005 06:38 AM (UTC)
Message
Make sure you're typing it correctly, what I posted was just an example.

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #35 on Sun 13 Feb 2005 06:43 AM (UTC)
Message
Ok, in the area dir
ls
Smaug.exe.stackdump <is that what we want??

so i should use
gdb ../area/smaug.exe stackdump | or
gdb ../area/smaug.exe.stackdump?
there is no SD in the SRC dir

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #36 on Sun 13 Feb 2005 06:45 AM (UTC)
Message
You want:
gdb ../area/smaug.exe Smaug.exe.stackdump

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #37 on Sun 13 Feb 2005 06:49 AM (UTC)
Message
This is what I got. FWIW I can log in now, however if i log out. and try to log back in... the mud crashes
Bill@DDKXK661 ~/smaug/area
$ gbd ../area/smaug.exe smaug.exe.stackdump
bash: gbd: command not found

Bill@DDKXK661 ~/smaug/area
$ gdb ../area/smaug.exe smaug.exe.stackdump
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...../area/smaug.exe: No such file or
directory.

"/home/Bill/smaug/area/smaug.exe.stackdump" is not a core dump: File format not
recognized
(gdb)q
--------

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #38 on Sun 13 Feb 2005 06:52 AM (UTC)
Message
I moved the stackdump to the SRC dir and tried the gdb agian. this time all it said was. 'is not a core file. File format unrecogonized'

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #39 on Sun 13 Feb 2005 07:01 AM (UTC)
Message
File format not regonized.....rather..in the last post... ok ran gdb *sigh* did all the info stack and other stuff..heres what it listed

The following is what gdb spat out..Any insights?

Sun Feb 13 02:52:31 2005 :: Keldar ready at address DDKXK661 on port 4000.
Sun Feb 13 02:52:36 2005 :: Sock.sinaddr: 127.0.0.1, port 1423.
Sun Feb 13 02:52:38 2005 :: Preloading player data for: Rakon (9K)
Sun Feb 13 02:52:40 2005 :: Loading player data for: Rakon (9K)
Sun Feb 13 02:52:40 2005 :: Rakon (127.0.0.1) has connected.
Sun Feb 13 02:53:31 2005 :: Rakon has quit (Room 1201).
Sun Feb 13 02:53:32 2005 :: Sock.sinaddr: 127.0.0.1, port 1427.
Sun Feb 13 02:53:35 2005 :: Preloading player data for: Rakon (9K)

Program received signal SIGSEGV, Segmentation fault.
0x610b4d71 in random () from /usr/bin/cygwin1.dll
(gdb) bt
#0 0x610b4d71 in random () from /usr/bin/cygwin1.dll
#1 0x610b4b07 in random () from /usr/bin/cygwin1.dll
#2 0x610b51d5 in random () from /usr/bin/cygwin1.dll
#3 0x6105bc88 in dll_entry@12 () from /usr/bin/cygwin1.dll
#4 0x6108e1ef in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#5 0x004ac824 in nanny (d=0xa234420, argument=0x22eab0 "Cyco1")<-------arg shows password???
at comm.c:1736
#6 0x004aa0c3 in game_loop () at comm.c:649
#7 0x004a9582 in main (argc=1, argv=0xa0519d0) at comm.c:309
(gdb) info w32
List of info w32 subcommands:

(gdb) list
152 #ifdef IMC
153 int imcsocket = -1;
154 #endif
155
156 /*
157 * Memory debugging if needed.
158 */
159 #if defined(MALLOC_DEBUG)
160 malloc_debug( 2 );
161 #endif
(gdb) list
162
163 DONT_UPPER = FALSE;
164 num_descriptors = 0;
165 first_descriptor = NULL;
166 last_descriptor = NULL;
167 sysdata.NO_NAME_RESOLVING = TRUE;
168 sysdata.WAIT_FOR_AUTH = TRUE;
169
170 /*
171 * Init time.
(gdb) list
172 */
173 gettimeofday( &now_time, NULL );
174 current_time = (time_t) now_time.tv_sec;
175 /* gettimeofday( &boot_time, NULL); okay, so it's kludgy, sue me :) *
/
176 boot_time = time(0); /* <-- I think this is what you wanted
*/
177 strcpy( str_boot_time, ctime( &current_time ) );
178
179 /*
180 * Init boot time.
181 */
(gdb) list
-------------
man... What is happing to the code??? :>

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #40 on Sun 13 Feb 2005 07:28 AM (UTC)
Message
As far as I know, Cygwin cannot generate core dumps that work in GDB. That is why it was not recognizing the files.

As for your problem, you need to show us the code being run in your code:
#5 0x004ac824 in nanny (d=0xa234420, argument=0x22eab0 "Cyco1")<-------arg shows password???
at comm.c:1736

That line and its surrounding lines is what you need to show us. Typing in 'list' without going to the right stack frame isn't very useful. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #41 on Tue 15 Feb 2005 05:30 AM (UTC)
Message
Heres comm.c A few lines before the error and a few after.

strcpy( buf, ch->pcdata->filename );
d->character->desc = NULL;
free_char( d->character );
d->character = NULL;
fOld = load_char_obj( d, buf, FALSE, FALSE );
ch = d->character;

I just took out the pretitle for now but hopefully I'll figure it out. Now theres a couple more errors. When an Imm character switches into a Mob, and does any command that calls act_info. such as who, whois, where, the game crashes. Thanks for your help.

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
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.


131,337 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

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.