|
|
I just tried (for the N-th time) to install MCPov 0.0.5 on my AMD 64-bit Debian
Etch Linux system.
Intel C++ compiler refused to compile, complaining about something in the libpng
sources.
GNU C++ compiler produced only code that would do a fine job rendering the
benchmark, but segfault on any montecarlo scene.
Using valgrind I was able to track down the error to a statement in
userdisp.cpp, function POV_Std_Display_Init():
#ifdef AVOID_EMPTY_STRING_WARNING
char *s = NULL;
fprintf(stderr, "%s", s);
#else
fprintf(stderr, "");
#endif
Duh - how smart to deliberately try to print a NULL string (or an empty string,
for that matter)... well, anyway, changing patches.h to disable the
AVOID_EMPTY_STRING_WARNING patch would work around the issue.
As this is part of the MegaPOV 1.2.1 sources, I guess this is more of a general
MegaPOV problem rather than a MCPov specific thing.
Post a reply to this message
|
|
|
|
> Duh - how smart to deliberately try to print a NULL string (or an empty string,
> for that matter)...
Yes, this segfault was already reported in late 2006, see the thread starting at
http://news.povray.org/web.4554a7fdf42c2ca769dedb9b0%40news.povray.org
- NC
Post a reply to this message
|
|