POV-Ray : Newsgroups : povray.unofficial.patches : MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64 Server Time
4 Dec 2024 14:22:05 EST (-0500)
  MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64 (Message 1 to 2 of 2)  
From: clipka
Subject: MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64
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
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

From: Nicolas Calimet
Subject: Re: MCPov 0.0.5 (MegaPOV 1.2.1?) segfaulting on Debian AMD64
Date: 27 Feb 2009 09:58:28
Message: <49a7ff94$1@news.povray.org>
> 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

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