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

Bug#384854: SIGSEGV in sendfile64()



Aurelien Jarno said the following on 08/27/06 14:14:
> Daniel Weindl a écrit :
>> Package: libc6
>> Version: 2.3.6.ds1-4
>>
>> Using the
>> int stat (const char *filename, struct stat *buf)
>> function in a programm on a certain filename causes a segmentation fault.
>>
>> For example:
>> [...]
>> struct stat *stats;
>> stat("/home/daniel/music/Singles/Spax, Flowin Immo, Toni L u.a", stats);
> 
> Do you have a full testcase that could be compiled?
> 
> In the example you give, you are not allocating correctly the stats
> buffer, I don't know if it is a simplification for the bug report or a
> mistake in your code.
> 

I just rechecked my code. I'm not sure why there wasn't always a
segfault, but it was an allocating problem as you said.
Sorry for bothering you. This report can be closed.




Reply to: