View unanswered posts | View active topics It is currently Thu Sep 09, 2010 4:24 am



Post new topic Reply to topic  [ 4 posts ] 
FreeBSD 9.2.0 - segmentation fault 11 
Author Message

Joined: Tue Nov 29, 2005 8:28 pm
Posts: 1691
Location: latiitude 50N longitude 3W
Post FreeBSD 9.2.0 - segmentation fault 11
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..?


Mon Dec 03, 2007 10:44 pm
Profile WWW

Joined: Thu Sep 26, 2002 4:45 pm
Posts: 4159
Location: Boca Raton, Florida
Post 
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:
(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


Tue Dec 04, 2007 1:51 am
Profile E-mail WWW

Joined: Tue Nov 29, 2005 8:28 pm
Posts: 1691
Location: latiitude 50N longitude 3W
Post 
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! :/


Tue Dec 04, 2007 9:00 am
Profile WWW

Joined: Tue Nov 29, 2005 8:28 pm
Posts: 1691
Location: latiitude 50N longitude 3W
Post 
Ah - the chaps at nearlyfreespeech attempted an upgrade of SQLite yesterday and it went wrong...

newLISP is innocent! (of course)


Tue Dec 04, 2007 4:40 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.