program compilation/execution crashes pike
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4302
Reported by erik eriksson, opera software ee@opera.com
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 � 1994-2006 Link�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.