[PLUG] C program: configures & builds, segfaults on invocation

Rich Shepard rshepard at appl-ecosys.com
Wed Aug 7 15:32:36 UTC 2019


On Wed, 7 Aug 2019, Paul Heinlein wrote:

> If you run "ldd /path/to/jpilot" on the machine where it segfaults and on
> a machine where it runs successfully, do you see any meaningful
> differences?

Paul,

Meaningful? But one difference. The last line of the sorted 32-bit (salmo)
list is linux-gate.so.1 (0xb7753000) while the last line of the 64-bit
(baetis) list is linux-vdso.so.1 (0x00007fff46b1b000). Scanning the 65
preceeding lines I see no differences.

> If you run "strace -ff -o /tmp/jpilot.trace /path/to/jpilot" does anything 
> obvious stick out (probably near the end of the trace file)?

Nothing obvious to me; can send the 10K output off the mail list. The last
10 lines are:

$ tail jpilot.trace.6093 
recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\6\1s\0\5\0\0\0:1.32\0\0\0\5\1u\0\6\0\0\0\7\1s\0\24\0\0\0"..., 56}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 56
write(12, "\1\0\0\0\0\0\0\0", 8)        = 8
write(12, "\1\0\0\0\0\0\0\0", 8)        = 8
poll([{fd=12, events=POLLIN}], 1, 0)    = 1 ([{fd=12, revents=POLLIN}])
poll([{fd=10, events=POLLIN}], 1, 0)    = 0 (Timeout)
write(12, "\1\0\0\0\0\0\0\0", 8)        = 8
poll([{fd=10, events=POLLIN}, {fd=12, events=POLLIN}], 2, -1) = 1 ([{fd=12, revents=POLLIN}])
read(12, "\4\0\0\0\0\0\0\0", 16)        = 8
poll([{fd=10, events=POLLIN}, {fd=12, events=POLLIN}], 2, -1 <unfinished ...>
+++ killed by SIGSEGV +++

Thanks,

Rich



More information about the PLUG mailing list