[LLVMbugs] [Bug 3848] New: ParseAST() had side effects on signal handlers

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 20 00:00:47 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=3848

           Summary: ParseAST() had side effects on signal handlers
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: alexei.svitkine at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I'm not sure when this started to happen, but it didn't used to be the case
before, but happens with current TOT.

After calling ParseAST(), the signal handlers that my process had set using the
signal() system call are no longer called.

For instance, in the following sequence:

signal(SIGBUS, gotsig);
signal(SIGSEGV, gotsig);
int z=*(int*)0;
clang::ParseAST(...);

My signal handler gets called.

However in:

signal(SIGBUS, gotsig);
signal(SIGSEGV, gotsig);
clang::ParseAST(...);
int z=*(int*)0;

It does not.

Calling ParseAST() should not have this side-effect.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list