#1149: [bug] Segfault in -t trace output
----------------------+-----------------------------------------------------
Reporter: pmichaud | Owner:
Type: bug | Status: new
Priority: blocker | Milestone:
Component: core | Version: trunk
Severity: high | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
While working on debugging some issues in nqp-rx this morning, I ran into
a segfault that occurs when running Parrot with the -t option. I've been
able to narrow the problem down to this short code snippet (revision
42097):
{{{
$ cat z.pir
.sub main
'foo'()
.end
.sub 'foo'
$P0 = getinterp
$P1 = $P0['namespace';1]
say $P1
.end
$ ./parrot z.pir
parrot
$ ./parrot -t1 z.pir
0 set_args PC1
2 set P0, PC9 P0=PMCNULL
PC9=Sub=PMC(0x97471dc pc:12)
5 get_results PC1
7 invokecc P0
P0=Sub=PMC(0x97471dc pc:12)
12 getinterp P0 P0=PMCNULL
Segmentation fault
$
}}}
When -t causes segfaults on its own, it's much less useful for debugging.
:-(
Thanks!
Pm
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1149>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets