gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] gpsd doesn't terminate but crash with a SIGINT.


From: Nuno Gonçalves
Subject: [gpsd-dev] gpsd doesn't terminate but crash with a SIGINT.
Date: Tue, 27 Oct 2015 12:05:06 +0000

Testing git HEAD.

I try to open a non-existing device:

address@hidden:~/gpsd$ ./gpsd -Nn xxxxxxx
gpsd:ERROR: device open of xxxxxxx failed: No such file or directory -
retrying read-only
gpsd:ERROR: read-only device open of xxxxxxx failed: No such file or directory
gpsd:ERROR: initial GPS device xxxxxxx open failed

Is this error recoverable? If not, GPSD should terminate and return so
that the calling script is aware of the failure.

In my case it is a systemd service that is starting gpsd to connect to
a TCP socket. If it fails I want it to try to restart it a few times.

And now I send gpsd a SIGINT:

address@hidden:~/gpsd$ ./gpsd -Nn xxxxxxx
gpsd:ERROR: device open of xxxxxxx failed: No such file or directory -
retrying read-only
gpsd:ERROR: read-only device open of xxxxxxx failed: No such file or directory
gpsd:ERROR: initial GPS device xxxxxxx open failed
^C*** buffer overflow detected ***: ./gpsd terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78c4e)[0x7f9a55b0ec4e]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f9a55baee8c]
/lib/x86_64-linux-gnu/libc.so.6(+0x116e80)[0x7f9a55bace80]
/lib/x86_64-linux-gnu/libc.so.6(+0x118dd7)[0x7f9a55baedd7]
./gpsd[0x404159]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f9a55ab6a40]
./gpsd[0x406449]
======= Memory map: ========
00400000-00474000 r-xp 00000000 08:12 5294924
  /home/nuno/gpsd/gpsd
00673000-00674000 r--p 00073000 08:12 5294924
  /home/nuno/gpsd/gpsd
00674000-00676000 rw-p 00074000 08:12 5294924
  /home/nuno/gpsd/gpsd
00676000-00695000 rw-p 00000000 00:00 0
0251b000-0253c000 rw-p 00000000 00:00 0                                  [heap]
7f9a55460000-7f9a55476000 r-xp 00000000 08:12 1198660
  /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9a55476000-7f9a55675000 ---p 00016000 08:12 1198660
  /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9a55675000-7f9a55676000 rw-p 00015000 08:12 1198660
  /lib/x86_64-linux-gnu/libgcc_s.so.1
7f9a55676000-7f9a55682000 r-xp 00000000 08:12 1184021
  /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f9a55682000-7f9a55881000 ---p 0000c000 08:12 1184021
  /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f9a55881000-7f9a55882000 r--p 0000b000 08:12 1184021
  /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f9a55882000-7f9a55883000 rw-p 0000c000 08:12 1184021
  /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f9a55883000-7f9a55895000 r-xp 00000000 08:12 1181011
  /lib/x86_64-linux-gnu/libudev.so.1.6.2
7f9a55895000-7f9a55a94000 ---p 00012000 08:12 1181011
  /lib/x86_64-linux-gnu/libudev.so.1.6.2
7f9a55a94000-7f9a55a95000 r--p 00011000 08:12 1181011
  /lib/x86_64-linux-gnu/libudev.so.1.6.2
7f9a55a95000-7f9a55a96000 rw-p 00012000 08:12 1181011
  /lib/x86_64-linux-gnu/libudev.so.1.6.2
7f9a55a96000-7f9a55c56000 r-xp 00000000 08:12 1183935
  /lib/x86_64-linux-gnu/libc-2.21.so
7f9a55c56000-7f9a55e56000 ---p 001c0000 08:12 1183935
  /lib/x86_64-linux-gnu/libc-2.21.so
7f9a55e56000-7f9a55e5a000 r--p 001c0000 08:12 1183935
  /lib/x86_64-linux-gnu/libc-2.21.so
7f9a55e5a000-7f9a55e5c000 rw-p 001c4000 08:12 1183935
  /lib/x86_64-linux-gnu/libc-2.21.so
7f9a55e5c000-7f9a55e60000 rw-p 00000000 00:00 0
7f9a55e60000-7f9a55e78000 r-xp 00000000 08:12 1184068
  /lib/x86_64-linux-gnu/libpthread-2.21.so
7f9a55e78000-7f9a56078000 ---p 00018000 08:12 1184068
  /lib/x86_64-linux-gnu/libpthread-2.21.so
7f9a56078000-7f9a56079000 r--p 00018000 08:12 1184068
  /lib/x86_64-linux-gnu/libpthread-2.21.so
7f9a56079000-7f9a5607a000 rw-p 00019000 08:12 1184068
  /lib/x86_64-linux-gnu/libpthread-2.21.so
7f9a5607a000-7f9a5607e000 rw-p 00000000 00:00 0
7f9a5607e000-7f9a560c4000 r-xp 00000000 08:12 1183949
  /lib/x86_64-linux-gnu/libdbus-1.so.3.8.9
7f9a560c4000-7f9a562c4000 ---p 00046000 08:12 1183949
  /lib/x86_64-linux-gnu/libdbus-1.so.3.8.9
7f9a562c4000-7f9a562c5000 r--p 00046000 08:12 1183949
  /lib/x86_64-linux-gnu/libdbus-1.so.3.8.9
7f9a562c5000-7f9a562c6000 rw-p 00047000 08:12 1183949
  /lib/x86_64-linux-gnu/libdbus-1.so.3.8.9
7f9a562c6000-7f9a562cd000 r-xp 00000000 08:12 1184076
  /lib/x86_64-linux-gnu/librt-2.21.so
7f9a562cd000-7f9a564cc000 ---p 00007000 08:12 1184076
  /lib/x86_64-linux-gnu/librt-2.21.so
7f9a564cc000-7f9a564cd000 r--p 00006000 08:12 1184076
  /lib/x86_64-linux-gnu/librt-2.21.so
7f9a564cd000-7f9a564ce000 rw-p 00007000 08:12 1184076
  /lib/x86_64-linux-gnu/librt-2.21.so
7f9a564ce000-7f9a565d5000 r-xp 00000000 08:12 1183994
  /lib/x86_64-linux-gnu/libm-2.21.so
7f9a565d5000-7f9a567d4000 ---p 00107000 08:12 1183994
  /lib/x86_64-linux-gnu/libm-2.21.so
7f9a567d4000-7f9a567d5000 r--p 00106000 08:12 1183994
  /lib/x86_64-linux-gnu/libm-2.21.so
7f9a567d5000-7f9a567d6000 rw-p 00107000 08:12 1183994
  /lib/x86_64-linux-gnu/libm-2.21.so
7f9a567d6000-7f9a567ed000 r-xp 00000000 08:12 1184100
  /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7f9a567ed000-7f9a569ec000 ---p 00017000 08:12 1184100
  /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7f9a569ec000-7f9a569ed000 r--p 00016000 08:12 1184100
  /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7f9a569ed000-7f9a569ee000 rw-p 00017000 08:12 1184100
  /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7f9a569ee000-7f9a56a12000 r-xp 00000000 08:12 1183907
  /lib/x86_64-linux-gnu/ld-2.21.so
7f9a56be7000-7f9a56bec000 rw-p 00000000 00:00 0
7f9a56c05000-7f9a56c06000 rw-p 00000000 00:00 0
7f9a56c06000-7f9a56c09000 rw-s 00000000 00:05 2555927
  /SYSV47505344 (deleted)
7f9a56c09000-7f9a56c0a000 rw-s 00000000 00:05 2523158
  /SYSV4e545037 (deleted)
7f9a56c0a000-7f9a56c0b000 rw-s 00000000 00:05 2490389
  /SYSV4e545036 (deleted)
7f9a56c0b000-7f9a56c0c000 rw-s 00000000 00:05 2457620
  /SYSV4e545035 (deleted)
7f9a56c0c000-7f9a56c0d000 rw-s 00000000 00:05 2424851
  /SYSV4e545034 (deleted)
7f9a56c0d000-7f9a56c0e000 rw-s 00000000 00:05 2392082
  /SYSV4e545033 (deleted)
7f9a56c0e000-7f9a56c0f000 rw-s 00000000 00:05 2359313
  /SYSV4e545032 (deleted)
7f9a56c0f000-7f9a56c11000 rw-p 00000000 00:00 0
7f9a56c11000-7f9a56c12000 r--p 00023000 08:12 1183907
  /lib/x86_64-linux-gnu/ld-2.21.so
7f9a56c12000-7f9a56c13000 rw-p 00024000 08:12 1183907
  /lib/x86_64-linux-gnu/ld-2.21.so
7f9a56c13000-7f9a56c14000 rw-p 00000000 00:00 0
7fffea749000-7fffea76a000 rw-p 00000000 00:00 0                          [stack]
7fffea7e7000-7fffea7e9000 r--p 00000000 00:00 0                          [vvar]
7fffea7e9000-7fffea7eb000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
  [vsyscall]
Aborted (core dumped)

Thanks,
Nuno



reply via email to

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