#10 segmentation fault

open
nobody
None
5
2002-06-04
2002-06-04
Anonymous
No

* OS - linux , debian woody.
* application - C++
* result segmentation fault
* note -
In function "fc_close_bfd_file", file "fc_names.c" if line
"free(core_syms)" is quoted out , fcdump works fine ,
core_syms pointer looks ok to me -

* data -
08:58pm-~/visitor/ ť fcdump -debug prog
FDump:DEBUG: opening profile data file functioncheck.fc
FDump:DEBUG: reading headers...
FDump:DEBUG: reading arcs (434)...
FDump:DEBUG: reading functions (217)...
FDump:DEBUG: reading dynamic objects (8)...
FDump:DEBUG: reading memory leaks (0)...
FDump:DEBUG: reading invalid free (0)...
FDump:DEBUG: reading invalid realloc (0)...
FDump:DEBUG: done.
FDump:DEBUG: computing names...
FDump:DEBUG: Solving names...
FDump:DEBUG: opening executable 'prog'
FDump:DEBUG: cleaning arcs..
FDump:DEBUG: extracting names...
FDump:DEBUG: still missing details
FDump:DEBUG: trying object
'/home/me/UTIL/WORK/FNCHECK/LIBDIR/libfc.so.0'
FDump:DEBUG: trying object '/usr/lib/libstdc++.so.3'
Aborted
08:58pm-~/visitor ť gdb fcdump
(gdb) set args -info prog
(gdb) run
Starting program:
/home/me/UTIL/WORK/FNCHECK/BIN/fcdump -info
prog

Program received signal SIGABRT, Aborted.
0x4009d781 in kill () from /lib/libc.so.6
(gdb) ba
#0 0x4009d781 in kill () from /lib/libc.so.6
#1 0x4009d464 in raise () from /lib/libc.so.6
#2 0x4009ebe1 in abort () from /lib/libc.so.6
#3 0x400e4a10 in malloc_set_state () from /lib/libc.so.6
#4 0x400e2a29 in free () from /lib/libc.so.6
#5 0x0804e5e9 in fc_close_bfd_file
(core_bfd=0x807f4c0, core_num_syms=0,
core_text_sect=0x8085b50, core_syms=0x8097e18,
core_min_insn_size=1, core_offset_to_code=0)
at fc_names.c:139
#6 0x0804f21b in fc_names_solve (force_names=0,
nb_fnc=217, fncs=0x805f9d0, nb_lib=8,
dyns=0x8064110, nb_arcs=434, arcs=0x805d7e0,
exec_name=0x805d640 "prog", demangle=1,
style=256, lonly=0x0, nb_only=0, lnot=0x0, nb_not=0,
nb_leaks=0, leaks=0x0, nb_free=0,
free=0x0, nb_realloc=0, realloc=0x0) at
fc_names.c:587
#7 0x0804b8e1 in main (argc=3, argv=0xbffff844) at
fc_dump.c:996
(gdb)

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks