[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gpsmon segmentation fault
From: |
Gary E. Miller |
Subject: |
Re: gpsmon segmentation fault |
Date: |
Tue, 7 Apr 2020 11:56:21 -0700 |
Yo SZIGETVÁRI!
On Tue, 7 Apr 2020 10:50:47 +0200
SZIGETVÁRI János <address@hidden>
> > Do cgps and xgps work for you?
> I don't have X installed, so I can only confirm that cgps does seem
> to work OK.
So that confirms that gpsd, and libgps, are working. Narrowing things
down a lot.
> > > If I do a strace on gpsmon, I get this:
> > What will show the problem is a gdb back trace.
> >
>
> Okay, I let gpsmon dump a core, but this time the binaries were
> stripped of debug information. If you'd like to see debug could you
> point me to some resource explaining how to do a debug-enabled build
> of gpsd with scons.
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.
> Core was generated by `gpsmon'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0 0x76de0094 in _nc_waddch_nosync () from /lib/libncurses.so.6
> (gdb) bt full
> #0 0x76de0094 in _nc_waddch_nosync () from /lib/libncurses.so.6
> No symbol table info available.
> #1 0x76de1234 in waddnstr () from /lib/libncurses.so.6
Odd, that shows an ncurses error...
It also shows gpsmon is threaded, which complicates things a bit.
> > Sad, the startup is the most interesting part to me.
> >
>
> Okay, I can easily fix that. Please find the whole output attached.
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 ???
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgpqiCBgrH0Jo.pgp
Description: OpenPGP digital signature
- gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/06
- Re: gpsmon segmentation fault, Gary E. Miller, 2020/04/06
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/07
- Re: gpsmon segmentation fault,
Gary E. Miller <=
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/08
- Re: gpsmon segmentation fault, Gary E. Miller, 2020/04/08
- Re: gpsmon segmentation fault, Paul Fertser, 2020/04/08
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/09
- Re: gpsmon segmentation fault, Paul Fertser, 2020/04/09
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/09
- Re: gpsmon segmentation fault, Gary E. Miller, 2020/04/09
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/09
- Re: gpsmon segmentation fault, Gary E. Miller, 2020/04/09
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/11