NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/48780: bthcid gets killed by Broken pipe



>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
>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:

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index