This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/10311] clone(CLONE_VM) fails with pthread_getattr_np on i386


http://sourceware.org/bugzilla/show_bug.cgi?id=10311

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #7 from Florian Weimer <fweimer at redhat dot com> 2012-09-27 18:28:37 UTC ---
(In reply to comment #6)
> I know my warning not to call even async-signal-safe functions in libc, and to
> make all syscalls manually, seems extreme, but I don't see any way around it
> given the above issues. Perhaps glibc could document a set of "clone_vm-safe"
> functions that can be used in the child after cloning with CLONE_VM without
> having to worry that they will access internal libc state or need a valid
> thread pointer.

errno and cancellation support require working TLS, so the set of safe
functions would be quite small and probably not that useful.

If this functionality is desired, an interface for setting up a working libc
environment in the quasi-subprocess would likely be more useful.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]