LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-15-2014, 06:04 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,837

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308

there is a command ldconfig. it uses the file /etc/ld.so.conf and the dir /etc/ld.so.conf.d to look for libraries. You can see at this moment it found libs in /lib/tls/i686/cmov and /opt/hdf5-1.8.12-linux-shared/lib too and I have no idea what kind of libs are stored in those dirs. Probably you need to reconfigure it. Segfault is probably caused by using incompatible libraries. Try to set LD_LIBRARY_PATH=/lib.
 
1 members found this post helpful.
Old 05-15-2014, 06:30 AM   #17
leblinux
Member
 
Registered: Dec 2008
Posts: 49

Original Poster
Rep: Reputation: 0
Looks like no more SIGSEGV after adding: LD_LIBRARY_PATH=/lib


Quote:
gdb test
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/likewise-open/WIN2K/gfm01/brad/wn-branch-parallel/bin/test...done.
(gdb) run
Starting program: /home/likewise-open/WIN2K/gfm01/brad/wn-branch-parallel/bin/test

Program exited with code 0120.

but what does it mean code 0120?

Will test it and let you know if it is 100% solved
 
Old 05-15-2014, 06:38 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,837

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
the exit code is more or less a random value, because you have not specified anything. Try to insert return 0; or similar at the end of the main function.
 
1 members found this post helpful.
Old 05-15-2014, 06:42 AM   #19
leblinux
Member
 
Registered: Dec 2008
Posts: 49

Original Poster
Rep: Reputation: 0
No problem if it is a random value, I don't care thanks alot!!
 
  


Reply

Tags
code, gdb, sigsegv, ubuntu



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
Program received signal SIGSEGV, Segmentation fault. 0x082c7e76 in ZBR::sendRequest ( aicaicai Programming 4 04-22-2012 08:52 PM
Program received signal SIGSEGV, Segmentation fault. in newtDrawForm mbprajapati Linux - General 1 05-24-2008 10:33 PM
Program received signal SIGSEGV, Segmentation fault go939 Programming 4 08-22-2007 06:54 PM
Program received signal SIGSEGV, Segmentation fault dayalan_cse Linux - Newbie 8 12-15-2006 12:05 AM
Program received signal SIGSEGV, Segmentation fault ims_mca Linux - Distributions 0 03-09-2005 04:16 AM

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

All times are GMT -5. The time now is 08:55 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