Opened 8 years ago

Last modified 8 years ago

#363 new defect

Global thread data in child is not reset after fork

Reported by: dmik Owned by:
Priority: normal Milestone: new
Component: libc Version: 0.6.6
Severity: normal Keywords:
Cc:

Description

This may cause various failures like the one described in http://trac.netlabs.org/ports/ticket/113#comment:13.

The patch is attached.

Attachments (1)

fork_threaddata.diff (2.8 KB ) - added by dmik 8 years ago.

Download all attachments as: .zip

Change History (3)

by dmik, 8 years ago

Attachment: fork_threaddata.diff added

comment:1 by bird, 8 years ago

Had a closer look at the fix. It's a bit too crude, causing memory leaks and TLS cleanup mess. I'll see if I can rework it.

comment:2 by bird, 8 years ago

Dropping signal masks is a big no-no. So, need to redo it. I'll try reproduce the dash+nasm-configure issue and make sure it goes away with the cleaned up fix.

Note: See TracTickets for help on using tickets.