Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctfconvert coredumps on C++ binaries #118

Open
abhijeeg opened this issue Aug 3, 2015 · 0 comments
Open

ctfconvert coredumps on C++ binaries #118

abhijeeg opened this issue Aug 3, 2015 · 0 comments

Comments

@abhijeeg
Copy link

abhijeeg commented Aug 3, 2015

[CPLUSPLUS-N-CTF]$ uname -a
Linux cycrh6rtp02 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed May 15 10:48:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
[CPLUSPLUS-N-CTF]$ cat /etc/issue
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Kernel \r on an \m

[CPLUSPLUS-N-CTF]$ cat /etc/os-release
cat: /etc/os-release: No such file or directory
[CPLUSPLUS-N-CTF]$ cat ~/dtrace_for_ctf_build/dtrace/bu
build@ build-2.6.32-504.el6.x86_64/
[CPLUSPLUS-N-CTF]$ cat ~/dtrace_for_ctf_build/dtrace/build/po
port.h port.sh
[CPLUSPLUS-N-CTF]$ cat ~/dtrace_for_ctf_build/dtrace/build/port.h
/* This file is automatically generated via mkport.pl /
/
kern=/lib/modules/2.6.32-504.el6.x86_64/build /
/
kern_src=/lib/modules/2.6.32-504.el6.x86_64/source */

define DO_NOT_HAVE_ZLIB_IN_KERNEL 1

define FUNC_DUMP_TRACE_ARGS 5

define HAVE_ATOMIC_NOTIFIER_CHAIN_REGISTER 1

define HAVE_BX_REGISTER 1

define HAVE_CPLUS_DEMANGLE 1

define HAVE_DWARF_H_ENUM 1

define HAVE_ELF_C_READ_MMAP 1

define HAVE_ELF_GETSHDRSTRNDX 1

define HAVE_INCLUDE_LINUX_CRED_H 1

define HAVE_INCLUDE_LINUX_HRTIMER_H 1

define HAVE_INCLUDE_LINUX_KDEBUG_H 1

define HAVE_INCLUDE_LINUX_MUTEX_H 1

define HAVE_INCLUDE_LINUX_SEMAPHORE_H 1

define HAVE_INCLUDE_LINUX_SLAB_H 1

define HAVE_LEX_YYTEXT_PTR 1

define HAVE_LIB_LIBDWARF 1

define HAVE_LINUX_FDTABLE_H 1

define HAVE_LINUX_MIGRATE_H 1

define HAVE_OLD_IOCTL 1

define HAVE_PER_CPU__CPU_NUMBER 1

define HAVE_STACKTRACE_OPS

define HAVE_VMALLOC_SYNC_ALL 1

define HAVE_WORK_CPU_UNBOUND 0

define OLD_RSP_VAL 0x1234

define SMP_CALL_FUNCTION_ARGS 3

define SMP_CALL_FUNCTION_SINGLE_ARGS 4

[CPLUSPLUS-N-CTF]$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.2.1/configure --prefix=/usr/software/pkgs/gcc-4.2.1 --with-mpfr-include=/u/xxxxxxxx/tgb/build/x86_64-redhat-rhel6/gcc-4.2.1-build/../gcc-4.2.1/mpfr --enable-languages=c,c++,fortran,java
Thread model: posix
gcc version 4.2.1
[CPLUSPLUS-N-CTF]$ ld -v
GNU ld (GNU Binutils) 2.22
[CPLUSPLUS-N-CTF]$

gdb) r -l localbuild -o my_os/my_build/private/x86_64.debug/my_libo/my_libo_objfiles/my_replicated_file.o.ctf my_os/my_build/private/x86_64.debug/my_libo/my_libo_objfiles/my_replicated_file.o
Starting program: /u/yyyyyyyy/dtrace_for_ctf_build/dtrace/build-2.6.32-504.el6.x86_64/ctfconvert -l localbuild -o my_os/my_build/private/x86_64.debug/my_libo/my_libo_objfiles/my_replicated_file.o.ctf my_os/my_build/private/x86_64.debug/my_libo/my_libo_objfiles/my_replicated_file.o

Program received signal SIGSEGV, Segmentation fault.
0x000000000040625b in tdesc_bitsize (tdp=0x0) at dwarf.c:223
223 switch (tdp->t_type) {
(gdb) bt
#0 0x000000000040625b in tdesc_bitsize (tdp=0x0) at dwarf.c:223
#1 0x0000000000408077 in die_sou_resolve (tdp=0xdff8a0, tdpp=0xe00288, private=0x7fffffffe070) at dwarf.c:1142
#2 0x000000000041498d in tdtraverse (this=0xdff8a0, thisp=0xe00288, tdtd=0x7fffffffdfa0) at traverse.c:182
#3 0x0000000000414642 in tdtrav_plain (this=0xe00260, tdtd=0x7fffffffdfa0) at traverse.c:59
#4 0x000000000041493c in tdtraverse (this=0xe00260, thisp=0xdffd30, tdtd=0x7fffffffdfa0) at traverse.c:178
#5 0x0000000000414a2a in iitraverse_td (ii=0xe00120, tdtd=0x7fffffffdfa0) at traverse.c:198
#6 0x000000000040b73c in list_iter (list=0xe002d0, func=0x4149a7 <iitraverse_td>, private=0x7fffffffdfa0) at list.c:127
#7 0x000000000040a194 in hash_iter (hash=0x65b020, fun=0x4149a7 <iitraverse_td>, private=0x7fffffffdfa0) at hash.c:235
#8 0x0000000000414b15 in iitraverse_hash (iihash=0x65b020, vgenp=0x649014, firstops=0x0, preops=0x0,

postops=0x644f20 <die_resolvers>, private=0x7fffffffe070) at traverse.c:225

#9 0x000000000040981f in die_resolve (dw=0x7fffffffe070) at dwarf.c:1873
#10 0x0000000000409c88 in dw_read (fd=5, td=0x649010, elf=0x66b050,

filename=0x7fffffffe635 "my_os/my_build/private/x86_64.debug/my_libo/my_libo_objfiles/my_replicated_file.o") at dwarf.c:1980

#11 0x0000000000402b03 in file_read (td=0x649010,

filename=0x7fffffffe635 "my_os/my_build/private/x86_64.debug/my_libo/my_libo_objfiles/my_replicated_file.o", ignore_non_c=0)
at ctfconvert.c:125

#12 0x0000000000402e6b in main (argc=6, argv=0x7fffffffe2c8) at ctfconvert.c:238

(gdb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant