Bug 762138 (GLUSTER-406) - segmentation fault in protocol/client
Summary: segmentation fault in protocol/client
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-406
Product: GlusterFS
Classification: Community
Component: protocol
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-25 01:25 UTC by Raghavendra G
Modified: 2009-11-25 01:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Raghavendra G 2009-11-24 22:45:30 UTC
since this was caused while debugging stat-prefetch, there is a possibility that the memory corruption caused by stat-prefetch resulting int this bug.

Comment 1 Raghavendra G 2009-11-25 01:25:47 UTC
Here is the backtrace:

(gdb) info thr
  3 Thread 0xb7568b90 (LWP 10066)  0xb7ea679c in nanosleep () from /lib/libc.so.6
* 2 Thread 0xb6d68b90 (LWP 10068)  0xb7f690a4 in __lll_lock_wait () from /lib/libpthread.so.0
  1 Thread 0xb7e10ae0 (LWP 10065)  0xb7f94188 in gf_timer_call_cancel (ctx=0x8051008, event=0x80913e0)
    at ../../../libglusterfs/src/timer.c:125
(gdb) thr 1
[Switching to thread 1 (Thread 0xb7e10ae0 (LWP 10065))]#0  0xb7f94188 in gf_timer_call_cancel (ctx=0x8051008, 
    event=0x80913e0) at ../../../libglusterfs/src/timer.c:125
125                     event->prev->next = event->next;
(gdb) p event->prev
$10 = (struct _gf_timer *) 0x0
(gdb) p *event
$11 = {next = 0x80577a0, prev = 0x0, at = {tv_sec = 0, tv_usec = 1}, 
  cbk = 0xb75b8065 <client_ping_timer_expired>, data = 0x8058448}


thread 2 is waiting on the same lock held by thread 1.

The setup was a simple protocol/client and protocol/server setup with stat-prefetch loaded on it. I was debugging some bug (ls on mount point used to hang) in stat-prefetch when I hit this bug. The operation being done was ls on mount point.


Note You need to log in before you can comment on or make changes to this bug.