Re: Segmentation fault under -d flag

[email protected] (Shlomi Fish) Mon, 7 Dec 2015 15:59:48 +0200
Newsgroups perl.debugger
Message-ID <[email protected]>
Hi KES,

I was able to reduce the code significantly and it seems to be caused by
Time::HiRes:

https://github.com/shlomif/perl5-Time-HiRes-perl-d-segfault

I was also able to reproduce it on the latest bleadperl. I'm going to report
this bug.

Thanks!

Regards,

	Shlomi Fish

On Sun, 06 Dec 2015 21:15:26 +0200
KES <[email protected]> wrote:

> Hi.
>=20
> This code woks fine:
> package Devel::KP;
> =20
>  our $VERSION =3D  '0.01';
> =20
> =20
>  package    # hide the package from the PAUSE indexer
>    DB;
>=20
>    sub sub {
>    	goto &$DB::sub;
>    }
>   =20
>    use Benchmark qw/ cmpthese /;
>    sub DB {
>    }
>   =20
>    1;
>   =20
>   =20
>    But if I change DB::sub to look like:
>    sub sub {
>            print @_;
>    	goto &$DB::sub;
>    }
>   =20
>   =20
> I get segfault



--=20
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Perl Humour - http://perl-begin.org/humour/

To have bugs is human; to fix them =E2=80=94 divine.

Please reply to list if it's a mailing list post - http://shlom.in/reply .