From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4425C3858283; Wed, 28 Sep 2022 14:03:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4425C3858283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664373802; bh=dZurFt3/iZzhp3HveQs5YsNCPtNfSeMQkQgnvhRrzIM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=koI88t9gD508IxJ9RAlKZ9SAlHz+TkocKyg21QcBel9Oce5r4jYsfgxGr764foEkx DZuOLuo5sOvG6JfKOJOjl2OQ1QLwrs5gYHCSJ5mc0qOw4MpQ5JXt/Co62xy2UnG66P gjRH2rDFdDmsJDxuyEgztb98Gr2leVfuMrZsEfG4= From: "mjbaars1977 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29585] sched_getcpu returns invalid results Date: Wed, 28 Sep 2022 14:03:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mjbaars1977 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29585 --- Comment #13 from Mischa Baars --- You're more of less right, I now have function input and output through the child function argument pointer, if configured correctly with mmap(), instead of only an exit code. On the other hand, mmap() provides the ability to write to parent memory with fork() as well if I'm correct. Still fiddling around a little with all the options. The biggest problem with CLONE_VM is that malloc() seems to be unaware of its own doings in other kernel worker threads and on occasion returns the same memory address more than once. I was looking for a way to connect to the database in parallel, but PQconnect() uses malloc() internally. On Wed, 28 Sep 2022, 12:09 schwab@linux-m68k.org, < sourceware-bugzilla@sourceware.org> wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=3D29585 > > --- Comment #12 from Andreas Schwab --- > clone without CLONE_VM is the same as fork (but without running the fork > handlers you still get undefined behaviour). > > -- > You are receiving this mail because: > You reported the bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=