Sgenmi / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CPU profiler segfault #522

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Use the CPU profiler with the LD_PRELOAD trick (I can't get it to work at all 
with -lprofiler

What is the expected output? What do you see instead?

#0  0x00007f92516162fd in access_mem () from /usr/local/lib/libunwind.so.7
#1  0x00007f92516110d5 in dwarf_get () from /usr/local/lib/libunwind.so.7
#2  0x00007f9251613009 in apply_reg_state () from /usr/local/lib/libunwind.so.7
#3  0x00007f9251613465 in _ULx86_64_dwarf_find_save_locs () from 
/usr/local/lib/libunwind.so.7
#4  0x00007f9251613c1c in _ULx86_64_dwarf_step () from 
/usr/local/lib/libunwind.so.7
#5  0x00007f92516171ab in _ULx86_64_step () from /usr/local/lib/libunwind.so.7
#6  0x00007f925234e758 in GetStackTraceWithContext (result=<optimized out>, 
max_depth=63, skip_count=<optimized out>, ucp=<optimized out>) at 
src/stacktrace_libunwind-inl.h:114
#7  0x00007f925234c3bd in CpuProfiler::prof_handler (signal_ucontext=<optimized 
out>, cpu_profiler=0x7f92525544c0, sig=<optimized out>) at src/profiler.cc:280
#8  0x00007f925234cd53 in ProfileHandler::SignalHandler (sig=27, 
sinfo=0x7fff760ed830, ucontext=0x7fff760ed700) at src/profile-handler.cc:501
#9  <signal handler called>
#10 0x00007f92518abf4d in __GI___libc_malloc (bytes=32) at malloc.c:2910

What version of the product are you using? On what operating system?

2.0, ubuntu LTS 12.04

Please provide any additional information below.

Original issue reported on code.google.com by gha...@gmail.com on 23 Apr 2013 at 2:27

GoogleCodeExporter commented 9 years ago
1. Does the issue happen with svn version of gperftools? 

2. If so, can you provide a testcase to reproduce it?

Original comment by zatr...@gmail.com on 25 Apr 2013 at 12:56

GoogleCodeExporter commented 9 years ago
I believe 
https://github.com/alk/gperftools/commit/2d061481ecff44bddd21f9d862ba9878ee76989
9

fixes this issue. Which I plan to merge soon. Please test at your earliest 
convenience

Original comment by alkondratenko on 6 Jul 2013 at 10:54