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: Thu, 9 Apr 2020 22:43:24 +0200

Hi Gary,

Gary E. Miller <address@hidden> ezt írta (időpont: 2020. ápr. 9., Cs, 20:34):
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.

I'm using the source code of the 3.20 release, so that's to be expected.
 
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);

Okay, I did exactly what you asked, however gpsmon still crashes at the same place:

==13415== Memcheck, a memory error detector
==13415== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==13415== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==13415== Command: /usr/bin/gpsmon
==13415==
==13415== Invalid write of size 4
==13415==    at 0x145D4: refresh_statwin (gpsmon.c:442)
==13415==    by 0x149E7: curses_init (gpsmon.c:490)
==13415==    by 0x176CF: main (gpsmon.c:1379)
==13415==  Address 0x4c85bb0 is 24 bytes before a block of size 16 in arena "client"
==13415==

valgrind: m_mallocfree.c:280 (mk_plain_bszB): Assertion 'bszB != 0' failed.
valgrind: This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata.  If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away.  Please try that before reporting this as a bug.


host stacktrace:
==13415==    at 0x58040C94: ??? (in /usr/lib/valgrind/memcheck-arm-linux)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 13415)
==13415==    at 0x1465C: refresh_statwin (gpsmon.c:444)
==13415==    by 0x149E7: curses_init (gpsmon.c:490)
==13415==    by 0x176CF: main (gpsmon.c:1379)
client stack range: [0x7D9E5000 0x7D9FFFFF] client SP: 0x7D9FEE78
valgrind stack range: [0x41FAE000 0x420ADFFF] top usage: 25116 of 1048576

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]