Skip to content

Timeout crash with ublox M8 #176

@ExplodingLemur

Description

@ExplodingLemur

I have a ublox M8 at /dev/ttyACM1 on an Ubuntu 24.04 22.04 (forgot I haven't upgraded this one yet) machine running Python 3.10.12. When I try to test ubxtool it sees the receiver but then crashes with a TimeoutError. I have performed a factory reset of the receiver's configuration.

$ ./ubxtool --port /dev/ttyACM1 --station 0 --galileo --gps --glonass --stdout | ./navdump
Sun, 03 Nov 2024 03:04:51 +0000 swVersion: 2.01 (75331)
Sun, 03 Nov 2024 03:04:51 +0000 hwVersion: 00080000
Sun, 03 Nov 2024 03:04:51 +0000 Extended info: PROTVER 15.00
Sun, 03 Nov 2024 03:04:51 +0000 Extended info: GPS;SBAS;GLO;BDS;QZSS
Retransmit
Retransmit
terminate called after throwing an instance of 'TimeoutError'

Verbose lsusb output of the device:

Bus 001 Device 016: ID 1546:01a8 U-Blox AG [u-blox 8]
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1546 U-Blox AG
  idProduct          0x01a8 [u-blox 8]
  bcdDevice            2.01
  iManufacturer           1 u-blox AG - www.u-blox.com
  iProduct                2 u-blox GNSS receiver
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x003e
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC ACM:
        bmCapabilities       0x02
          line coding and serial state
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval             255
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol    255 Vendor specific
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

gdb backtrace from ubxtool core dump:

Reading symbols from ./ubxtool...
[New LWP 115682]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./ubxtool --port /dev/ttyACM1 --station 0 --galileo --gps --glonass --stdout'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140701886946176)
--Type <RET> for more, q to quit, c to continue without paging--
    at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140701886946176)
    at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140701886946176)
    at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140701886946176, signo=signo@entry=6)
    at ./nptl/pthread_kill.c:89
#3  0x00007ff7b603b476 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/posix/raise.c:26
#4  0x00007ff7b60217f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007ff7b63cbb9e in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ff7b63d720c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007ff7b63d7277 in std::terminate() ()
   from /lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x00007ff7b63d752b in __cxa_rethrow ()
   from /lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x000055ff4bd968eb in sendAndWaitForUBX (fd=3, seconds=1, 
    msg="\265b'\003\000\000*\245", ubxClass=39 '\'', ubxType=3 '\003')
    at ubxtool.cc:240
#10 0x000055ff4bd9b1ac in main (argc=9, argv=0x7fff177a8758) at ubxtool.cc:666
(gdb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions