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 ➜ Running the server ➜ Segmentation fault.

Segmentation fault.

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


Posted by Scalar   (2 posts)  Bio
Date Fri 13 Nov 2015 12:43 AM (UTC)
Message
Okay, so I tried adding in a snippet for extra2 flags and the rom failed to start with a segmentation fault. I removed all newly added code and it says "ready to rock of port 4000", then segmentation fault right under that. I read the gdb on this forum but I can't even make it to the second part because this is all it reads:

Core was generated by `../src/rom 4000'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x080904fd in ?? ()

That, to me, doesn't seem like a whole lot of info to go on. Any suggestions?
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Fri 13 Nov 2015 04:34 PM (UTC)

Amended on Fri 13 Nov 2015 04:35 PM (UTC) by Fiendish

Message
dFirst, compile in debug mode.

Then, the only useful way to debug a crash with gdb is to try to get a backtrace from the point of the crash. So either get a core dump file if your system generates them or run the server from inside gdb and then wait for it to crash and then "bt".

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 14 Nov 2015 12:02 AM (UTC)

Amended on Sat 14 Nov 2015 12:03 AM (UTC) by Nick Gammon

Message
If you follow my post about gdb you should in fact be able to narrow it down quite a lot.

http://www.gammon.com.au/gdb

- 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.


14,307 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.