find3-cli-scanner icon indicating copy to clipboard operation
find3-cli-scanner copied to clipboard

Bug: Program Crash

Open giuseppemr opened this issue 5 years ago • 5 comments

Expected Behavior

I want the script to run forever but it crashes with the following error

Actual Behavior

panic: runtime error: slice bounds out of range

goroutine 2561 [running]: panic(0x4b35a0, 0x10f22030) /usr/local/go/src/runtime/panic.go:500 +0x33c github.com/schollz/gatt.(*Advertisement).unmarshall(0x111e8820, 0x111e4eea, 0xb, 0x16, 0x0, 0x0) /home/pi/mygo/src/github.com/schollz/gatt/adv.go:98 +0xbc0 github.com/schollz/gatt.(*device).Init.func3(0x111ea750) /home/pi/mygo/src/github.com/schollz/gatt/device_linux.go:97 +0x74 github.com/schollz/gatt/linux.(*HCI).handleAdvertisement(0x11062280, 0x111b3bf3, 0x23, 0x23) /home/pi/mygo/src/github.com/schollz/gatt/linux/hci.go:262 +0x370 created by github.com/schollz/gatt/linux.(*HCI).handleLEMeta /home/pi/mygo/src/github.com/schollz/gatt/linux/hci.go:359 +0xc8

Steps to Reproduce the Problem

  1. sudo ./find3-cli-scanner -i wlan1 -device MYDEV-family FAMILY -server http://localhost:8080 -scantime 2 -bluetooth -forever -passive -no-modify
  2. after some scans it crashes

Specifications

  • Version: latest of July 2019
  • Platform: Raspberry 3+
  • Subsystem:

giuseppemr avatar Feb 20 '20 14:02 giuseppemr

Upgraded program to 3.3.4 version and the crash still happens

giuseppemr avatar Feb 20 '20 15:02 giuseppemr

Is that the full stack trace?

schollz avatar Feb 20 '20 16:02 schollz

Yes. Nothing more

giuseppemr avatar Feb 20 '20 16:02 giuseppemr