@Mitchell Um, no its... not. It then changes again from Assertion to Core Dump 
after Buffer Overflow. Reason, I am quite sure now, is the newer ncurses 
version on Ubuntu 24.04 LTS. Because, if you run gpsmon --nocurses it will work 
right away with your PPA. Same with my newly build version. 
I opened up this ticket: https://gitlab.com/gpsd/gpsd/-/issues/307

For those playing along at home, just a quick overview of what I have
done to build gpsd and gpsmon from scratch, might be helpful for someone
in the future:


It seems like there might be some fixes in the current head/main release. Also, 
the gpsmon segfault crash is named and should be fixed there: 
https://gitlab.com/gpsd/gpsd/-/issues/300 - which I think is the one Mitchell 
built into the PPA.

# I installed the dependencies:
apt install gcc scons python3-gi python3-gi-cairo g++
apt install python3-gobject libgtk-3-dev
apt install libncurses5-dev libtinfo-dev  pps-tools
apt install gir1.2-gtk-3.0

# Got the soure code at latest commit 02f2750adac5bb4e92f0953fcad5e828355e2703
git clone https://gitlab.com/gpsd/gpsd.git
cd gpsd/

# Fixed the ncurses, otherwise it will not build gpsmon:
# ncurses: https://gitlab.com/gpsd/gpsd/-/issues/190
sed 's/ncursesw5/ncursesw6/g' -i SConscript

# build it
scons && scons check

# you can start gpsd in buildtmp/gpsd/ , e.g. with
./gpsd -D5 -N -b -n -p -s 9600 /dev/loraGPS

# you can start gpsmon in buildtmp/gpsmon/
./gpsmon -D5
# it will buffer overflow detect and crash.
# you can start it "working" with ./gpsmon -D5 --nocurses

** Bug watch added: gitlab.com/gpsd/gpsd/-/issues #307
   https://gitlab.com/gpsd/gpsd/-/issues/307

** Bug watch added: gitlab.com/gpsd/gpsd/-/issues #300
   https://gitlab.com/gpsd/gpsd/-/issues/300

** Bug watch added: gitlab.com/gpsd/gpsd/-/issues #190
   https://gitlab.com/gpsd/gpsd/-/issues/190

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2076191

Title:
  gpsmon crashes (segfault)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpsd/+bug/2076191/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to