LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2015, 02:21 PM   #1
Dark Bluetooth
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
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 ?? ()
 
Old 04-08-2015, 11:49 PM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
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)
 
1 members found this post helpful.
Old 04-09-2015, 12:16 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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.
 
1 members found this post helpful.
Old 04-09-2015, 10:22 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Also make sure you compile it with -g -O0 -fbounds-check
 
1 members found this post helpful.
Old 04-09-2015, 11:53 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Dark Bluetooth View Post
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.
 
1 members found this post helpful.
Old 04-09-2015, 07:17 PM   #6
Dark Bluetooth
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
and tibia server but I am without his source
 
Old 04-10-2015, 07:51 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Dark Bluetooth View Post
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fatal error in MPI_Init: Other MPI error, error stack:gethostbyname failed(errno 1) turbo67 Linux - Networking 2 10-17-2018 04:06 AM
Fatal error in MPI_Init: Other MPI error, error stack:gethostbyname failed(errno 1) turbo67 Red Hat 1 06-15-2014 05:53 AM
Fatal error in MPI_Init: Other MPI error, error stack:gethostbyname failed(errno 1) shilpiiitr Linux - Software 0 01-13-2014 02:44 PM
Error 502 : Display Fatal Error Message, Error pushing image, dbpaCT failed! HaloCheng Linux - Newbie 1 09-12-2012 12:02 PM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration