strrchr / gperftools

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

Crash caused by libtcmalloc_minimal.so.0 #621

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Just trying to delete[] a char[] array allocated from some other library, then
Program terminated with signal 6, Aborted, bt as follows:

#0  0x00007fd757072165 in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0  0x00007fd757072165 in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fd757074f70 in *__GI_abort () at abort.c:92
#2  0x00007fd7567b2915 in tcmalloc::Log (mode=tcmalloc::kCrash, filename=<value 
optimized out>, 
    line=<value optimized out>, a=..., b=..., c=..., d=...) at src/internal_logging.cc:119
#3  0x00007fd7567ae12c in InvalidFree (ptr=<value optimized out>) at 
src/tcmalloc.cc:277
#4  0x00007fd7567bf58d in free_null_or_invalid (p=0x3031302e305e2f3b) at 
src/tcmalloc.cc:1126
#5  do_free_helper (p=0x3031302e305e2f3b) at src/tcmalloc.cc:1170
#6  do_free_with_callback (p=0x3031302e305e2f3b) at src/tcmalloc.cc:1210
#7  do_free (p=0x3031302e305e2f3b) at src/tcmalloc.cc:1219
#8  tc_deletearray (p=0x3031302e305e2f3b) at src/tcmalloc.cc:1650

What version of the product are you using? On what operating system?
the tcmalloc version is gperftools-2.1
amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux, Debian GNU/Linux 6.0

Please provide any additional information below.

Original issue reported on code.google.com by fcja...@gmail.com on 15 May 2014 at 4:54

GoogleCodeExporter commented 9 years ago
In order to debug your problem I'll need some way to reproduce your crash. 
Sample program will be very useful.

Also it looks weird that you're reporting issue in libtcmalloc_minimal.so.0 
when 2.1 has major version of 4 (i.e. it is libtcmalloc_minimal.so.4)

Original comment by alkondratenko on 18 May 2014 at 5:55

GoogleCodeExporter commented 9 years ago
Just switched to major version, and it works well till now, thank you very much!

Original comment by fcja...@gmail.com on 19 May 2014 at 10:37

GoogleCodeExporter commented 9 years ago
closing then.

Original comment by alkondratenko on 19 May 2014 at 5:57