NetBSD Problem Report #48780
From mlelstv@twitty.1st.de Sat May 3 07:28:23 2014
Return-Path: <mlelstv@twitty.1st.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4C7A4A5818
for <gnats-bugs@gnats.NetBSD.org>; Sat, 3 May 2014 07:28:23 +0000 (UTC)
Message-Id: <20140503072809.7A4ABBA@twitty.1st.de>
Date: Sat, 3 May 2014 09:28:09 +0200 (CEST)
From: mlelstv@serpens.de
Reply-To: mlelstv@serpens.de
To: gnats-bugs@NetBSD.org
Subject: bthcid gets killed by Broken pipe
X-Send-Pr-Version: 3.95
>Number: 48780
>Category: bin
>Synopsis: bthcid gets killed by Broken pipe
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 03 07:30:00 +0000 2014
>Last-Modified: Sat Jun 16 23:45:00 +0000 2018
>Originator: Michael van Elst
>Release: NetBSD 6.99.40
>Organization:
>Environment:
System: NetBSD tazz 6.99.40 NetBSD 6.99.40 (TAZZ) #32: Mon Apr 21 23:38:54 CEST 2014 mlelstv@pussyfoot:/home/netbsd-current/obj.amd64/home/netbsd-current/src/sys/arch/amd64/compile/TAZZ amd64
Architecture: x86_64
Machine: amd64
>Description:
When trying to pair a device using
btpin -P -r -a sphero-wwr
this fails and btpin finally exits with "Link severed". Sometimes
however the bthcid daemon gets killed.
A ktrace reveals:
4114 1 bthcid accept(0x6, 0x7f7fffffdae0, 0x7f7fffffdadc) = 7
4114 1 bthcid ioctl(0x7, FIONBIO, 0x7f7fffffdadc) = 0
"\^A\0\0\0"
4114 1 bthcid __gettimeofday50(0x7f7fffffc860, 0) = 0
4114 1 bthcid getpid() = 4114, 5016
4114 1 bthcid writev(0x2, 0x7f7fffffc8b0, 0x6) = 25
"bthcid[4114]: New Client\n"
[...]
4114 1 bthcid sendto(0x7, 0x7f7fffffd9e0, 0xd, 0, 0, 0) Err#32 EPIPE
4114 1 bthcid SIGPIPE SIG_DFL
Apparently the btpin client exits before bthcid can return some
information. The attempt then causes the SIGPIPE.
>How-To-Repeat:
Difficult, you need a bluetooth device that times out when pairing.
>Fix:
>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/48780: bthcid gets killed by Broken pipe
Date: Sat, 16 Jun 2018 23:41:30 +0000
On Sat, May 03, 2014 at 07:30:00AM +0000, mlelstv@serpens.de wrote:
> When trying to pair a device using
>
> btpin -P -r -a sphero-wwr
>
> this fails and btpin finally exits with "Link severed". Sometimes
> however the bthcid daemon gets killed.
>
> A ktrace reveals: [...]
Nobody ever answered this; is it still current?
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.