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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to