Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. voxl-logger seg fault on shutdown

voxl-logger seg fault on shutdown

Scheduled Pinned Locked Moved Ask your questions right here!
2 Posts 2 Posters 155 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jon
    Regular
    wrote on last edited by
    #1

    Hi, in order to log a lot of different configurable data & cleanly parse the output, I wrote a python wrapper that calls voxl-logger as a subprocess and terminates it by sending a SIGINT (emulating user ctrl+c).

    This issue only happens sometimes, maybe 30% of the time or something. I don't recall ever seeing it when starting voxl-logger natively in the terminal.

    Running: stdbuf -oL -eL voxl-logger -c hires_small_color -i imu_apps -i imu_vectornav -B baro_vectornav -g gnss1_vectornav -I ins_vectornav
    Welcome to voxl-logger
    58127 MB left in /data/voxl-logger/
    starting new log: /data/voxl-logger/log0044/
    
    connected to ch 0 /run/mpa/hires_small_color/
    connected to ch 1 /run/mpa/imu_apps/
    ^C
    Stopping...
    
    received SIGINT Ctrl-C
    WARNING, _stop_helper_and_remove_pipe timed out joining read thread
    
    Segmentation fault:
    Fault thread: voxl-logger(tid: 26766)
    Fault address: 0x7f9d719010
    Address not mapped.
    

    The main issue is that when this happens it fails to print the logger summary (channels & messages logged) which is important for me to quickly analyze the validity of the logged data. Also we've had issues with the logger not shutting down gracefully and only partially populating the final row of the csv it was writing to.

    Do you guys have any idea why this might be happening? I would much prefer the logger to exit consistently and gracefully.

    Thanks!

    Alex KushleyevA 1 Reply Last reply
    0
    • J jon

      Hi, in order to log a lot of different configurable data & cleanly parse the output, I wrote a python wrapper that calls voxl-logger as a subprocess and terminates it by sending a SIGINT (emulating user ctrl+c).

      This issue only happens sometimes, maybe 30% of the time or something. I don't recall ever seeing it when starting voxl-logger natively in the terminal.

      Running: stdbuf -oL -eL voxl-logger -c hires_small_color -i imu_apps -i imu_vectornav -B baro_vectornav -g gnss1_vectornav -I ins_vectornav
      Welcome to voxl-logger
      58127 MB left in /data/voxl-logger/
      starting new log: /data/voxl-logger/log0044/
      
      connected to ch 0 /run/mpa/hires_small_color/
      connected to ch 1 /run/mpa/imu_apps/
      ^C
      Stopping...
      
      received SIGINT Ctrl-C
      WARNING, _stop_helper_and_remove_pipe timed out joining read thread
      
      Segmentation fault:
      Fault thread: voxl-logger(tid: 26766)
      Fault address: 0x7f9d719010
      Address not mapped.
      

      The main issue is that when this happens it fails to print the logger summary (channels & messages logged) which is important for me to quickly analyze the validity of the logged data. Also we've had issues with the logger not shutting down gracefully and only partially populating the final row of the csv it was writing to.

      Do you guys have any idea why this might be happening? I would much prefer the logger to exit consistently and gracefully.

      Thanks!

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by Alex Kushleyev
      #2

      Hi @jon , do you always see the following warning right before the seg fault? (and never see it when there is no seg fault?)

      @jon said in voxl-logger seg fault on shutdown:

      WARNING, _stop_helper_and_remove_pipe timed out joining read thread

      The way one would normally debug this is using gdb, but that would be tricky if you are spawning the logger from another (python) process and don't have a terminal to type in gdb (after crash) to investigate.. You could potentially attach gdb to an already running (spawned) logger.

      Alex

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      ModalAI
      Categories Recent Tags ModalAI.com Docs
      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups