Segfault in extend.c/ parrot_pmc_get_pointer

[email protected] (Arthur Bergman)
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <[email protected]>
Hi, today I hit a little bug

#0  0x081cef45 in Parrot_PMC_get_pointer (interp=0x82d7f78, 
pmc=0x83333a0)
     at src/extend.c:44
#1  0x080c5403 in Perl_macro_LvTYPE (sv=0x82d3410) at sv.c:1280
#2  0x080b196f in Perl_hv_fetch_ent (hv=0x8387588, keysv=0x82d3400, 
lval=0,
     hash=4044421188) at hv.c:402
#3  0x080be9cc in Perl_pp_helem () at pp_hot.c:1675
#4  0x080a24f5 in Perl_runops_debug () at dump.c:1439
#5  0x08060e00 in S_run_body (oldscope=1) at perl.c:1711
#6  0x08060968 in perl_run (my_perl=0x82d1b68) at perl.c:1630
#7  0x0804bfed in main (argc=4, argv=0xbfffdbe4, env=0xbfffdbf8)
     at miniperlmain.c:86
#8  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

As far as I can tell the parrot interp is correct and the PMC too, the 
class is a perl5lv.pmc and it has a init that looks like this:

     void init () {	
	PMC_data(SELF) = malloc(sizeof(perl5lv_pmc_data));
     }

and it also has

     void init () {	
	PMC_data(SELF) = malloc(sizeof(perl5lv_pmc_data));
     }

Any suggestions?

Arthur

ps, does parrot have an abstraction for malloc? also, please reply to 
both ponie-dev/perl6-internals
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.