NetBSD Problem Report #48987

From www@NetBSD.org  Sat Jul 12 11:21:33 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6F698A6531
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Jul 2014 11:21:33 +0000 (UTC)
Message-Id: <20140712112131.9E8E2A654A@mollari.NetBSD.org>
Date: Sat, 12 Jul 2014 11:21:31 +0000 (UTC)
From: ddeus.netbsd@mailnull.com
Reply-To: ddeus.netbsd@mailnull.com
To: gnats-bugs@NetBSD.org
Subject: Kernel crashes on using ATmega32u4 Arduino on USB
X-Send-Pr-Version: www-1.0

>Number:         48987
>Category:       kern
>Synopsis:       Kernel crashes on using ATmega32u4 Arduino on USB
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    skrll
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 12 11:25:00 +0000 2014
>Closed-Date:    Wed Nov 22 19:16:50 +0000 2017
>Last-Modified:  Wed Nov 22 19:16:50 +0000 2017
>Originator:     Oleksandr Kozachuk
>Release:        CURRENT
>Organization:
>Environment:
NetBSD iridium.kozachuk.info 6.99.46 NetBSD 6.99.46 (GENERIC) #1: Tue Jul  8 20:06:36 CEST 2014  root@bohrium.kozachuk.info:/usr/obj/amd64/sys/arch/amd64/compile/GENERIC amd64

>Description:
If I plugin my ATmega32u4 Arduino on the USB (I have a Arduino Pro Micro), then often, f.e. on reset of arduino board or on detaching, the kernel crashes often, f.e. with following backtrace:

#0  0xffffffff805b14c5 in cpu_reboot (howto=howto@entry=260, bootstr=bootstr@entry=0x0) at /usr/src/sys/arch/amd64/amd64/machdep.c:671
#1  0xffffffff807a83d4 in vpanic (fmt=0xffffffff80b9db18 "kernel %sassertion \"%s\" failed: file \"%s\", line %d ", ap=ap@entry=0xfffffe810e622c28) at /usr/src/sys/kern/subr_prf.c:284
#2  0xffffffff80932cc3 in kern_assert (fmt=fmt@entry=0xffffffff80b9db18 "kernel %sassertion \"%s\" failed: file \"%s\", line %d ") at /usr/src/sys/lib/libkern/kern_assert.c:51
#3  0xffffffff80936b2c in cv_exit (l=<optimized out>, error=0, mtx=0xffff80000e5ee4a8, cv=0xfffffe810e580cd8) at /usr/src/sys/kern/kern_condvar.c:177
#4  0xffffffff805185c1 in cv_exit (l=<optimized out>, error=0, mtx=0xffff80000e5ee4a8, cv=0xfffffe810e580cd8) at /usr/src/sys/kern/kern_condvar.c:220
#5  cv_wait (cv=cv@entry=0xfffffe810e580cd8, mtx=mtx@entry=0xffff80000e5ee4a8) at /usr/src/sys/kern/kern_condvar.c:219
#6  0xffffffff80662712 in ohci_abort_xfer (xfer=0xfffffe810e580c30, status=USBD_CANCELLED) at /usr/src/sys/dev/usb/ohci.c:2330
#7  0xffffffff80870f37 in usbd_ar_pipe (pipe=0xfffffe82156aff18) at /usr/src/sys/dev/usb/usbdi.c:768
#8  usbd_abort_pipe (pipe=0xfffffe82156aff18) at /usr/src/sys/dev/usb/usbdi.c:560
#9  0xffffffff8081a6c8 in ucom_detach (self=0xfffffe82170909c8, flags=<optimized out>) at /usr/src/sys/dev/usb/ucom.c:274
#10 0xffffffff8079244d in config_detach (dev=0xfffffe82170909c8, flags=1) at /usr/src/sys/kern/subr_autoconf.c:1689
#11 0xffffffff80865acf in umodem_common_detach (sc=0xfffffe821b60ac00, flags=<optimized out>) at /usr/src/sys/dev/usb/umodem_common.c:677
#12 0xffffffff8079244d in config_detach (dev=dev@entry=0xfffffe8212491388, flags=flags@entry=1) at /usr/src/sys/kern/subr_autoconf.c:1689
#13 0xffffffff808705ea in usb_disconnect_port (up=up@entry=0xfffffe810e5cff88, parent=<optimized out>, flags=flags@entry=1) at /usr/src/sys/dev/usb/usb_subr.c:1601
#14 0xffffffff808426e8 in uhub_explore (dev=0xfffffe810e54b890) at /usr/src/sys/dev/usb/uhub.c:490
#15 0xffffffff8086cfc5 in usb_discover (sc=0xfffffe810e249048, sc=0xfffffe810e249048) at /usr/src/sys/dev/usb/usb.c:829
#16 0xffffffff8086d086 in usb_event_thread (arg=0xfffffe810e249048) at /usr/src/sys/dev/usb/usb.c:411
#17 0xffffffff80100807 in lwp_trampoline ()
#18 0x0000000000000000 in ?? ()


>How-To-Repeat:
Connect the ATmega32u4 to the machine and press reset.
>Fix:

>Release-Note:

>Audit-Trail:
From: Oleksandr Kozachuk <ddeus.netbsd@mailnull.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/48987: Kernel crashes on using ATmega32u4 Arduino on USB
Date: Sat, 12 Jul 2014 13:48:22 +0200

 The core and kernel files can be downloaded here:

 http://kozachuk.info/open/netbsd/bug48987/

Responsible-Changed-From-To: kern-bug-people->skrll
Responsible-Changed-By: skrll@NetBSD.org
Responsible-Changed-When: Sat, 19 Jul 2014 07:24:54 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sat, 23 Apr 2016 19:10:29 +0000
State-Changed-Why:
Can you retest with 7.99.28 (after nick-nhusb merge)


State-Changed-From-To: feedback->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Wed, 22 Nov 2017 19:16:50 +0000
State-Changed-Why:
feedback timeout


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.