5 Jan 2007 04:59
SEGSEGV in libusb 0.1.12 on FreeBSD 6.2
Mark Kirkwood <markir <at> paradise.net.nz>
2007-01-05 03:59:08 GMT
2007-01-05 03:59:08 GMT
Hi - I'm looking at using Gnokii with a Nokia 6155 phone on FreeBSD
6.2-PRERELEASE. Gnokii makes use of libusb. I'm getting a seg fault in
libusb (bsd.c:217):
(gdb) bt
#0 0x281febf9 in usb_claim_interface (dev=0x0, interface=10) at bsd.c:217
#1 0x281cec2a in fbusdku2usb_open (state=0x8066000) at dku2libusb.c:368
#2 0x2819533a in device_open (file=0x8066044 "/dev/ugen0.2",
with_odd_parity=0, with_async=0, with_hw_handshake=0,
device_type=GN_CT_Serial, state=0x8066000) at device.c:85
#3 0x281cd08b in phonet_initialise (state=0x8066000) at fbus-phonet.c:86
#4 0x281b9428 in NK6510_Functions (op=GN_OP_Init, data=0x0,
state=0x8066000)
at nk6510.c:520
#5 0x28192c92 in register_driver (driver=0x281f16a0, model=0x8066004
"6100",
setupmodel=0x0, sm=0x8066000) at gsm-api.c:114
#6 0x28192e26 in gn_gsm_initialise (sm=0x8066000) at gsm-api.c:149
#7 0x28192538 in gn_lib_phone_open (state=0x8066000) at libfunctions.c:136
#8 0x0804a563 in parse_options (argc=2, argv=0xbfbfeae8) at gnokii.c:279
#9 0x0804b139 in main (argc=2, argv=0xbfbfeae8) at gnokii.c:1045
Doing truss on the gnokii process I see the following snippet:
open("/dev/ugen0",O_RDWR,05010001031) = 4 (0x4)
ioctl(4,USB_SET_TIMEOUT,0xbfbf9bfc) = 0 (0x0)
ioctl(4,USB_DO_REQUEST,0xbfbf9ba0) = 0 (0x0)
ioctl(4,USB_SET_TIMEOUT,0xbfbf9bfc) = 0 (0x0)
ioctl(4,USB_DO_REQUEST,0xbfbf9ba0) = 0 (0x0)
ioctl(4,USB_SET_TIMEOUT,0xbfbf9bfc) = 0 (0x0)
(Continue reading)
RSS Feed