LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Where is the error? (https://www.linuxquestions.org/questions/programming-9/where-is-the-error-4175539142/)

Dark Bluetooth 04-08-2015 02:21 PM

Where is the error?
 
when I try to connect my tibia server Segmentation fault
used the gdb and found this error, and most do not know where and WHAT have to Arumah
[New LWP 3909]
Core was generated by `./server.srv1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f36a8e1d168 in ?? ()

a4z 04-08-2015 11:49 PM

when you are in gdb and the error happens you can use 'bt' command to see the backtrace.
look at the backtrace, find the location in your code, look at the code, if you do not find the problem, ask again (with some more info than my program crashs)

pan64 04-09-2015 12:16 AM

is this your own app? You can try to rebuild it with debug info (and yes, please post the backtrace) You may find some tips also here: https://wiki.mageia.org/en/Debugging_software_crashes. Sometimes you can try ddd instead of gdb.

suicidaleggroll 04-09-2015 10:22 AM

Also make sure you compile it with -g -O0 -fbounds-check

rtmistler 04-09-2015 11:53 AM

Quote:

Originally Posted by Dark Bluetooth (Post 5344556)
when I try to connect my tibia server Segmentation fault
used the gdb and found this error, and most do not know where and WHAT have to Arumah
[New LWP 3909]
Core was generated by `./server.srv1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f36a8e1d168 in ?? ()

So for this and your other question http://www.linuxquestions.org/questi...1/#post5342419 your style is to say "Help Error!!" and give just about zero information?

As said, if you're building code, then rebuild using the -g flag, personally I prefer it to be -ggdb.

Run it from within GDB and if/when it breaks invoke the backtrace "bt" command and report the results.

If you're trying to run code that's not yours, then why don't you report the system and what code you're trying to run, such as how you obtained the program.

Dark Bluetooth 04-09-2015 07:17 PM

and tibia server but I am without his source

rtmistler 04-10-2015 07:51 AM

Quote:

Originally Posted by Dark Bluetooth (Post 5345169)
and tibia server but I am without his source

Sorry, but another sentence fragment. I'm unfamiliar with that product.

You can either contact the writer/manufacturer, or you cannot.

That server software either makes statements about what systems it works on, or it does not.

Since you didn't list the Linux distribution and version, or kernel version you're running on, it's rather difficult to offer any further thoughts.

Perhaps you can post a link to where this tibia server is found. I see some hits on the web related to gaming.

Perhaps you can review their documentation to determine if you're trying to run it under a supported environment.

Perhaps you can contact the writers of that server for technical support.

Bottom line is that this is either something paid for, or free. Well supported, or not. Actually whether it's free or paid for, if it's not well supported, then the only real recourse you may have is to request a refund.


All times are GMT -5. The time now is 08:53 PM.