Hi,
Here is a new bug of Pike 7.6(.9) on FreeBSD (5.2.1):
$ cat segfault.pike void set_expire_hook(function exphook, void|mixed ...fargs, string|object id) { }
int main() { }
$ pike segfault.pike segfault.pike:1:Can't define more arguments after ... /home/david/Pike/7.6/src/pike_types.c:717: Fatal error: Unexpected type on stack: 255 (expected 0) Backtrace at time of fatal: /usr/local/pike/7.6.9/lib/master.pike:346: object(/usr/local/pike/7.6.9/lib/master.pike)->compile_string("void set_expire_hook(function exphook, void|mixed ...fargs, string|object id)\n{\n}\n\nint main()\n{\n}\n","/home/david/scripts/segfault.pike",0,/home/david/scripts/segfault,0)
/usr/local/pike/7.6.9/lib/master.pike:813:
object(/usr/local/pike/7.6.9/lib/master.pike)->low_findprog("/home/david/scripts/segfault",".pike",0,0)
/usr/local/pike/7.6.9/lib/master.pike:907:
object(/usr/local/pike/7.6.9/lib/master.pike)->findprog("/home/david/scripts/segfault",".pike",0,0)
/usr/local/pike/7.6.9/lib/master.pike:943:
object(/usr/local/pike/7.6.9/lib/master.pike)->low_cast_to_program("/home/david/scripts/segfault","/usr/local/pike/7.6.9/lib/master.pike",0,0)
/usr/local/pike/7.6.9/lib/master.pike:977:
object(/usr/local/pike/7.6.9/lib/master.pike)->cast_to_program("/home/david/scripts/segfault.pike","/usr/local/pike/7.6.9/lib/master.pike",0)
Abort trap (core dumped)
It's 100% reproductible.
/ David
I'm assuming that you don't get the segfault if you compile without debug, right?
/ Martin Nilsson (räfsfiskal)
Previous text:
2004-05-26 16:22: Subject: Compiler bug
Hi,
Here is a new bug of Pike 7.6(.9) on FreeBSD (5.2.1):
$ cat segfault.pike void set_expire_hook(function exphook, void|mixed ...fargs, string|object id) { }
int main() { }
$ pike segfault.pike segfault.pike:1:Can't define more arguments after ... /home/david/Pike/7.6/src/pike_types.c:717: Fatal error: Unexpected type on stack: 255 (expected 0) Backtrace at time of fatal: /usr/local/pike/7.6.9/lib/master.pike:346: object(/usr/local/pike/7.6.9/lib/master.pike)->compile_string("void set_expire_hook(function exphook, void|mixed ...fargs, string|object id)\n{\n}\n\nint main()\n{\n}\n","/home/david/scripts/segfault.pike",0,/home/david/scripts/segfault,0)
/usr/local/pike/7.6.9/lib/master.pike:813:
object(/usr/local/pike/7.6.9/lib/master.pike)->low_findprog("/home/david/scripts/segfault",".pike",0,0)
/usr/local/pike/7.6.9/lib/master.pike:907:
object(/usr/local/pike/7.6.9/lib/master.pike)->findprog("/home/david/scripts/segfault",".pike",0,0)
/usr/local/pike/7.6.9/lib/master.pike:943:
object(/usr/local/pike/7.6.9/lib/master.pike)->low_cast_to_program("/home/david/scripts/segfault","/usr/local/pike/7.6.9/lib/master.pike",0,0)
/usr/local/pike/7.6.9/lib/master.pike:977:
object(/usr/local/pike/7.6.9/lib/master.pike)->cast_to_program("/home/david/scripts/segfault.pike","/usr/local/pike/7.6.9/lib/master.pike",0)
Abort trap (core dumped)
It's 100% reproductible.
/ David
/ Brevbäraren
Yes.
/ David Gourdelier
Martin Nilsson (räfsfiskal) @ Pike (-) developers forum wrote:
I'm assuming that you don't get the segfault if you compile without debug, right?
/ Martin Nilsson (räfsfiskal)
Previous text:
2004-05-26 16:22: Subject: Compiler bug
Hi,
Here is a new bug of Pike 7.6(.9) on FreeBSD (5.2.1):
pike-devel@lists.lysator.liu.se