This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unexpected value-at for NULL'd pointer with pthreads


On 08/24/2015 03:29 PM, Kyle Harper wrote:
>>> I'm happy to provide any other code or info, or try other debugging
>>> tools.  I'm getting desperate trying to track this down, so any help
>>> is appreciated.
>>
>> The rule for this is always super-simple:
>>
>> Provide a complete example with full instructions about how to
>> reproduce the problem.
>>
>> Andrew.
>>
> 
> My apologies if I'm misunderstanding what you mean, but I did provide
> the full simplified example to demonstrate the issue in the Gist link:
> https://gist.github.com/KyleJHarper/af89bc1a11a699e14d48#file-grr-c

I did not see that link in any of your emails.  It doesn't do
anything about removing elements from lists.

> 
> Compiled with:
> gcc -std=gnu99 -pthread -o grr grr.c

You're freeing the same buffer twice.  Thus your program crashes.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]