From owner-freebsd-scsi Fri Apr 27 18:53:18 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from eal.miknet.net (eal.miknet.net [202.174.235.5]) by hub.freebsd.org (Postfix) with ESMTP id 5AA6437B423 for ; Fri, 27 Apr 2001 18:53:13 -0700 (PDT) (envelope-from michael@miknet.net) Received: from michael by eal.miknet.net with local (Exim 3.22 #1 (Debian)) id 14tJpH-0001yh-00 for ; Sat, 28 Apr 2001 11:47:11 +1000 Date: Sat, 28 Apr 2001 11:47:11 +1000 To: freebsd-scsi@freebsd.org Subject: NULL pointer deref in scsi_sense_desc Message-ID: <20010428114711.A7571@miknet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i From: Michael Samuel Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I got a "Page fault in kernel mode" which writing to a SCSI tape (which had barfed on me with some SCSI sense messages shortly before the crash). This is in -current from the CVS as of about a week or 2 ago. It stopped at scsi_sense_desc+0x2f, which resolved in gdb -k to cam/scsi/scsi_all.c line 1573, which in my copy of the source tree looks like this: void scsi_sense_desc(int sense_key, int asc, int ascq, struct scsi_inquiry_data *inq_data, const char **sense_key_desc, const char **asc_desc) { const struct asc_table_entry *asc_entry; const struct sense_key_table_entry *sense_entry; fetchtableentries(sense_key, asc, ascq, inq_data, &sense_entry, &asc_entry); *sense_key_desc = sense_entry->desc; It seems as though sense_entry is NULL after fetchtableentries() returns, which when I took a quick peek at fetchtableentries(), it indicates that it couldn't find a match. I'm not subscribed to this list, but if you need more info, feel free to send me an email directly (or Cc me in your follow-ups). -- Michael Samuel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message