POV-Ray

The Persistence of Vision Raytracer (POV-Ray).

This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.

Attached to Project: POV-Ray
Opened by Jon Boede - 2010-12-15
Last edited by Chris Cason - 2010-12-31

FS#179 - unix version segfaults when $HOME not set

unixoptions.cpp has a getenv(”HOME”) that does an assignment without checking to see if getenv returns NULL.

This causes an immediate and unceremonious segfault in those situations where $HOME is not set such as in the case where povray is launched by a daemon.

Best solution might be to set the home to /tmp and print a warning message about $HOME not being set.

Closed by  Chris Cason
Friday, 31 December 2010, 14:38 GMT
Reason for closing:  Fixed
Grimbert Jérôme commented on Wednesday, 15 December 2010, 19:25 GMT

Confirmed for the missing $HOME generating a segfault (beta 40, take 2, unix source on amd64)
/tmp would be a hard coded value... what if it is somewhere else ?

I'm tempted to simply test m_home against Null in addition to current code which check the length... investigation in progress

Grimbert Jérôme commented on Wednesday, 15 December 2010, 19:47 GMT

proposal in #5273 (very small patch, fix the issue of no $HOME), does not use /tmp

Admin
Christoph Lipka commented on Wednesday, 22 December 2010, 07:20 GMT

should be fixed with change #5276

Grimbert Jérôme commented on Thursday, 30 December 2010, 10:15 GMT

Tested with beta 41: (from command line, after "unset HOME") render is ok (using pov's system default, not the user default anymore, as expectable).

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing