the following program crashes my pike. tested on various installations (debian or ubuntu, all running pike v 7.6.86).
ee@sprint:~/tmp$ cat crash.pike class S { SSL.context s; void ss(Parser.XML.NSTree.NSNode sss) { Parser.XML.NSTree.NSNode ssss = sss[0]; } } void main(){} ee@sprint:~/tmp$ pike crash.pike Segmenteringsfel (core dumped) ee@sprint:~/tmp$ cat nocrash.pike class S { void ss(Parser.XML.NSTree.NSNode sss) { Parser.XML.NSTree.NSNode ssss = sss[0]; } SSL.context s; } void main(){} ee@sprint:~/tmp$ pike nocrash.pike ee@sprint:~/tmp$ pike -v Pike v7.6 release 86 Copyright %G�%@ 1994-2006 Link%G�%@ping University Pike comes with ABSOLUTELY NO WARRANTY; This is free software and you are welcome to redistribute it under certain conditions; Read the files COPYING and COPYRIGHT in the Pike distribution for more details.
filed as bug #4302
/ ee (erik eriksson)
Previous text:
15166557 2007-01-22 15:20 /29 lines/ ee (erik eriksson) Recipients: Pike (-) erfarenhetsutbyte Subject: pike crash
the following program crashes my pike. tested on various installations (debian or ubuntu, all running pike v 7.6.86).
ee@sprint:~/tmp$ cat crash.pike class S { SSL.context s; void ss(Parser.XML.NSTree.NSNode sss) { Parser.XML.NSTree.NSNode ssss = sss[0]; } } void main(){} ee@sprint:~/tmp$ pike crash.pike Segmenteringsfel (core dumped) ee@sprint:~/tmp$ cat nocrash.pike class S { void ss(Parser.XML.NSTree.NSNode sss) { Parser.XML.NSTree.NSNode ssss = sss[0]; } SSL.context s; } void main(){} ee@sprint:~/tmp$ pike nocrash.pike ee@sprint:~/tmp$ pike -v Pike v7.6 release 86 Copyright %G�%@ 1994-2006 Link%G�%@ping University Pike comes with ABSOLUTELY NO WARRANTY; This is free software and you are welcome to redistribute it under certain conditions; Read the files COPYING and COPYRIGHT in the Pike distribution for more details.
(15166557) /ee (erik eriksson)/-------------------------------------
pike-devel@lists.lysator.liu.se