Opened 3 years ago

Last modified 3 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 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by dmik

comment:1 Changed 3 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 3 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.