POV-Ray : Newsgroups : povray.unix : Debugging and line numbers : Re: Debugging and line numbers Server Time
16 May 2024 22:38:45 EDT (-0400)
  Re: Debugging and line numbers  
From: Thierry CHARLES
Date: 2 Feb 2009 13:13:31
Message: <498737cb@news.povray.org>

> So now I got very frequent segfaults in my development version of POV-R
ay -
> frequent enough to be reproducible even with the non-optimized debug ve
rsion
> within a few seconds. Time to track them down with valgrind and gdb.
> 
> Hum... so now I know in which *function* it crashes - but what do I hav
e to do
> in order to get the *line number*??
> 
> Digging through assembler code and trying to match it with the C++ sour
ce code
> is a bit cumbersome, so I guess there *must* be an easier way... even L
inux
> jockeys can't be *that* masochistic :)
> 
> I knew I wouldn't like debugging under Linux :S
> 
> 
> 


To debug, you should run povray with gdb. Then you'll be able to add 
breakpoint and/or view the stack-trace on a segfault

another way is to integrate povray sources in a project under KDevelop 
and then run in debug mode .. it will show you the "wrong" code

good luck


Post a reply to this message

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