gpsd-dev
[Top][All Lists]
Advanced

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

Re: gpsmon segmentation fault


From: SZIGETVÁRI János
Subject: Re: gpsmon segmentation fault
Date: Wed, 8 Apr 2020 11:04:36 +0200

Hi Gary,

Gary E. Miller <address@hidden> ezt írta (időpont: 2020. ápr. 7., K, 20:57):
Easy.  Here is how I build for gdb:

scons --clean
scons --config=force debug=true && scons install

That will put debug info into the binaries.

Okay, I built a debug enabled package for gpsd, however it was of little use as according to the backtrace the crash happened in ncurses code, and I don't have any debug symbols for that:

root@ntp:~# gdb --core core-gpsmon.26880.ntp.lan.1586331775 /usr/bin/gpsmon
GNU gdb (GDB) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-slackware-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/gpsmon...
[New LWP 26880]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `gpsmon'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x76e67094 in _nc_waddch_nosync () from /lib/libncurses.so.6
(gdb) thread apply all bt full

Thread 1 (Thread 0x76fdb820 (LWP 26880)):
#0  0x76e67094 in _nc_waddch_nosync () from /lib/libncurses.so.6
No symbol table info available.
#1  0x76e68234 in waddnstr () from /lib/libncurses.so.6
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

As per the output, there is only one thread of gpsmon altogether, so at this point we don't have to worry how the separate threads interact.
 
Odd, that shows an ncurses error...

I have ncurses-6.2 installed on affected system.
 
Looks good.  gpsmon seemed to die after a TOFF, there wass an add char
in the JSON at the end:

read(3,
"{\"class\":\"TOFF\",\"device\":\"/dev/ttyAMA0\",\"real_sec\":1586171793,
\"real_nsec\":999549916,\"clock_sec\":1586171794,\"clock_nsec\":135412671}\r\n\265b\1\0064\0\240\f\222\7\334!\371\3774\10\3\335\226\312\213\30\365N1\10\263*\302\33\306\3\0\0\0\0\0\0\0\0\0\0\4\0\0\0C\0\0\0\236\0\2\t\"g\1\0\r\302",
18433) = 193

What is that \302 ???

Maybe this:
https://unicodelookup.com/#COMBINING/1

combining circumflex accent

Best Regards,
János

--
Janos SZIGETVARI
RHCE, License no. 150-053-692

LinkedIn: linkedin.com/in/janosszigetvari

__@__˚V˚
Make the switch to open (source) applications, protocols, formats now:
- windows -> Linux, iexplore -> Firefox, msoffice -> LibreOffice
- msn -> jabber protocol (Pidgin, Google Talk)
- mp3 -> ogg, wmv -> ogg, jpg -> png, doc/xls/ppt -> odt/ods/odp

reply via email to

[Prev in Thread] Current Thread [Next in Thread]