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

Re: [E-devel] eet crashes in a directory without write permission



Carsten Haitzler (The Rasterman) schrieb:

>On Mon, 28 Aug 2006 16:17:41 +0200 Peter Wehrfritz <peter.wehrfritz@web.de>
>babbled:
>
>  
>
>>Hi all,
>>
>>I'm using eet for the highscore support in elitaire, but eet crashes 
>>while writing into a file that is in a directory, for that the user 
>>hasn't got write permission, altough he has write permission for the 
>>file itself.
>>
>>To reproduce this:
>>
>>- first compile the attached test app and then make a directory called tmp
>>- execute the the test app once or twice (or oftener)
>>- chmod 555 tmp
>>- then execute it again and it will crash
>>    
>>
>
>should be fixed in cvs now :)
>
>  
>
Unfortunately it isn't.

Program received signal SIGBUS, Bus error.
0xb7bf2db8 in strcmp () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7bf2db8 in strcmp () from /lib/tls/libc.so.6
#1  0xb7f09dc3 in eet_string_match (s1=0xb7f2e020 "", s2=0x8048bf6 "blah")
    at eet_lib.c:263
#2  0xb7f0ba20 in eet_write (ef=0x804a028, name=0x8048bf6 "blah", 
    data=0xbfb41f50, size=1024, compress=1) at eet_lib.c:1053
#3  0x08048a01 in main (argc=1, argv=0xbfb423f4) at test.c:37
(gdb) fr 2 
#2  0xb7f0ba20 in eet_write (ef=0x804a028, name=0x8048bf6 "blah", 
    data=0xbfb41f50, size=1024, compress=1) at eet_lib.c:1053
1053                 if ((efn->name) && (eet_string_match(efn->name, name)))
(gdb) print efn->name
$1 = 0xb7f2e020 ""