segfault, if trying to switch to illegal context *twice*

Q&A's, tips, howto's
Locked
hartrock
Posts: 136
Joined: Wed Aug 07, 2013 9:37 pm

segfault, if trying to switch to illegal context *twice*

Post by hartrock »

Code: Select all

sr@freen:~$ newlisp
newLISP v.10.6.5 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h

> (set 's (sym "Foo bar" MAIN))
Foo bar
> (context s)

ERR: invalid parameter in function context : "Foo bar"
> (context s)
Segmentation fault

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: segfault, if trying to switch to illegal context *twice*

Post by Lutz »

Thanks Hartrock, the contents of the symbol was left un-initialized on error, now fixed:

http://www.newlisp.org/downloads/develo ... nprogress/

Locked