[Gluster-devel] NULL frame->conn cause a crash

Emmanuel Dreyfus manu at netbsd.org
Tue Jul 5 12:27:14 UTC 2011


On Tue, Jul 05, 2011 at 09:32:23AM +0000, Emmanuel Dreyfus wrote:
> Let us forget my previous batch of crashes that were with 3.2.1. This
> one iw with today's code from git:

Another NULL pointer on the same brick. I suspect soemthing could be
rotten here, but what?

Program terminated with signal 11, Segmentation fault.
#0  pl_truncate_cbk (frame=0xbaf24f10, cookie=0xbaf01b00, this=0xba554000, 
    op_ret=-1, op_errno=22, prebuf=0xb98e6c70, postbuf=0xb8fffaac)
    at posix.c:117
117             if (local->op == TRUNCATE)

local is frame->local and is indeed NULL.

(gdb) print *frame
$2 = {root = 0xbad010ac, parent = 0xbaf0b5b0, next = 0xbaf0b5b0, 
  prev = 0xbad01120, local = 0x0, this = 0xba554000, 
  ret = 0xbba0df38 <iot_ftruncate_cbk>, ref_count = -1, lock = {
    pts_magic = 3735879687, pts_spin = 0 '\0', pts_flags = 0}, 
  cookie = 0xbaf24f10, complete = _gf_true, op = GF_FOP_NULL, begin = {
    tv_sec = 0, tv_usec = 0}, end = {tv_sec = 0, tv_usec = 0}, 
  wind_from = 0xbba1653c "iot_ftruncate_wrapper", 
  wind_to = 0xbba1593c "FIRST_CHILD(this)->fops->ftruncate", 
  unwind_from = 0xbba263da "pl_truncate_cbk", 
  unwind_to = 0xbba15391 "iot_ftruncate_cbk"}


-- 
Emmanuel Dreyfus
manu at netbsd.org




More information about the Gluster-devel mailing list