Coro segfault
Andrey Sagulin
say42 at ya.ru
Fri Mar 21 14:15:44 CET 2014
On 21.03.2014 15:05, Marc Lehmann wrote:
> I cannot reproduce your problem with either 5.14.4 or 5.18.1.
>
> Note that your perl version is no longer officially supported (by perl
> upstream), although it is supported by Coro.
>
> On Fri, Mar 21, 2014 at 09:29:36AM +0400, Andrey Sagulin <say42 at ya.ru> wrote:
>> gdb says that an error occured somewhere in State.so. I'm not a
>> C-hacker so I cannot provide more details.
> the "bt" command gives a backtrace, which is important to have.
#0 0x00007f57eb6b5e47 in ?? () from /usr/lib/perl5/auto/Coro/State/State.so
#1 0x00007f57eb6b61fd in XS_Coro__Semaphore_up () from /usr/lib/perl5/auto/Coro/State/State.so
#2 0x00007f57eccc382f in Perl_pp_helem (my_perl=0xc98010) at pp_hot.c:1829
#3 0x00007f57eccbacc6 in Perl_pp_concat (my_perl=0xc98010) at pp_hot.c:292
#4 0x734cf5d24e568a4f in ?? ()
#5 0x721c6b8fa98e8a4f in ?? ()
#6 0x0000000000000000 in ?? ()
>
> also, do this in gdb and give us the output:
>
> printf "%s:%d\n", PL_curcop->cop_filegv->sv_any->xiv_u.xivu_namehek->hek_key+2, PL_curcop->cop_line
(gdb) printf "%s:%d\n", PL_curcop->cop_filegv->sv_any->xiv_u.xivu_namehek->hek_key+2,
PL_curcop->cop_line
No symbol "PL_curcop" in current context.
> for the backtrace to be useful, you need to have binaries with debugging
> info. these are usually provided as separate packages you need to
> install. A backtrace should list function names and argument values. If it
> doesn't, then you probably miss the debug info.
debugperl crash with a very long error message:
debugperl: pp_hot.c:1929: Perl_pp_leave: Assertion
`((char*)(my_perl->Iscopestack_name)[(my_perl->Iscopestack_ix)-1] == (char*)"block") ||
(!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ((my_perl->Iscopestack_name)
<..skip a bunch of C code...>' failed
Aborted (core dumped)
(gdb) bt
#0 0x00007f7195aa1425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f7195aa4b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007f7195a9a0ee in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007f7195a9a192 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00000000004ea105 in Perl_pp_leave (my_perl=0xb38010) at pp_hot.c:1929
#5 0x00000000004b2878 in Perl_runops_debug (my_perl=0xb38010) at dump.c:2266
#6 0x00000000004427f0 in S_run_body (oldscope=1, my_perl=0xb38010) at perl.c:2350
#7 perl_run (my_perl=0xb38010) at perl.c:2268
#8 0x000000000041b587 in main (argc=2, argv=0x7fff7a4f0c28, env=0x7fff7a4f0c40) at perlmain.c:120
More information about the anyevent
mailing list