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

Q&A's, tips, howto's

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

Postby hartrock » Sat Jan 09, 2016 12:57 am

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
hartrock
 
Posts: 136
Joined: Wed Aug 07, 2013 9:37 pm

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

Postby Lutz » Sun Jan 10, 2016 6:12 pm

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

http://www.newlisp.org/downloads/develo ... nprogress/
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron