http://www.perlmonks.org?node_id=866900


in reply to panic: attempt to copy freed scalar a7b9650 to ad20598

We got this same symptom today, using Try::Tiny 0.04:

Attempt to free unreferenced scalar: SV 0x82d1fa0 at lib/Try/Tiny.pm l +ine 76. Attempt to free unreferenced scalar: SV 0x82d1fc0 at lib/Try/Tiny.pm l +ine 76. Attempt to free unreferenced scalar: SV 0x83d4060 at lib/Try/Tiny.pm l +ine 76. Attempt to free unreferenced scalar: SV 0x83d4080 at lib/Try/Tiny.pm l +ine 76. Segmentation fault (core dumped)
We haven't found the root cause yet.

Replies are listed 'Best First'.
Re^2: panic: attempt to copy freed scalar a7b9650 to ad20598
by markjugg (Curate) on Oct 22, 2010 at 23:55 UTC
    I should mention: We are using Perl 5.8.8 on that server. Also, here's a third case of it happening, in the Fennec test suite. Search through CPAN tester data via Google may find more:
Re^2: panic: attempt to copy freed scalar a7b9650 to ad20598
by mje (Curate) on Oct 25, 2010 at 09:50 UTC

    In my case there was no problem in Try::Tiny but I had declared a variable like this my $thing if (some_test); which is really bad. The changes I made to introduce Try::Tiny seemed to have triggered the error to be seen.