Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault on 'try { CATCH { ~$! }; die }' #2911

Closed
p6rt opened this issue Oct 8, 2012 · 5 comments
Closed

Segmentation Fault on 'try { CATCH { ~$! }; die }' #2911

p6rt opened this issue Oct 8, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 8, 2012

Migrated from rt.perl.org#115184 (status was 'resolved')

Searchable as RT115184$

@p6rt
Copy link
Author

p6rt commented Oct 8, 2012

From @bbkr

<bbkr_> rakudo​: try { CATCH { ~$! }; die } # shortest form that segfaults on my machine
<p6eval> rakudo 870d18​: OUTPUT«(signal SEGV)»
<bbkr_> rakudo​: say $*PERL
<p6eval> rakudo 870d18​: OUTPUT«("name" => "rakudo", "compiler" => {"name" => "rakudo", "ver" => "2012.09.1-19-g870d189", "release-number" => "", "build-date" => "2012-10-07T20​:14​:14Z", "codename" => ""}).hashâ�¤Â»

Jnthns tests​:

<jnthn> rakudo​: try { CATCH { say $! }; die }
<p6eval> rakudo 870d18​: OUTPUT«Mu()â�¤â�¤ in block at /tmp/PvCL0g0K2j​:1â�¤â�¤Â»
<jnthn> rakudo​: try { CATCH { say pir​::typeof__SP($!) }; die }
<p6eval> rakudo 870d18​: OUTPUT«Null PMC access in name()â�¤ in block at /tmp/z1hRUMISze​:1â�¤ in block at /tmp/z1hRUMISze​:1â�¤â�¤Â»
<jnthn> yowser
<bbkr_> ?
<jnthn> Yeah, that's bad.

@p6rt
Copy link
Author

p6rt commented Nov 14, 2013

From @coke

On Mon Oct 08 13​:45​:22 2012, pawel.pabian@​implix.com wrote​:

<bbkr_> rakudo​: try { CATCH { ~$! }; die } # shortest form that
segfaults on my machine
<p6eval> rakudo 870d18​: OUTPUT«(signal SEGV)»
<bbkr_> rakudo​: say $*PERL
<p6eval> rakudo 870d18​: OUTPUT«("name" => "rakudo", "compiler" =>
{"name" => "rakudo", "ver" => "2012.09.1-19-g870d189", "release-
number" => "", "build-date" => "2012-10-07T20​:14​:14Z", "codename" =>
""}).hash�»

Jnthns tests​:

<jnthn> rakudo​: try { CATCH { say $! }; die }
<p6eval> rakudo 870d18​: OUTPUT«Mu()â�¤â�¤ in block at
/tmp/PvCL0g0K2j​:1â�¤â�¤Â»
<jnthn> rakudo​: try { CATCH { say pir​::typeof__SP($!) }; die }
<p6eval> rakudo 870d18​: OUTPUT«Null PMC access in name()â�¤ in block
at /tmp/z1hRUMISze​:1â�¤ in block at /tmp/z1hRUMISze​:1â�¤â�¤Â»
<jnthn> yowser
<bbkr_> ?
<jnthn> Yeah, that's bad.

no longer segfaults or NPCs; Closable with tests​:

try { CATCH { ~$! }; die }

  in any at gen/parrot/stage2/NQPHLL.nqp​:1146
  in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133
  in any at gen/parrot/stage2/NQPHLL.nqp​:1091
  in any at gen/parrot/stage2/NQPHLL.nqp​:1077
  in any interactive at gen/parrot/stage2/NQPHLL.nqp​:1066
  in any command_eval at gen/parrot/stage2/NQPHLL.nqp​:1241
  in any command_eval at src/Perl6/Compiler.nqp​:17
  in any command_line at gen/parrot/stage2/NQPHLL.nqp​:1218
  in any MAIN at gen/parrot/main.nqp​:45
  in any at gen/parrot/main.nqp​:35

try { CATCH { say $! }; die }
Nil

  in any at gen/parrot/stage2/NQPHLL.nqp​:1146
  in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133
  in any at gen/parrot/stage2/NQPHLL.nqp​:1091
  in any at gen/parrot/stage2/NQPHLL.nqp​:1077
  in any interactive at gen/parrot/stage2/NQPHLL.nqp​:1066
  in any command_eval at gen/parrot/stage2/NQPHLL.nqp​:1241
  in any command_eval at src/Perl6/Compiler.nqp​:17
  in any command_line at gen/parrot/stage2/NQPHLL.nqp​:1218
  in any MAIN at gen/parrot/main.nqp​:45
  in any at gen/parrot/main.nqp​:35

try { CATCH { say pir​::typeof__SP($!) }; die }
Nil

  in any at gen/parrot/stage2/NQPHLL.nqp​:1146
  in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133
  in any at gen/parrot/stage2/NQPHLL.nqp​:1091
  in any at gen/parrot/stage2/NQPHLL.nqp​:1077
  in any interactive at gen/parrot/stage2/NQPHLL.nqp​:1066
  in any command_eval at gen/parrot/stage2/NQPHLL.nqp​:1241
  in any command_eval at src/Perl6/Compiler.nqp​:17
  in any command_line at gen/parrot/stage2/NQPHLL.nqp​:1218
  in any MAIN at gen/parrot/main.nqp​:45
  in any at gen/parrot/main.nqp​:35
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Nov 14, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 15, 2014

From @coke

On Wed Nov 13 19​:15​:34 2013, coke wrote​:

On Mon Oct 08 13​:45​:22 2012, pawel.pabian@​implix.com wrote​:

<bbkr_> rakudo​: try { CATCH { ~$! }; die } # shortest form that
segfaults on my machine
<p6eval> rakudo 870d18​: OUTPUT«(signal SEGV)»
<bbkr_> rakudo​: say $*PERL
<p6eval> rakudo 870d18​: OUTPUT«("name" => "rakudo", "compiler" =>
{"name" => "rakudo", "ver" => "2012.09.1-19-g870d189", "release-
number" => "", "build-date" => "2012-10-07T20​:14​:14Z", "codename" =>
""}).hash�»

Jnthns tests​:

<jnthn> rakudo​: try { CATCH { say $! }; die }
<p6eval> rakudo 870d18​: OUTPUT«Mu()â�¤â�¤ in block at
/tmp/PvCL0g0K2j​:1â�¤â�¤Â»
<jnthn> rakudo​: try { CATCH { say pir​::typeof__SP($!) }; die }
<p6eval> rakudo 870d18​: OUTPUT«Null PMC access in name()â�¤ in block
at /tmp/z1hRUMISze​:1â�¤ in block at /tmp/z1hRUMISze​:1â�¤â�¤Â»
<jnthn> yowser
<bbkr_> ?
<jnthn> Yeah, that's bad.

no longer segfaults or NPCs; Closable with tests​:

try { CATCH { ~$! }; die }

in any at gen/parrot/stage2/NQPHLL.nqp​:1146
in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133
in any at gen/parrot/stage2/NQPHLL.nqp​:1091
in any at gen/parrot/stage2/NQPHLL.nqp​:1077
in any interactive at gen/parrot/stage2/NQPHLL.nqp​:1066
in any command_eval at gen/parrot/stage2/NQPHLL.nqp​:1241
in any command_eval at src/Perl6/Compiler.nqp​:17
in any command_line at gen/parrot/stage2/NQPHLL.nqp​:1218
in any MAIN at gen/parrot/main.nqp​:45
in any at gen/parrot/main.nqp​:35

try { CATCH { say $! }; die }
Nil

in any at gen/parrot/stage2/NQPHLL.nqp​:1146
in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133
in any at gen/parrot/stage2/NQPHLL.nqp​:1091
in any at gen/parrot/stage2/NQPHLL.nqp​:1077
in any interactive at gen/parrot/stage2/NQPHLL.nqp​:1066
in any command_eval at gen/parrot/stage2/NQPHLL.nqp​:1241
in any command_eval at src/Perl6/Compiler.nqp​:17
in any command_line at gen/parrot/stage2/NQPHLL.nqp​:1218
in any MAIN at gen/parrot/main.nqp​:45
in any at gen/parrot/main.nqp​:35

try { CATCH { say pir​::typeof__SP($!) }; die }
Nil

in any at gen/parrot/stage2/NQPHLL.nqp​:1146
in any eval at gen/parrot/stage2/NQPHLL.nqp​:1133
in any at gen/parrot/stage2/NQPHLL.nqp​:1091
in any at gen/parrot/stage2/NQPHLL.nqp​:1077
in any interactive at gen/parrot/stage2/NQPHLL.nqp​:1066
in any command_eval at gen/parrot/stage2/NQPHLL.nqp​:1241
in any command_eval at src/Perl6/Compiler.nqp​:17
in any command_line at gen/parrot/stage2/NQPHLL.nqp​:1218
in any MAIN at gen/parrot/main.nqp​:45
in any at gen/parrot/main.nqp​:35

Test added to t/spec/S04-exception-handlers/catch.t
--
Will "Coke" Coleda

@p6rt p6rt closed this as completed Jan 15, 2014
@p6rt
Copy link
Author

p6rt commented Jan 15, 2014

@coke - Status changed from 'open' to 'resolved'

@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant