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 ➜ ROM ➜ Compiling the server ➜ SIGSEG invalid memory reference?

SIGSEG invalid memory reference?

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


Posted by X8jedah8x   (4 posts)  Bio
Date Thu 18 Dec 2003 02:04 PM (UTC)
Message
First after ./startup & i get this.

kill Segmentation fault (core dumped)

In the logs I get

Thu Dec 18 07:00:31 2003 :: reading stonebow.are
Thu Dec 18 07:00:31 2003 :: SIGSEG (Invalid memory Reference)
Thu Dec 18 07:00:31 2003 :: VoR Crashed

This is what gdb gives me

Reading symbols from /bin/tcsh...(no debugging symbols found)...done.
Reading symbols from /lib/libtermcap.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libtermcap.so.2
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
0xffffe002 in ?? ()
(gdb) bt
#0 0xffffe002 in ?? ()
#1 0x420279c4 in __sigpause () from /lib/tls/libc.so.6
#2 0x08064177 in strcpy ()
#3 0x080640c4 in strcpy ()
#4 0x0806649c in strcpy ()
#5 0x08066652 in strcpy ()
#6 0x0804cea8 in strcpy ()
#7 0x0804aff0 in strcpy ()
#8 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6

never ever seen that... also in comm.c where SIGSEG is grepped at it shows this

void sig_seg( int sig )
{
log_string("SIGSEG (Invalid memory Reference)");
tell_all( sig );
}

any ideas?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Thu 18 Dec 2003 02:11 PM (UTC)
Message
Something is going wrong with reading the area stonebow.are... the back trace doesn't seem to be terribly useful, so go through the functions that handle reading area files. It also seems that strcpy is called before the crash, so look for places where strcpy is called.

Perhaps the area file is corrupt somehow, or perhaps the code is broken, or both. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Samson   USA  (683 posts)  Bio
Date Reply #2 on Fri 19 Dec 2003 06:59 PM (UTC)
Message
One other thing to consider - the crash handler in that code might be boogering your results. I'd suggest at least disabling that code and trying again to see if you get a useful core from it.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 19 Dec 2003 09:08 PM (UTC)
Message
And compile with debug symbols enabled.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


13,183 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.