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.


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

Attached to Project: POV-Ray
Opened by Jon Boede (jonboede) - Wednesday, 15 December 2010, 02:44 GMT
Last edited by Chris Cason (chrisc) - Friday, 31 December 2010, 14:38 GMT
Task Type Definite Bug
Category Platform-specific → Runtime error
Status Closed
Assigned To Chris Cason (chrisc)
Operating System Linux
Severity High
Priority Normal
Reported Version 3.70 beta 40
Due in Version 3.70 beta 41
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


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.

This task depends upon

Closed by  Chris Cason (chrisc)
Friday, 31 December 2010, 14:38 GMT
Reason for closing:  Fixed
Comment by Grimbert Jérôme (Le_Forgeron) - 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

Comment by Grimbert Jérôme (Le_Forgeron) - Wednesday, 15 December 2010, 19:47 GMT

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

Comment by Christoph Lipka (clipka) - Wednesday, 22 December 2010, 07:20 GMT
  • Field changed: Status (Assigned → Requires testing)
  • Field changed: Due in Version (3.70 RC1 → 3.70 beta 41)
  • Field changed: Percent Complete (0% → 100%)

should be fixed with change #5276

Comment by Grimbert Jérôme (Le_Forgeron) - 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).