On Sat, 16 Mar 2002, David wrote:

> Hi,
> 
> I read the man page for njamd (not just another memory debugger) and
> followed the instructions to first:
> 
> export LD_PRELOAD=libnjamd.so
> 
> and then run my program.
> 
> However, I could not even get my program to start running. And even a simple
> 'ls' command fails miserably with:
> 
> NJAMD/free: address 0x0 is not returned by malloc.
> NJAMD/free: address 0x0 is not returned by malloc.
> Segmentation Fault.

 You got this from "ls" !?!

 You might want to add

        export NJAMD_ALLOW_FREE_0=1

because free(0) is legal ANSI C and is basically a no-op; it allows
simpler code in some cases as long as you remember not to leave any
dangling pointers.

 Only thing I can think of is that maybe njamd was built with an older
version of gcc/g++ or is linked against a different set of libraries
than you're using.

 What other environment variables are you setting to get the output
from njamd?

> So, am I using this correctly? Or is this debugger too sensitive? Or is it
> broken in some way? :)
> 
> I heard it was really good but I failed to get it to work.
> 
> Thanks,
> David




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to