[Webkit-unassigned] [Bug 16842] New: Hang in DRT in leaks mode due to signal handler doing unsafe things

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 11 11:03:09 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16842

           Summary: Hang in DRT in leaks mode due to signal handler doing
                    unsafe things
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mrowe at apple.com


static void crashHandler(int sig)
{
    fprintf(stderr, "%s\n", strsignal(sig));
    restoreColorSpace(0);
    exit(128 + sig);
}


If "crashHandler" is triggered from within malloc/realloc/free then any calls
to those functions may deadlock on a malloc lock.  "restoreColorSpace" can run
arbitrary system code, and "exit" will lead to C++ destructors being called on
global objects. Both of these could result in a malloc-related function being
called.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list