I've fixed the bug. I had forgotten to set the number of open parentheses to
zero after deleting all of the internal stacks. The evaluate function would
then think that there was an extra level in the stack.
-Sean
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Micah Dowty
> Sent: Friday, August 17, 2001 11:37 PM
> To: [EMAIL PROTECTED]
> Subject: [Pgui-devel] Found bug in VRcalc
>
>
> After fixing the pgserver crash bug reported by Olivier, I started running
> pgserver and VRcalc with gremlin. (gremlin is an app that rapidly sends
> random events to pgserver) Instead of crashing pgserver, it
> crashed vrcalc!
> I added an extra event handler to print out all keys pressed in vrcalc,
> then messed with the sequence a bit to find the shortest sequence I could
> that would make vrcalc segfault. Here it is:
>
> "2nd", "(", "C", "-", "="
>
> This makes it crash on line 419, in the btnEquals function.
> currentStack is
> NULL. Sean, hope this helps you find the problem!
>
> --
> Only you can prevent creeping featurism!
>
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel