Bug #35040 ma_pagecache_rwconsist_1k-t crashes
Submitted: 4 Mar 2008 15:56 Modified: 21 Apr 2008 18:58
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Maria storage engine Severity:S3 (Non-critical)
Version:5.1-maria OS:Any
Assigned to: Oleksandr Byelkin CPU Architecture:Any

[4 Mar 2008 15:56] Guilhem Bichot
Description:
segfault because "next" is NULL at start of
wqueue_release_one_locktype_from_queue()
called from
release_rdlock()
make_lock_and_pin()
pagecache_unlock_by_link()
reader() line 102
test_thread_reader() line 152

How to repeat:
run it on Windows.
[4 Mar 2008 15:58] Guilhem Bichot
linux 32-bit is same
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1269527664 (LWP 10443)]
wqueue_release_one_locktype_from_queue (wqueue=0xb6d7a038) at wqueue.c:168
168         next= thread->next;
(gdb) bt
#0  wqueue_release_one_locktype_from_queue (wqueue=0xb6d7a038) at wqueue.c:168
#1  0x08051377 in make_lock_and_pin (pagecache=0x81762c0, block=0xb6d7a008, lock=PAGECACHE_LOCK_READ_UNLOCK,
    pin=PAGECACHE_UNPIN) at ma_pagecache.c:2437
#2  0x08051916 in pagecache_unlock_by_link (pagecache=0x81762c0, block=0xb6d7a008, lock=PAGECACHE_LOCK_READ_UNLOCK,
    pin=PAGECACHE_UNPIN, first_REDO_LSN_for_page=0, lsn=0, was_changed=0 '\0') at ma_pagecache.c:2981
#3  0x0804febe in reader (num=4) at ma_pagecache_rwconsist.c:100
#4  0x0804ff3b in test_thread_reader (arg=0x81db008) at ma_pagecache_rwconsist.c:152
#5  0xb7f20112 in start_thread () from /lib/libpthread.so.0
#6  0xb7e3c2ee in clone () from /lib/libc.so.6
[9 Apr 2008 12:21] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/45123

ChangeSet@1.2628, 2008-04-09 15:20:58+03:00, bell@desktop.sanja.is.com.ua +2 -0
  Problems of partially freed waiting quque fixed (BUG#35040)
[21 Apr 2008 9:51] Guilhem Bichot
approved with minor comments sent by mail
[21 Apr 2008 14:16] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/45766

ChangeSet@1.2628, 2008-04-21 17:14:58+03:00, bell@desktop.sanja.is.com.ua +2 -0
  Problems of partially freed waiting quque fixed (BUG#35040)