[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Running the server
. . -> [Subject]  Segmentation fault.

Segmentation fault.

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

Posted by Scalar   (2 posts)  [Biography] bio
Date Fri 13 Nov 2015 12:43 AM (UTC)
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?
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] 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

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

[Go to top] top

Posted by Nick Gammon   Australia  (23,017 posts)  [Biography] 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

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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]