[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Detecting Seg faults

Francesco Orsenigo wrote:

Ok, i've added:

export "MALLOC_CHECK_=2"

A test with getenv("MALLOC_CHECK_") outputs a string argument "2".

The program fails no more: it just runs without some graphic, maybe as result of the bad addressing.

I'm trying valgrind (hope there is a man page for it).
Do a Google search on it...there is a ton of documentation out there.

The second law of Frisbee throwing states: "Never precede any maneuver
by a comment more predictive than "Watch this!"...it turns out that
this also applies to writing Fragment Shaders.
Steve Baker                      (817)619-2657 (Vox/Vox-Mail)
L3Com/Link Simulation & Training (817)619-2466 (Fax)
Work: sjbaker@link.com           http://www.link.com
Home: sjbaker1@airmail.net       http://www.sjbaker.org