Opened 9 years ago
Last modified 9 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)
Change History (3)
by , 9 years ago
| Attachment: | fork_threaddata.diff added | 
|---|
comment:1 by , 9 years ago
comment:2 by , 9 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.
    
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.