Bug 14878 - r24843 introduces a crash on calling fork()
Summary: r24843 introduces a crash on calling fork()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Mark Rowe (bdash)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-08-03 14:26 PDT by Rosyna
Modified: 2007-08-04 02:02 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rosyna 2007-08-03 14:26:13 PDT
Something in r24843 makes fork() call a NULL function pointer and then crash. This happens if the app that hosts WebKit calls fork() for whatever reason.

This is a problem because I enjoy calling fork() often.

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   <<00000000>> 	0x00000000 0 + 0
1   libSystem.B.dylib              	0x900323cc fork + 44
Comment 1 Mark Rowe (bdash) 2007-08-03 14:29:16 PDT
Fork you!

The issue here is that I left some of the "unused" malloc zone functions nulled out.  Looks like they're not unneeded after all :)

The fix here is to provide no-op stubs rather than leaving the function pointers null.
Comment 2 Mark Rowe (bdash) 2007-08-03 14:43:23 PDT
<rdar://problem/5385145>
Comment 3 Mark Rowe (bdash) 2007-08-04 02:02:50 PDT
Fixed in r24868.