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

To reply to this bug, email your comments to 70628 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#70628; Package guile. (Sun, 28 Apr 2024 14:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jakov Tutavac <jakov.tutavac <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sun, 28 Apr 2024 14:19:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jakov Tutavac <jakov.tutavac <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: 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 212 days ago.

Previous Next


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