POV-Ray : Newsgroups : povray.unofficial.patches : MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64 : MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64 Server Time
19 Jun 2024 06:40:07 EDT (-0400)
  MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64  
From: clipka
Date: 26 Feb 2009 20:55:00
Message: <web.49a746eb76c6ea06919973e90@news.povray.org>
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

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():

    char *s = NULL;
    fprintf(stderr, "%s", s);
    fprintf(stderr, "");

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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.