"Hopkins, Scott" <[EMAIL PROTECTED]> writes:

> Interesting.  Compiled that code and I get the following when running
> the resulting binary. 
>
>       /var/opt/prj/wget$ strdup_test
>       20001448

As I suspected.  Such an obvious strdup bug would likely have been
detected sooner.

> I appear to have a functioning wget binary with the strdup change to
> config.h, but I'm curious what you think the other causes of this
> problem could be.

Hard to tell.  Some crashes, especially those resulting from memory
corruption bugs, can disappear when you change *anything* about the
build.  Of course, they tend to reappear later as well.  If you're
curious about debugging this, you can compile Wget with DEBUG_MALLOC
defined, which will at least catch some obvious errors, such as double
free.  Even better would be to run Wget under a real memory debugger
such as valgrind or purify, but I don't know if you have access to one
under AIX.

Reply via email to