Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 125605
Status: resolved
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.55
Fixed in: 0.62



Subject: corrupted double-linked list
Running t/join.t multiple times on Debian systems (stretch or jessie, both tried with perl 5.26.2) will give test failures eventually (typically after 100-200 iterations): ... ok 41 ok 42 *** Error in `perl5.26.2t': corrupted double-linked list: 0x0000000002ab85e0 * Or a variant with backtrace (debian/jessie): ... *** Error in `perl5.26.2': corrupted double-linked list: 0x0000561385c92d20 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x70bfb)[0x7f6ed47b6bfb] /lib/x86_64-linux-gnu/libc.so.6(+0x76fc6)[0x7f6ed47bcfc6] /lib/x86_64-linux-gnu/libc.so.6(+0x7733d)[0x7f6ed47bd33d] /lib/x86_64-linux-gnu/libc.so.6(+0x78dfa)[0x7f6ed47bedfa] /lib/x86_64-linux-gnu/libc.so.6(__libc_calloc+0x27b)[0x7f6ed47c1b7b] perl5.26.2(Perl_safesyscalloc+0x29)[0x561384b226d9] perl5.26.2(PerlIOBuf_get_base+0x30)[0x561384bbf550] perl5.26.2(PerlIOBuf_write+0x235)[0x561384bc1ac5] perl5.26.2(Perl_do_print+0x1bb)[0x561384b9af9b] perl5.26.2(Perl_pp_print+0x23b)[0x561384b40b4b] perl5.26.2(Perl_runops_standard+0x13)[0x561384b3ea93] perl5.26.2(perl_run+0x201)[0x561384aca8e1] perl5.26.2(main+0x10f)[0x561384aa5c2f] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f6ed47662e1] perl5.26.2(_start+0x2a)[0x561384aa5c6a]
On Sat Jun 16 18:27:31 2018, SREZIC wrote: Show quoted text
> Running t/join.t multiple times on Debian systems (stretch or jessie, > both tried with perl 5.26.2) will give test failures eventually > (typically after 100-200 iterations): > > ... > ok 41 > ok 42 > *** Error in `perl5.26.2t': corrupted double-linked list: > 0x0000000002ab85e0 * > > Or a variant with backtrace (debian/jessie): > > ... > *** Error in `perl5.26.2': corrupted double-linked list: > 0x0000561385c92d20 *** > ======= Backtrace: ========= > /lib/x86_64-linux-gnu/libc.so.6(+0x70bfb)[0x7f6ed47b6bfb] > /lib/x86_64-linux-gnu/libc.so.6(+0x76fc6)[0x7f6ed47bcfc6] > /lib/x86_64-linux-gnu/libc.so.6(+0x7733d)[0x7f6ed47bd33d] > /lib/x86_64-linux-gnu/libc.so.6(+0x78dfa)[0x7f6ed47bedfa] > /lib/x86_64-linux-gnu/libc.so.6(__libc_calloc+0x27b)[0x7f6ed47c1b7b] > perl5.26.2(Perl_safesyscalloc+0x29)[0x561384b226d9] > perl5.26.2(PerlIOBuf_get_base+0x30)[0x561384bbf550] > perl5.26.2(PerlIOBuf_write+0x235)[0x561384bc1ac5] > perl5.26.2(Perl_do_print+0x1bb)[0x561384b9af9b] > perl5.26.2(Perl_pp_print+0x23b)[0x561384b40b4b] > perl5.26.2(Perl_runops_standard+0x13)[0x561384b3ea93] > perl5.26.2(perl_run+0x201)[0x561384aca8e1] > perl5.26.2(main+0x10f)[0x561384aa5c2f] > /lib/x86_64-linux- > gnu/libc.so.6(__libc_start_main+0xf1)[0x7f6ed47662e1] > perl5.26.2(_start+0x2a)[0x561384aa5c6a]
The stack trace you got suggests the issue is likely to be my XS code, rather than the Berkeley DB library. No issue here after 10k iterations of join.t Lets try valgrind... Bingo. I'm writing into free memory. Now need to find out why. thanks Paul