Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

r314087 - SignalHandler() calls illegal API #33690

Open Quuxplusone opened 7 years ago

Quuxplusone commented 7 years ago
Bugzilla Link PR34718
Status NEW
Importance P enhancement
Reported by Jeremy Huddleston Sequoia (jeremyhu@apple.com)
Reported on 2017-09-25 12:12:14 -0700
Last modified on 2017-09-25 21:52:25 -0700
Version trunk
Hardware PC All
CC llvm-bugs@lists.llvm.org, rnk@google.com
Fixed by commit(s)
Attachments clang_2017-09-25-032650_caitsith.crash (16404 bytes, text/plain)
Blocks
Blocked by
See also
Created attachment 19199
crash log indicating illegal API usage in signal handler

LLVM's SignalHandler() calls malloc.  This is not legal from the context of a
signal handler.
Quuxplusone commented 7 years ago

Attached clang_2017-09-25-032650_caitsith.crash (16404 bytes, text/plain): crash log indicating illegal API usage in signal handler

Quuxplusone commented 7 years ago
operator new(unsigned long) + 30
    std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long) + 66
    llvm::sys::findProgramByName(llvm::StringRef, llvm::ArrayRef<llvm::StringRef>) + 558
    printSymbolizedStackTrace(llvm::StringRef, void**, int, llvm::raw_ostream&) + 201
    llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 84
    llvm::sys::RunSignalHandlers() + 83
    SignalHandler(int) + 193
    _sigtramp + 26