Closed GoogleCodeExporter closed 9 years ago
You are right, we don't have a mips platform to debug on, so you may have to
look into this yourself with gdb or the like.
What happens when you run 'make test' in the perftools directory? Do all
unittests pass?
Original comment by csilv...@gmail.com
on 12 May 2011 at 7:08
Hi,
I just run the program of tcmalloc_minimal_unittest ,two errors arisen
sometimes,analyse them using gdb ,the results as follows:
1)Program terminated with signal 11, Segmentation fault.
[New process 5489]
[New process 5481]
[New process 5480]
[New process 5479]
[New process 5482]
[New process 5484]
[New process 5483]
[New process 5485]
[New process 5488]
[New process 5486]
[New process 5487]
#0 tcmalloc::NewSpan (p=1185509, len=6) at src/page_heap_allocator.h:61
61 free_list_ = *(reinterpret_cast<void**>(result));
(gdb) bt
#0 tcmalloc::NewSpan (p=1185509, len=6) at src/page_heap_allocator.h:61
#1 0x000000555559928c in tcmalloc::PageHeap::Split (this=0x55555c2570,
span=0x12002aec0, n=5) at src/page_heap.cc:147
#2 0x000000555559320c in do_memalign (align=32768, size=19685) at
src/tcmalloc.cc:1312
#3 0x00000055555a1dc4 in tc_posix_memalign (result_ptr=0x55563f4940,
align=<value optimized out>, size=19685) at src/tcmalloc.cc:1028
#4 0x0000000120009a60 in testing::TesterThread::Run (this=0x1203653c0) at
src/tests/tcmalloc_unittest.cc:272
#5 0x0000000120009b74 in RunFunctionInThreadWithId (ptr_to_fnid=0x1) at
src/tests/testutil.cc:173
#6 0x00000055555dfcfc in ?? () from /lib64/libpthread.so.0
2)Program terminated with signal 10, Bus error.
[New process 5271]
[New process 5275]
[New process 5276]
[New process 5272]
[New process 5274]
[New process 5273]
[New process 5277]
[New process 5279]
[New process 5278]
[New process 5270]
[New process 5269]
#0 tc_malloc (size=<value optimized out>) at src/linked_list.h:63
63 *list = SLL_Next(*list);
(gdb) bt
#0 tc_malloc (size=<value optimized out>) at src/linked_list.h:63
#1 0x0000000120008a98 in testing::TesterThread::Run (this=0x120365140) at
src/tests/tcmalloc_unittest.cc:280
#2 0x0000000120009b74 in RunFunctionInThreadWithId
(ptr_to_fnid=0x12027d808) at src/tests/testutil.cc:173
#3 0x00000055555dfcfc in ?? () from /lib64/libpthread.so.0
I am looking forward to your reply,Thank you very much!
Original comment by sd.beiji...@gmail.com
on 13 May 2011 at 2:56
This means memory corruption of some sort somewhere. It could be anywhere, and
due to anything. Are you running the mips processor with big- or
little-endianness? A shot in the dark would be to play around with that. More
fruitfully, you might try configuring with optimization turned off and see if
the tests pass then. I'm afraid you'll have to try to debug this on your own.
Original comment by csilv...@gmail.com
on 24 May 2011 at 4:31
what are the differences between the spinlock achieved in google-perftools
and the default spinlock which we used to use in multi-threading program.Why
did you re-achieve spinlock?
the new one is faster than the defalut one ??
Original comment by sd.beiji...@gmail.com
on 26 May 2011 at 8:16
I coded one case which using the new spinlock or the defalut one.it appeared
that the defalut one is faster.
2011/5/26 Dwyane Wade <sd.beijing2008@gmail.com>
Original comment by sd.beiji...@gmail.com
on 26 May 2011 at 8:18
I don't undersatnd these last two questions. What default spinlock are you
referring to? Also, what does this have to do with segfaults on mips?
Original comment by csilv...@gmail.com
on 26 May 2011 at 8:31
Sorry,Maybe I didn't descript the question clearly.The default spinlock i
referred to is what is realized in NPTL.If we need to use the spinlock,we
just need to inlucde "pthread.h".Now I doubt spinlock may have to do with
segfaluts on mips.So I want to know t he differences of these two spinlock?
Why you have to re-realize the spinlock which has been implemeted in NPTL?
Original comment by sd.beiji...@gmail.com
on 27 May 2011 at 2:13
} Now I doubt spinlock may have to do with segfaluts on mips.
OK, so let's move this discussion off this bug report. Feel free to re-send
your question to google-perftools@googlegroups.com.
Original comment by csilv...@gmail.com
on 27 May 2011 at 3:29
Original comment by csilv...@gmail.com
on 18 Oct 2011 at 5:49
Hi, I'm working on a MIPS64(Octeon2) system, and I think I'm getting the same
problem.
Can anyone tell me the status of this issue?
Original comment by ontop.st...@gmail.com
on 4 Aug 2014 at 5:32
This ticket is too old and likely long irrelevant.
Please open brand new ticket with all details of your case.
Original comment by alkondratenko
on 4 Aug 2014 at 8:22
Original issue reported on code.google.com by
sd.beiji...@gmail.com
on 12 May 2011 at 9:36Attachments: