- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Segmentation fault Error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 06:01 PM
тАО10-31-2007 06:01 PM
Segmentation fault Error
sastra 18: ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 60
sastra 19: autodock4 -p ata.dpf -l ata.dlg
Segmentation fault (core dumped)
- Tags:
- SIGSEGV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 06:03 PM
тАО10-31-2007 06:03 PM
Re: Segmentation fault Error
$ gdb autodock4 core
(gdb) bt
(gdb) q
Of course it would help if autodock 4 was compiled with -g.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 06:11 PM
тАО10-31-2007 06:11 PM
Re: Segmentation fault Error
sastra 17: gdb autodock4 core
HP gdb 3.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Detected 64-bit executable.
Invoking /opt/langtools/bin/gdb64.
Use "run" to continue execution.
(gdb) run
Starting program: /wisconsin/savani/biotool/autodocksuite-4.0.1/src/autodock-4.0
.1/autodock4
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /opt/langtools/lib/end.o.
Program received signal SIGSEGV, Segmentation fault.
0x400000000000d990 in main ()
- Tags:
- g++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 06:32 PM
тАО10-31-2007 06:32 PM
Re: Segmentation fault Error
Did you compile with -g for debug info?
>sastra 17: gdb autodock4 core
HP gdb 3.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
The latest is 5.7. Download it from:
http://www.hp.com/go/wdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 12:33 AM
тАО11-02-2007 12:33 AM
Re: Segmentation fault Error
The basic problem is that you have a bug in your program, which is causing the segmentation fault, leading to a core dump.
You will need to find out where in the code this is happening (and the information Dennis has given is the first steps towards this), and fix it.
Is it your program, or a third party application? Are there any errors given by the compiler, or by lint? Are you compiling with '-g' argument to your compiler (g++), as Dennis asks? Without that, you won't see symbols in the debugger, so will not find it easy to find where the code is failing. Another strategy is to put in trace statements, typically printf(), so you know how far the program gets before failing.
Andrew
(C joke; what's the difference between g++ and -g? 2g+1.)