Bug#638938: linux-tools-3.0.0: "perf report" segfaults when using binary version; compiling from source works
On Mon, 2011-08-22 at 23:08 -0700, Justin Santa Barbara wrote: > Package: linux-tools-3.0.0 > Version: 3.0.0-1 > Severity: normal > > > I captured a few perf traces on a live system (using "perf record > --event cpu-clock --freq 1000 -a --output=mylog.perf"). > > When I try to run a report on those perf logs, it segfaults. I can > run it under gdb and get a stacktrace (below). > > If I install the linux-source package, expand it, and do a "make" in > tools/perf, then that version of perf works (no segfault). > > The version I built does reference different shared libraries > (according to ldd). Most notably, it include > libbfd-2.21.52-system.20110606.so. I believe that cplus_demangle is > only called if bfd is not present(?) [...] Right. Bug report #606050 explains why we build perf using cplus_demangle() from libiberty and not the similar function in libbfd. Ben. signature.asc Description: This is a digitally signed message part
Bug#638938: linux-tools-3.0.0: "perf report" segfaults when using binary version; compiling from source works
Hi Justin, Justin Santa Barbara wrote: > I captured a few perf traces on a live system (using "perf record --event > cpu-clock --freq 1000 -a --output=mylog.perf"). > > When I try to run a report on those perf logs, it segfaults. I can run it > under gdb and get a stacktrace (below). I wasn't able to reproduce it, alas. (Neither with 3.0.0-1 nor 3.0.0-2.) > If I install the linux-source package, expand it, and do a "make" in > tools/perf, then that version of perf works (no segfault). Please try building with HAVE_CPLUS_DEMANGLE=YesPlease, to get a backtrace without so many frames missing. It might be that this is fixed in sid already, since 3.0.0-2 was built against a version of binutils-dev with some newish NULL checking fixes in cplus_demangle(). -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110823073938.ga16...@elie.gateway.2wire.net
Bug#638938: linux-tools-3.0.0: "perf report" segfaults when using binary version; compiling from source works
Package: linux-tools-3.0.0 Version: 3.0.0-1 Severity: normal I captured a few perf traces on a live system (using "perf record --event cpu-clock --freq 1000 -a --output=mylog.perf"). When I try to run a report on those perf logs, it segfaults. I can run it under gdb and get a stacktrace (below). If I install the linux-source package, expand it, and do a "make" in tools/perf, then that version of perf works (no segfault). The version I built does reference different shared libraries (according to ldd). Most notably, it include libbfd-2.21.52-system.20110606.so. I believe that cplus_demangle is only called if bfd is not present(?) Stacktrace from gdb: Program received signal SIGSEGV, Segmentation fault. 0x0047630f in ?? () (gdb) bt #0 0x0047630f in ?? () #1 0x00477be3 in ?? () #2 0x004765d9 in ?? () #3 0x004752f6 in ?? () #4 0x004776e5 in ?? () #5 0x00473e8a in ?? () #6 0x004742e7 in ?? () #7 0x00479f67 in cplus_demangle_print_callback () #8 0x0047a0d6 in ?? () #9 0x0047a267 in ?? () #10 0x0047a41e in cplus_demangle_v3 () #11 0x0046e778 in cplus_demangle () #12 0x0043f308 in ?? () #13 0x004413db in dso__load () #14 0x00449db0 in map__load () #15 0x00449f0d in map__find_symbol () #16 0x0042ed7d in perf_event__preprocess_sample () #17 0x00419fed in ?? () #18 0x0044c585 in ?? () #19 0x0044dbb3 in __perf_session__process_events () #20 0x0041a3c5 in cmd_report () #21 0x00410a59 in _start () -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages linux-tools-3.0.0 depends on: ii libc62.13-16 Embedded GNU C Library: Shared lib ii libelf1 0.152-1 library to read and write ELF file ii libnewt0.52 0.52.11-2.1 Not Erik's Windowing Toolkit - tex ii libperl5.12 5.12.4-4shared Perl library ii libpython2.6 2.6.7-3 Shared Python runtime library (ver ii libslang22.2.4-2 S-Lang programming library - runti ii perl 5.12.4-4Larry Wall's Practical Extraction ii python 2.6.7-3 interactive high-level object-orie Versions of packages linux-tools-3.0.0 recommends: ii linux-base3.3Linux image base package Versions of packages linux-tools-3.0.0 suggests: pn linux-doc-3.0.0(no description available) -- no debconf information