FreeBSD 9.2.0 - segmentation fault 11

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

FreeBSD 9.2.0 - segmentation fault 11

Post by cormullion »

I wondered why my web site wasn't working today - on a hunch I checked the newLISP version number, and they've installed 9.2.0 (over the weekend perhaps) upgrading from 9.1.8. While newLISP itself appears to be working OK, my index.cgi file crashes with a segmentation fault 11...

I'd be grateful for any tips or suggestions as to what to look for? Was there something that was in 9.2 but not 9.1 that coul cause a segfault..?

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

Post by Lutz »

I went through the changes notes, but could not find anything relevant. The best is to put 'println' statements into your script, the output will show up in the browser. The first should be a:

Code: Select all

(print  "Content-type: text/html\r\n\r\n")

(println "I am getting to here<br>")

(exit)
then let the script exit.

This way you can find out where in the script the problem is and isolate the part. Perhaps they also did an update of the Sqlite database and there is a problem importing functions?

Worse case ask them to additionally install the old newlisp as newlisp91, then change the first line in your script accordingly. Having both versions installed makes debugging perhaps easier.

Lutz

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Thanks Lutz. I've established that CGI is working fine - Fanda's cgi-info script works OK.

sqlite3.lsp loads up fine to, so I'll write a simple database test file and see how I get on.

It's an educational experience! :/

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Ah - the chaps at nearlyfreespeech attempted an upgrade of SQLite yesterday and it went wrong...

newLISP is innocent! (of course)

Locked