google-code-export / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

Crash with debug_options ALL,3 #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Probably corrupted cache
2. debug_options ALL,3

What version of the product are you using? On what operating system?
HEAD from svn, latest one

Please provide any additional information below.
gdb with core

#0  0xb7e0f8a7 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0xb7e111a4 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x080b60ff in death (sig=11) at tools.c:326
No locals.
#3  <signal handler called>
No symbol table info available.
#4  0x080b1052 in storeKeyPrivate (url=0x810b3bd "JUNK", method=0x0, id=26)
at store_key_md5.c:102
        digest = "kJkTÜa\224.³2`\035^\203¼V"
        zero = 0
        M = {buf = {1, 3219406792, 3085255556, 3086143808}, bytes =
{139686680, 139686680}, in = {139686624, 0, 135348697, 3219406840,
134941696, 139686680, 139686680, 2, 0, 135312322, 3219406884,
    306, 4278845440, 139686624, 0, 3219406888}}
...
(gdb) up
#4  0x080b1052 in storeKeyPrivate (url=0x810b3bd "JUNK", method=0x0, id=26)
at store_key_md5.c:102
102         debug(20, 3) ("storeKeyPrivate: %s %s\n", method->string, url);
(gdb) print method->string
Cannot access memory at address 0x4

It means method can be NULL. Proposed patch attached

Original issue reported on code.google.com by nuclear...@gmail.com on 1 Sep 2009 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
howdy,

What was the rest of the backtrace? I'd like to know what was calling 
storeKeyPrivate() with a NULL method. It 
shouldn't be happening!

Original comment by adrian.c...@gmail.com on 1 Sep 2009 at 5:45

GoogleCodeExporter commented 9 years ago
Just committed r14292 which may fix the issue. :P

Original comment by adrian.c...@gmail.com on 1 Sep 2009 at 5:47

GoogleCodeExporter commented 9 years ago
Here is full backtrace
(gdb) bt full
#0  0xb7e0f8a7 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0xb7e111a4 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x080b60ff in death (sig=11) at /usr/include/bits/stdio2.h:98
No locals.
#3  <signal handler called>
No symbol table info available.
#4  0x080b1052 in storeKeyPrivate (url=0x810b3bd "check_cachable_stats", 
method=0x0,
id=26) at store_key_md5.c:116
        digest = "kJkTÜa\224.³2`\035^\203¼V"
        zero = 0
        M = {buf = {1, 3219406792, 3085255556, 3086143808}, bytes = {139686680,
139686680}, in = {139686624, 0, 135348697, 3219406840, 134941696, 139686680,
    139686680, 2, 0, 135312322, 3219406884, 306, 4278845440, 139686624, 0, 3219406888}}
#5  0x080a94ed in storeSetPrivateKey (e=0x85372e0) at store.c:483
        newkey = <value optimized out>
        mem = <value optimized out>
#6  0x080ad72a in storeRecycle (e=0x85372e0) at store_io.c:150
        SD = (SwapDir *) 0x82cf7b0
#7  0x080c8268 in storeAufsRebuildHelperRead (fd=15, data=0x8307450) at
aufs/store_rebuild_aufs.c:147
        sd = (SwapDir *) 0x82cf7b0
        r = <value optimized out>
        i = <value optimized out>
        s = {op = 2 '\002', swap_filen = 306, timestamp = 1251759989, lastref =
1251759999, expires = -1, lastmod = 1251738284, swap_file_sz = 254374, refcount 
= 1,
  flags = 1120, key = "@l>®û\202ñ\021ÊÙ\016ÃêÄÉ'"}
#8  0x080e5642 in comm_select (msec=1000) at comm_generic.c:222
        last_timeout = 1251764092.460212
        rc = <value optimized out>
        start = 1251764092.460212
#9  0x08092f49 in main (argc=4, argv=0xbfe442d4) at main.c:933
        wait = <value optimized out>
        errcount = 0
        loop_delay = 26

Original comment by nuclear...@gmail.com on 1 Sep 2009 at 9:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
DISCARD! :-)

I am not sure last backtrace is correct, i will recheck more, probably i modify 
binaries
(recompiled)
Sorry :-(

Original comment by nuclear...@gmail.com on 1 Sep 2009 at 10:44

GoogleCodeExporter commented 9 years ago
Problem is definitely fixed by your patch

Original comment by nuclear...@gmail.com on 2 Sep 2009 at 8:55

GoogleCodeExporter commented 9 years ago
Thanks! Closing ticket.

Original comment by adrian.c...@gmail.com on 11 Sep 2009 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by adrian.c...@gmail.com on 11 Sep 2009 at 9:03