Home » Infrastructure » Linux » Core dump error in Linux
Core dump error in Linux [message #99130] Fri, 20 August 2004 08:30 Go to next message
ravi gupta
Messages: 2
Registered: November 2002
Junior Member
Hi,

I am new for Linux and working on enterprise Redhat Linux 2.4, I have created a executable file 'DIS3' (compiled C file with gcc).
Now for gcc version is
%gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
Copyright © 2002 Free Software Foundation, Inc.

This program is making core dump at run time.
Now I have used gdb to debug this at run time. I have attached the log below.
Please have a look and suggest me Becoz still I am not able to know where is the actuall problem.

Coz in the backtrace command it fives me 10 function to track the error line but in which  from main to function get_sfld I can check my code but after that I am not able to check where is the error. Other function exists in side the /lib/tls/libc.so.6
 library. So I am unable to find the erro and debug.

--- LOG Here ---------------------------------------
%gdb DIS3
GNU gdb Red Hat Linux (6.0post-0.20040223.17rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /amd/txcim/3/cim/amukherj/SRC/prod/Linux/9.2.0/bin/DIS3
./etc/linux.localsetup: No such file or directory.
[[Thread debugging using libthread_db enabled]]
[[New Thread -1230506080 (LWP 21862)]]

some printf statements here

Program received signal SIGSEGV, Segmentation fault.
[[Switching to Thread -1230506080 (LWP 21862)]]
0xb6b2318b in strlen () from /lib/tls/libc.so.6
(gdb)
(gdb) bt
#0 0xb6b4818b in strlen () from /lib/tls/libc.so.6
#1 0xb6b163c1 in vfprintf () from /lib/tls/libc.so.6
#2 0xb6b3223c in vsprintf () from /lib/tls/libc.so.6
#3 0xb6b1cecd in sprintf () from /lib/tls/libc.so.6
#4 0x080504b2 in get_sfld (field_in=0x807c690, sect_ptr=0x807c400) at DISprc.c:2403
#5 0x0804e048 in proc_flds (sect_ptr=0x807c400) at DISprc.c:1105
#6 0x0804da26 in proc_data_rec (sect_ptr=0x807c400, parent_sec=0x0) at DISprc.c:892
#7 0x0804d962 in proc_contents (drssnam=0xbfffe294 "SORT_LIMIT", parent_section=0x0)
at DISprc.c:813
#8 0x0804d1c5 in proc_dis_sect (parent_sect=0x0) at DISprc.c:566
#9 0x0804c74e in read_dis () at DISprc.c:250
#10 0x08049a59 in main (argc=1, argv=0xbfffe8e4) at DIS.c:308
(gdb)

-------Log Ends here ----------------------
Please suggest/Guide me.

Thanks
Ravi
Re: Core dump error in Linux [message #99231 is a reply to message #99130] Fri, 19 November 2004 04:03 Go to previous message
Raghavan R
Messages: 1
Registered: November 2004
Junior Member
Hi, I got a similar stack (shown below). Did you happen to fix your problem? If yes, I would really appreciate it if you could share the solution.

#0 0x42080b1b in strlen () from /lib/i686/libc.so.6
(gdb) bt
#0 0x42080b1b in strlen () from /lib/i686/libc.so.6
#1 0x42051e4d in vfprintf () from /lib/i686/libc.so.6
#2 0x4206dbf3 in vsprintf () from /lib/i686/libc.so.6
#3 0x08060fc8 in fs2d_CBELog ()
#4 0x0806a9a6 in fs2d_send_machine_sync_item ()
#5 0x0806ae29 in fs2d_generate_machine_sync ()
#6 0x0806aef7 in fs2d_generate_machine_sync ()
#7 0x0806aef7 in fs2d_generate_machine_sync ()
#8 0x0806aef7 in fs2d_generate_machine_sync ()
#9 0x0806aef7 in fs2d_generate_machine_sync ()
#10 0x0806aef7 in fs2d_generate_machine_sync ()
#11 0x0806aef7 in fs2d_generate_machine_sync ()
#12 0x0806a132 in fs2d_copy_cdb_to_machine ()
#13 0x080575be in fs2d_resynchronize_remote_cdb ()
#14 0x08056d38 in fs2d_cdb_sync_thread ()
#15 0x2aafffef in pthread_start_thread () from /lib/i686/libpthread.so.0

Regards,
Raghavan
Previous Topic: Agent Service Failed
Next Topic: 10g on Fedora core 2
Goto Forum:
  


Current Time: Sun Nov 27 02:59:07 CST 2022