Failed assertion: "(run->regs_mask[elm] & (1U << bit)) == 0"

Dmitry Krivenok krivenok.dmitry at
Thu Apr 29 09:55:26 UTC 2010

Hello Hackers!

I have a problem with FreeBSD-CURRENT system:
FreeBSD host 9.0-CURRENT FreeBSD 9.0-CURRENT #16 r207299: Wed Apr 28
04:15:07 UTC 2010     root at host:/usr/obj/usr/src/sys/GENERIC  amd64

Perl aborts with the following error on exiting cpan shell:

cpan[2]> q
Lockfile removed.
perl: (malloc) /usr/src/lib/libc/stdlib/malloc.c:2628: Failed assertion:
"(run->regs_mask[elm] & (1U << bit)) == 0"
Abort trap: 6 (core dumped)

Below is a backtrace:

3       RSYSCALL(kill)
[New Thread 8014071c0 (LWP 100083)]
(gdb) bt
#0  0x0000000800f0c38c in kill () at kill.S:3
#1  0x0000000800ca5363 in _raise (sig=6) at
#2  0x0000000800f0a953 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x0000000800e589b6 in arena_run_reg_dalloc (run=0x801609000,
bin=0x5016b8, ptr=0x801609a40, size=1) at
#4  0x0000000800e5e29c in arena_dalloc_bin (arena=0x501430,
chunk=0x801400000, ptr=0x801609a40, mapelm=0x801403100)
    at /usr/src/lib/libc/stdlib/malloc.c:3870
#5  0x0000000800e5fcef in arena_dalloc (arena=0x501430, chunk=0x801400000,
ptr=0x801609a40) at /usr/src/lib/libc/stdlib/malloc.c:4302
#6  0x0000000800e5ffbb in idalloc (ptr=0x801609a40) at
#7  0x0000000800e65730 in free (ptr=0x801609a40) at
#8  0x0000000800f03a6d in __clean_env (freeVars=true) at
#9  0x0000000800f042de in __clean_env_destructor () at
#10 0x0000000800de4829 in ?? () from /lib/
#11 0x0000000800f0fb01 in _fini () from /lib/
#12 0x00007fffffffeac0 in ?? ()
#13 0x0000000800508450 in objlist_call_fini (list=0x800643030, force=1
'\001', lockstate=0x7fffffffeadc) at /usr/src/libexec/rtld-elf/rtld.c:1638
#14 0x0000000800508aaf in rtld_exit () at
#15 0x0000000800eddfd6 in __cxa_finalize (dso=0x0) at
#16 0x0000000800e65ec2 in exit (status=0) at
#17 0x0000000000400cc3 in main (argc=Could not find the frame base for
) at perlmain.c:130
Current language:  auto; currently asm


Sincerely yours, Dmitry V. Krivenok
e-mail: krivenok.dmitry at
skype: krivenok_dmitry
jabber: krivenok_dmitry at
icq: 242-526-443

More information about the freebsd-current mailing list