On Wed, 11 Dec 2002, Simon Glover wrote:
>
> Is this a bug, or am I misunderstanding how properties are supposed to
> work?
Well, there's definitely a bug somewhere, as the previously posted
example causes a segfault if run with --gc-debug. Backtrace follows:
#0 0x08075bb1 in hash_lookup (interpreter=0x813a8f0, hash=0x0, key=0x813d528)
at hash.c:355
#1 0x08075bff in hash_get (interpreter=0x813a8f0, hash=0x0, key=0x813d528)
at hash.c:363
#2 0x080d8ff8 in Parrot_PerlHash_get_pmc_keyed (interpreter=0x813a8f0,
pmc=0x8147928, key=0x81479dc) at perlhash.pmc:181
#3 0x080d30a1 in Parrot_default_getprop (interpreter=0x813a8f0,
pmc=0x8147970, key=0x813d528) at default.pmc:54
#4 0x080bc0ee in cg_core () at core.ops:3873
#5 0x08074144 in runops_cgoto_core (interpreter=0x813a8f0, pc=0x813f618)
at runops_cores.c:52
#6 0x08049730 in runops_generic (core=0x8074130 <runops_cgoto_core>,
interpreter=0x813a8f0, pc=0x813f618) at interpreter.c:46
#7 0x08049e45 in runops (interpreter=0x813a8f0, code=0x813ac88, offset=0)
at interpreter.c:372
#8 0x080a63b5 in Parrot_runcode (interpreter=0x813a8f0, argc=1,
argv=0xbfffe4bc) at embed.c:308
#9 0x080e217e in main (argc=1, argv=0xbfffe4bc) at test_main.c:51
#10 0x400b4647 in __libc_start_main (main=0x80e20e8 <main>, argc=3,
ubp_av=0xbfffe4b4, init=0x8048f78 <_init>, fini=0x80e2790 <_fini>,
rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbfffe4ac)
Simon