POV-Ray : Newsgroups : povray.unix : Debugging and line numbers Server Time
1 Jun 2024 09:01:27 EDT (-0400)
  Debugging and line numbers (Message 21 to 26 of 26)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: nemesis
Subject: Re: Debugging and line numbers
Date: 10 Feb 2009 01:08:41
Message: <499119e9$1@news.povray.org>
clipka wrote:
> BTW, why does everybody seem to take a "I hate Linux" for "Linux is crap"?

I don't know, but I just hate you.

kidding, I truly have you in high regard for your kind rework of pov's 
radiosity. ;)

Don't be so impatient.  Any more tip, just call...


Post a reply to this message

From: clipka
Subject: Re: Debugging and line numbers
Date: 10 Feb 2009 17:00:01
Message: <web.4991f808c31877f3797ec15b0@news.povray.org>
Jim Henderson <nos### [at] nospamcom> wrote:
> > Sure. I prefer the "INSTALL" documentation of POV though (I'm not so
> > fond of any online help that I have to invoke again and again because it
> > keeps scrolling out of view in my terminal window). Still it doesn't say
> > what *exactly* those compiler flags do; for example, can *you* tell me
> > what *exactly* the "--enable-debug" flag does? I give you a hint: It
> > does *not* seem to enable line number information in the executable.
>
> Pipe the output through less.  :-)

You didn't get my point: I'm more into hypertext online helps in a dedicated
window, not something that goes on in a standard terminal window.

Well, maybe Linux people can't understand why anybody would have such
preferences, but... well, there *is* something intuitive about having different
things look different on the desktop...

> I don't have the povray source on my system at the moment, so no, I
> probably couldn't tell you what --enable-debug does in povray's configure
> script.
>
> You could always run the configure script with and without the switch and
> diff the makefiles....That's how I'd do it rather than trying to sort
> through bash scripting (since that's not my strong suit).

And here you got it again what my whole lamenting is about: Finding out how to
get line numbers out of a core dump or valgrind run seems to boil down to a
detective's job, and I don't have the time nor patience to do it.


Post a reply to this message

From: clipka
Subject: Re: Debugging and line numbers
Date: 10 Feb 2009 17:20:00
Message: <web.4991fb1ac31877f3797ec15b0@news.povray.org>
nemesis <nam### [at] nospam-gmailcom> wrote:
> > BTW, why does everybody seem to take a "I hate Linux" for "Linux is crap"?
>
> I don't know, but I just hate you.

You're welcome - as long as you're not saying that I'm crap :P


> Don't be so impatient.  Any more tip, just call...

Yeah - just tell me what freakin' compiler settings *should* get me those
freakin' line numbers in those freakin' coredumps, and I might freakin' get
ahead somehow to find out how to ./configure POV for that... as of now, nobody
seems to know those Linux compilers well enough to boldly make a statement that
options X and Y will give me what I want. All people come up with is "go look
for yourself, it's sooooooo easy..."

Hey, come on guys, here's something where YOU can help make POV radiosity
better: Invest a few minutes to help a Windows-spoilt developer along on a
Linux machine...

...... oh, by the way: Settings for Intel compiler preferred. To my experience it
does a better job at optimization, so that's the one I'm normally using for
POV. Though I (generally) know how to ./configure POV to compile with gcc, too.


So anyone want those sporadic crashes of Linux POV gotten rid of before they
wind up in some beta? Here's the deal: Somebody help me with that, and I'll give
it a try. Or nobody helps me, and I'll leave that job to someone else more
familiar with Linux development. Both fine with me, though I'd prefer to know
that the betas will be "clean" in this respect.


Post a reply to this message

From: Jim Henderson
Subject: Re: Debugging and line numbers
Date: 11 Feb 2009 12:28:22
Message: <49930ab6@news.povray.org>
On Tue, 10 Feb 2009 16:56:24 -0500, clipka wrote:

> Jim Henderson <nos### [at] nospamcom> wrote:
>> > Sure. I prefer the "INSTALL" documentation of POV though (I'm not so
>> > fond of any online help that I have to invoke again and again because
>> > it keeps scrolling out of view in my terminal window). Still it
>> > doesn't say what *exactly* those compiler flags do; for example, can
>> > *you* tell me what *exactly* the "--enable-debug" flag does? I give
>> > you a hint: It does *not* seem to enable line number information in
>> > the executable.
>>
>> Pipe the output through less.  :-)
> 
> You didn't get my point: I'm more into hypertext online helps in a
> dedicated window, not something that goes on in a standard terminal
> window.
> 
> Well, maybe Linux people can't understand why anybody would have such
> preferences, but... well, there *is* something intuitive about having
> different things look different on the desktop...

No, I understand perfectly.  For a dedicated window, you can always open 
up an extra terminal window as well - there are options.  Or if you 
really want to look at the help in an editor/web page/whatever, open the 
configure script up in that and go to the part of the page that shows the 
help.

>> I don't have the povray source on my system at the moment, so no, I
>> probably couldn't tell you what --enable-debug does in povray's
>> configure script.
>>
>> You could always run the configure script with and without the switch
>> and diff the makefiles....That's how I'd do it rather than trying to
>> sort through bash scripting (since that's not my strong suit).
> 
> And here you got it again what my whole lamenting is about: Finding out
> how to get line numbers out of a core dump or valgrind run seems to boil
> down to a detective's job, and I don't have the time nor patience to do
> it.

What you're lamenting about is that Linux isn't Windows.  Surprise! ;-)

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Debugging and line numbers
Date: 11 Feb 2009 14:05:20
Message: <49932170@news.povray.org>
On Tue, 10 Feb 2009 17:17:59 -0500, clipka wrote:

> Yeah - just tell me what freakin' compiler settings *should* get me
> those freakin' line numbers in those freakin' coredumps, and I might
> freakin' get ahead somehow to find out how to ./configure POV for
> that... as of now, nobody seems to know those Linux compilers well
> enough to boldly make a statement that options X and Y will give me what
> I want. All people come up with is "go look for yourself, it's sooooooo
> easy..."

Well, it's not the sort of thing I do on a daily basis, so if I have to 
google it, then it makes sense to say "the info's out there".  We've been 
down this road before.  Like Nem said, I appreciate the work you're doing 
on the radiosity code and think it's great...

So to help out, I've done the googling.

-g enables line numbers (not as a parameter to the configure script, as a 
parameter to the gcc compiler).  I've just confirmed this with a simple 
"hello world" program:

main () at hello.c:6
6		puts("Hello World");
(gdb) 

This break point is at line 6.

> Hey, come on guys, here's something where YOU can help make POV
> radiosity better: Invest a few minutes to help a Windows-spoilt
> developer along on a Linux machine...
> 
> ...... oh, by the way: Settings for Intel compiler preferred. To my
> experience it does a better job at optimization, so that's the one I'm
> normally using for POV. Though I (generally) know how to ./configure POV
> to compile with gcc, too.

I have no idea about Intel's compiler; don't have it installed, never 
used it before.

> So anyone want those sporadic crashes of Linux POV gotten rid of before
> they wind up in some beta? Here's the deal: Somebody help me with that,
> and I'll give it a try. Or nobody helps me, and I'll leave that job to
> someone else more familiar with Linux development. Both fine with me,
> though I'd prefer to know that the betas will be "clean" in this
> respect.

Are you loading up a core file from a crash in gdb?  Or are you 
duplicating the crash by running povray under gdb?

Jim


Post a reply to this message

From: nemesis
Subject: Re: Debugging and line numbers
Date: 12 Feb 2009 10:22:38
Message: <49943ebe$1@news.povray.org>
Sorry, I didn't turned on my PC last night, but I'll try to core dump 
something today once I get home, in about 7 hours.  I'll help you, 
spoiled Windows child.  :)

clipka escreveu:
> nemesis <nam### [at] nospam-gmailcom> wrote:
>>> BTW, why does everybody seem to take a "I hate Linux" for "Linux is crap"?
>> I don't know, but I just hate you.
> 
> You're welcome - as long as you're not saying that I'm crap :P
> 
> 
>> Don't be so impatient.  Any more tip, just call...
> 
> Yeah - just tell me what freakin' compiler settings *should* get me those
> freakin' line numbers in those freakin' coredumps, and I might freakin' get
> ahead somehow to find out how to ./configure POV for that... as of now, nobody
> seems to know those Linux compilers well enough to boldly make a statement that
> options X and Y will give me what I want. All people come up with is "go look
> for yourself, it's sooooooo easy..."
> 
> Hey, come on guys, here's something where YOU can help make POV radiosity
> better: Invest a few minutes to help a Windows-spoilt developer along on a
> Linux machine...
> 
> ...... oh, by the way: Settings for Intel compiler preferred. To my experience it
> does a better job at optimization, so that's the one I'm normally using for
> POV. Though I (generally) know how to ./configure POV to compile with gcc, too.
> 
> 
> So anyone want those sporadic crashes of Linux POV gotten rid of before they
> wind up in some beta? Here's the deal: Somebody help me with that, and I'll give
> it a try. Or nobody helps me, and I'll leave that job to someone else more
> familiar with Linux development. Both fine with me, though I'd prefer to know
> that the betas will be "clean" in this respect.
> 
> 
>


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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