From owner-svn-src-head@FreeBSD.ORG Thu May 2 18:08:34 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 02E29EE0; Thu, 2 May 2013 18:08:34 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by mx1.freebsd.org (Postfix) with ESMTP id 130A51DE5; Thu, 2 May 2013 18:08:32 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id b15so430257eek.16 for ; Thu, 02 May 2013 11:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from:x-priority :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=TBoPVqo5wJRnPvoMpRJy6mbQoEetwN0uRnkrvRDef/c=; b=x14aiWiEpUFOpkWYJ42mrTePVFZjsZNdBkfXMdfVgPF85EJvsvfk/WfBclqeXUg1UV f9WoYu7yraXqE+I6c8LebhLdzdR10gJMiXGs6Uyj5zQ9b90TeTTfNTsGVXylUMMYoV3t ZpxCJGUVFvg8/A3t6tHxkM4oDc2u3P7cRDImlNI+IHUpRPBH/aiG2y4uO7yva+Ewk3PH AMBIFdBNhGW5u5tbBm8xJfZ2DEArMmn7DDenNgHhoQ+Q7OdNJB5p+ywzvd/qg+7PP7e3 3R8aBYPxoWouc5OSQDvcEfqyIoZEJklykO+MttaoIQYlFzuQreHQ3Az/y3jwOJkr0PgO +ZIQ== X-Received: by 10.15.31.197 with SMTP id y45mr22260748eeu.18.1367518106340; Thu, 02 May 2013 11:08:26 -0700 (PDT) Received: from [192.168.1.104] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPSA id bp51sm9289779eeb.5.2013.05.02.11.08.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 11:08:25 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Subject: Re: svn commit: r249939 - head/sys/cam/scsi Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= X-Priority: 3 In-Reply-To: <8C38141DA56442218C71EDCBA9790CF8@multiplay.co.uk> Date: Thu, 2 May 2013 20:08:22 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201304261617.r3QGH58Q048395@svn.freebsd.org> <20130429225641.GA1375@nargothrond.kdm.org> <8C38141DA56442218C71EDCBA9790CF8@multiplay.co.uk> To: Steven Hartland X-Mailer: Apple Mail (2.1283) Cc: svn-src-head@FreeBSD.org, Steven Hartland , "Kenneth D. Merry" , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2013 18:08:34 -0000 Wiadomo=B6=E6 napisana przez Steven Hartland w dniu 30 kwi 2013, o godz. = 05:16: [..] > If anyone's interested the trace was:- > #0 doadump (textdump=3D0) at pcpu.h:231 > #1 0xffffffff802f6d6e in db_dump (dummy=3D, = dummy2=3D0, dummy3=3D0, dummy4=3D0x0) at = /usr/home/smh/freebsd/base/head/sys/ddb/db_command.c:543 > #2 0xffffffff802f683d in db_command (cmd_table=3D) at /usr/home/smh/freebsd/base/head/sys/ddb/db_command.c:449 > #3 0xffffffff802f65b4 in db_command_loop () at = /usr/home/smh/freebsd/base/head/sys/ddb/db_command.c:502 > #4 0xffffffff802f8f50 in db_trap (type=3D, = code=3D0) at /usr/home/smh/freebsd/base/head/sys/ddb/db_main.c:231 > #5 0xffffffff805c0df3 in kdb_trap (type=3D9, code=3D0, tf=3D) at = /usr/home/smh/freebsd/base/head/sys/kern/subr_kdb.c:654 > #6 0xffffffff8075580a in trap_fatal (frame=3D0xffffff823b8dc790, = eva=3D) at = /usr/home/smh/freebsd/base/head/sys/amd64/amd64/trap.c:867 > #7 0xffffffff807554b7 in trap (frame=3D) at = /usr/home/smh/freebsd/base/head/sys/amd64/amd64/trap.c:224 > #8 0xffffffff8073e1f2 in calltrap () at = /usr/home/smh/freebsd/base/head/sys/amd64/amd64/exception.S:228 > #9 0xffffffff8029c860 in cam_periph_alloc = (periph_ctor=3D0xffffffff802af410 , = periph_oninvalidate=3D0xfffffe0019cfa200, periph_dtor=3D, periph_start=3D0xfffffe0015980a90, name=3D, = type=3D2159638184, > path=3D0xfffffe0015ad79a0, ac_callback=3D, = code=3D) at = /usr/home/smh/freebsd/base/head/sys/cam/cam_periph.c:227 > #10 0xffffffff802aed6b in scsi_scan_lun (request_ccb=3D) at = /usr/home/smh/freebsd/base/head/sys/cam/scsi/scsi_xpt.c:2266 > #11 0xffffffff802b2859 in scsi_scan_bus (periph=3D0x0, = request_ccb=3D0xfffffe00234df000) at = /usr/home/smh/freebsd/base/head/sys/cam/scsi/scsi_xpt.c:1969 > #12 0xffffffff802a66c5 in xpt_scanner_thread (dummy=3D) at /usr/home/smh/freebsd/base/head/sys/cam/cam_xpt.c:2411 I've seen a panic which is slightly different, but perhaps could be = related: #11 0xffffffff8085fde2 in __mtx_assert (c=3D0xffffff81aeccd8c0,=20 what=3D,=20 file=3D0xffffffff80e6b0aa = "/home/trasz/p4/iscsi/sys/kern/kern_cons.c",=20 line=3D128) at /home/trasz/p4/iscsi/sys/kern/kern_mutex.c:788 #12 0xffffffff802cc8e1 in xpt_compile_path (new_path=3D0xfffffe00150d7180,= =20 perph=3D0xfffffe00112e1e00, path_id=3D, = target_id=3D0,=20 lun_id=3D0) at /home/trasz/p4/iscsi/sys/cam/cam_xpt.c:4664 #13 0xffffffff802cba1b in xpt_create_path = (new_path_ptr=3D0xffffff81aeccdb50,=20 perph=3D0xfffffe00112e1e00, path_id=3D2, target_id=3D0, lun_id=3D0) at /home/trasz/p4/iscsi/sys/cam/cam_xpt.c:3398 #14 0xffffffff802dcca3 in scsi_scan_bus (periph=3D,=20= request_ccb=3D0xfffffe00157e4800) at /home/trasz/p4/iscsi/sys/cam/scsi/scsi_xpt.c:1955 #15 0xffffffff802d0ca4 in xpt_scanner_thread (dummy=3D) at /home/trasz/p4/iscsi/sys/cam/cam_xpt.c:841 It looks like it's impossible for the lock to be not owned in that code path, so it suggests some kind of memory corruption. It can be easily reproduced by creating several SIMs at the exact same time. [..] --=20 If you cut off my head, what would I say? Me and my head, or me and my = body?