-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
os.fork fails on FreeBSD with tcc #24710
Copy link
Copy link
Closed
Labels
Boehm Garbage Collection (GC)Bugs/feature requests related to the Boehm garbage collector and its integration into V programs.Bugs/feature requests related to the Boehm garbage collector and its integration into V programs.BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Compiler: TCCBugs/feature requests, that are related to compiling V programs with TCC.Bugs/feature requests, that are related to compiling V programs with TCC.OS: FreeBSDBugs/feature requests, that are specific to FreeBSD OS.Bugs/feature requests, that are specific to FreeBSD OS.
Description
Metadata
Metadata
Assignees
Labels
Boehm Garbage Collection (GC)Bugs/feature requests related to the Boehm garbage collector and its integration into V programs.Bugs/feature requests related to the Boehm garbage collector and its integration into V programs.BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Compiler: TCCBugs/feature requests, that are related to compiling V programs with TCC.Bugs/feature requests, that are related to compiling V programs with TCC.OS: FreeBSDBugs/feature requests, that are specific to FreeBSD OS.Bugs/feature requests, that are specific to FreeBSD OS.
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
During debug of issue #24683, I found an issue with
os.forkon FreeBSD with tcc compiler => child process crashes after fork.No issue with
os.forkon FreeBSD with clang/gcc compiler.Reproduction Steps
os.fork:os.fork=> no child processExpected Behavior
os.forkworks as expected.Test with clang on FreeBSD:
Current Behavior
See above
Possible Solution
No response
Additional Information/Context
With the same code to test
os.fork, no issue on OpenBSD/amd64 and Linux/amd64.V version
V 0.4.10 f250636
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.