[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: |
Thu, 9 Apr 2020 11:34:15 -0700 |
Yo SZIGETVÁRI!
On Thu, 9 Apr 2020 12:54:26 +0200
SZIGETVÁRI János <address@hidden> wrote:
> copyright info ==9937== Command: /usr/bin/gpsmon
> ==9937==
> ESC[?1049hESC[22;0;0tESC[1;24rESC(BESC[mESC[4lESC[?7hESC[?1hESC===9937==
> Invalid write of size 4
> ==9937== at 0x145D4: refresh_statwin (gpsmon.c:442)
> ==9937== by 0x149E7: curses_init (gpsmon.c:490)
> ==9937== by 0x176D7: main (gpsmon.c:1379)
> ==9937== Address 0x4bcfaf0 is 24 bytes before a block of size 16 in
> arena "client"
(void)wattrset(statwin, A_BOLD);
Perfect. That narrows it down a lot. Your line numbnbers do not
exactly match gpsmon.c in git head. But close enough. The segfault
happens very early in the initialization of the screen.
Here is the failing line:
(void)wattrset(statwin, A_BOLD);
But that is boilerplate code, right out of the man page.
Starting to look like either a strange ncurses error, or a bad
libncurses.
Or, maybe a threading issue. To test the thread hypothesis, comment
out this line in gpsmon.c, rebuild and test:
pps_thread_activate(&session.pps_thread);
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
pgpav4GjJKJRz.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, 2020/04/07
- 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 <=
- 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
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/11
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/11
- Re: gpsmon segmentation fault, Gary E. Miller, 2020/04/11
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/12
- Re: gpsmon segmentation fault, Gary E. Miller, 2020/04/12
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/18
- Re: gpsmon segmentation fault, SZIGETVÁRI János, 2020/04/27