Opened 4 years ago

Last modified 4 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:


This may cause various failures like the one described in

The patch is attached.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by dmik

Attachment: fork_threaddata.diff added

comment:1 Changed 4 years ago by bird

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 Changed 4 years ago by bird

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.