[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: segfault in strlen



arno@renevier.net wrote:
> 
> hi, I experience a segfault when using  strlen. First time it happened was
> when doing:
> strlen(argv[0]), but it also happens when doing strlen(stdup(argv[0])) and in
> some other configurations. When a string triggers a segfault, I can printf it
> correctly, what's more: I can also traverse the string and detect final '\0' at
> its correct place (so, what's wrong with strlen?).

I investigated more. Actually, for some reason, I had binutils-gold installed.
Removing it to use standard binutils fixes the problem.


Reply to: