GNU bug report logs - #70628
segmentation fault reading socketpair after fork

Previous Next

Package: guile;

Reported by: Jakov Tutavac <jakov.tutavac <at> gmail.com>

Date: Sun, 28 Apr 2024 14:19:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Jakov Tutavac <jakov.tutavac <at> gmail.com>
To: 70628 <at> debbugs.gnu.org
Subject: bug#70628: segmentation fault reading socketpair after fork
Date: Sun, 28 Apr 2024 14:19:52 +0200
[Message part 1 (text/plain, inline)]
Dear Sir/Madam,

The 62 lines of code in the attachment result in a segmentation fault when
run.
I hope you can help suggest a fix or a workaround.

user <at> pcxy:~/$ guile --version
guile (GNU Guile) 3.0.7
Packaged by Debian (3.0.7-deb+3.0.7-1)

user <at> pcxy:~/$ make
gcc -I/usr/include/guile/3.0 -g -c -o main.o main.c
gcc -o a.out main.o -lguile-3.0 -lgc -lpthread -ldl
user <at> pcxy:~/$ ./a.out
Parent sv:3
Child sv:4
Segmentation fault (core dumped)

(gdb) r
Starting program: a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 100100]

Parent sv:3
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7be68f2 in GC_find_limit_with_bound () from
/lib/x86_64-linux-gnu/libgc.so.1
[Message part 2 (text/html, inline)]
[main.c (text/x-csrc, attachment)]

This bug report was last modified 1 year and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.