segfault of ctracer and a question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a segfault case of ctracer with vmlinux(4.20.0-rc3).
I used ctracer as below and I found it.
How to fix it ?

In addition, how to get function names
associated with a struct (e.g. sock) using ctracer ?
I want to just see the function names.

Thanks,
Taeung

$ ls /home/taeung/workspace/ctracer_test/
ctracer_relay.c  ctracer_relay.h  linux.blacklist.cu  Makefile

$ ctracer --version
v1.12

$ ctracer --src_dir /home/taeung/workspace/ctracer_test/ ./vmlinux --cu_blacklist /usr/share/dwarves/runtime/linux.blacklist.cu sock
Segmentation fault (core dumped)

$ gdb ./vmlinux core
GNU gdb (GDB) 8.1.50.20180127-git
Copyright (C) 2018 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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./vmlinux...done.

warning: core file may not match specified executable file.
[New LWP 32667]

warning: .dynamic section for "/usr/local/lib/libdwarves_emit.so.1" is not at the expected address (wrong library or version mismatch?)

warning: .dynamic section for "/usr/local/lib/libdwarves_reorganize.so.1" is not at the expected address (wrong library or version mismatch?)

warning: .dynamic section for "/usr/local/lib/libdwarves.so.1" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `ctracer ./vmlinux request_queue'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fae49d3d445 in elf_symtab__new (name=0x0 <irq_stack_union>, elf=0x0 <irq_stack_union>, ehdr=0x0 <irq_stack_union>) at /home/taeung/git/opensource/pahole/elf_symtab.c:43
43		if (symtab->syms == NULL)
(gdb) bt
#0 0x00007fae49d3d445 in elf_symtab__new (name=0x0 <irq_stack_union>, elf=0x0 <irq_stack_union>, ehdr=0x0 <irq_stack_union>) at /home/taeung/git/opensource/pahole/elf_symtab.c:43
#1  0x000055d29a3c50a1 in ?? ()
#2  0xffffffff00000000 in ?? ()
#3  0x000055d29ab468e0 in ?? ()
#4  0x00007ffeb1c21530 in ?? ()
#5 0x00007fae49d288f1 in sysfs__sprintf_build_id (root_dir=0x0 <irq_stack_union>, sbuild_id=0x0 <irq_stack_union>) at /home/taeung/git/opensource/pahole/dwarves.c:1702
Backtrace stopped: frame did not save the PC




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux