search for: printstacktraceonerrorsignal

Displaying 20 results from an estimated 33 matches for "printstacktraceonerrorsignal".

2014 Nov 06
3
[LLVMdev] [RFC] New ToolsSupport library for stuff that only tools need
...<beanz at apple.com> wrote: > > So, I decided to try and start small. My idea here was create a ToolsSupport library, and move one small, but important function into the new library to shake out all the places that would need updating. The function I chose to start with was llvm::sys::PrintStackTraceOnErrorSignal. > > Turns out this wasn’t so small. These patches aren’t done yet, but since they’re pretty big I thought I’d send them out for preliminary feedback about whether or not this is the right approach. The patches contain the following changes: > > * Patches to LLVM & Clang CMake bui...
2013 Mar 20
0
[LLVMdev] Problems with parallelizing lli
...li.cpp 2012-04-18 10:34:12.000000000 +0200 +++ lli.cpp 2013-03-20 22:01:39.713989939 +0100 @@ -175,34 +175,23 @@ #endif } -//===----------------------------------------------------------------------===// -// main Driver function -// -int main(int argc, char **argv, char * const *envp) { - sys::PrintStackTraceOnErrorSignal(); - PrettyStackTraceProgram X(argc, argv); - - LLVMContext &Context = getGlobalContext(); - atexit(do_shutdown); // Call llvm_shutdown() on exit. - - // If we have a native target, initialize it to ensure it is linked in and - // usable by the JIT. - InitializeNativeTarget(); - Initial...
2015 Jan 27
2
[LLVMdev] build failure on mingw gcc 4.9.1
...j -o bin/not.exe -Wl,--major-image-version,0,--minor-image-version,0 lib/libLLVMSupportD.a -limagehlp -lpsapi -lshell32 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd . lib/libLLVMSupportD.a(Signals.cpp.obj): In function `llvm::sys::PrintStackTraceOnErrorSignal()': D:/Slave/llvm-mingw/build/lib/Support/Windows/Signals.inc:284: undefined reference to `__imp__set_abort_behavior' D:/Slave/llvm-mingw/build/lib/Support/Windows/Signals.inc:286: undefined reference to `__imp__set_abort_behavior' collect2.exe: error: ld returned 1 exit status So,...
2011 Feb 22
2
[LLVMdev] still failed to build the llbrowse on Debian5-32b-llvm2.8
...] Building CXX object CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o /steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/llbrowse/lib/BrowserApp.cpp: In member function 'virtual bool BrowserApp::OnInit()': /steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/llbrowse/lib/BrowserApp.cpp:29: error: 'PrintStackTraceOnErrorSignal' is not a member of 'llvm::sys' make[2]: *** [CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o] Error 1 make[1]: *** [CMakeFiles/llbrowse.dir/all] Error 2 make: *** [all] Error 2 7.228u 1.228s 0:12.34 68.3% 0+0k 13512+1784io 3pf+0w sideshow.eecg>
2019 Jan 09
2
Removing LLVM_ALWAYS_INLINE from ADT classes
On Wed, Jan 9, 2019 at 9:38 AM Mehdi AMINI <joker.eph at gmail.com> wrote: > > > > On Fri, Jan 4, 2019 at 3:15 PM Davide Italiano via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi, >> I would like to propose, based on a previous discussion on llvm-dev, >> the following change. >> https://reviews.llvm.org/D56337 >> >> The
2019 Jan 10
2
Removing LLVM_ALWAYS_INLINE from ADT classes
...thread', stop reason = step over > frame #0: 0x000000010000a110 lldb`main(argc=1, > argv=0x00007ffeefbff9c8) at Driver.cpp:872 > 869 > 870 // Print stack trace on crash. > 871 llvm::StringRef ToolName = llvm::sys::path::filename(argv[0]); > -> 872 llvm::sys::PrintStackTraceOnErrorSignal(ToolName); > 873 llvm::PrettyStackTraceProgram X(argc, argv); > 874 > 875 // Parse arguments. > > (lldb) p ToolName.size() > (size_t) $2 = 4 > (lldb) p ToolName.consume_front(llvm::StringRef("l")) > (bool) $4 = true > (lldb) p ToolName.consume_front(l...
2004 Aug 29
1
[LLVMdev] lib/System Unleashed - Need Your Help!
...ady verified. > >The implementation of the lib/System interface should work on Solaris, >BSD, and perhaps a few other Unix systems. If you run into problems, >please let me know. Right now, the only thing that should affect any >tool other than llvmc is the RemoveFileOnSignal and >PrintStackTraceOnErrorSignal functions. These have been moved out of >lib/Support and into lib/System. > >Until I can get some hardware for each kind of system (should happen >this fall), I would like to ask for volunteers to assist in the testing >and porting of lib/System to: Darwin, Solaris 8/9, AIX, Cygwin,...
2010 Apr 27
3
[LLVMdev] Is the option --enable-shared discontinued in 2.7?
...ompiling Optimize.cpp for Release build llvm[2]: Linking Release executable llvm-dis (without symbols) llvm[2]: Compiling GraphPrinters.cpp for Release build /tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x42): In function `main': : undefined reference to `llvm::sys::PrintStackTraceOnErrorSignal()' /tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x51): In function `main': : undefined reference to `llvm::PrettyStackTraceEntry::PrettyStackTraceEntry()' /tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x57): In function `main'...
2011 Feb 22
0
[LLVMdev] still failed to build the llbrowse on Debian5-32b-llvm2.8
...t CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o > /steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/llbrowse/lib/BrowserApp.cpp: > In member function 'virtual bool BrowserApp::OnInit()': > /steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/llbrowse/lib/BrowserApp.cpp:29: > error: 'PrintStackTraceOnErrorSignal' is not a member of 'llvm::sys' > make[2]: *** [CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o] Error 1 > make[1]: *** [CMakeFiles/llbrowse.dir/all] Error 2 > make: *** [all] Error 2 > 7.228u 1.228s 0:12.34 68.3% 0+0k 13512+1784io 3pf+0w > > sideshow.eecg> > &g...
2014 Oct 31
2
[LLVMdev] [RFC] New ToolsSupport library for stuff that only tools need
I was thinking of moving the files into a Tools subdirectory of Support, and having a new library generated from that. Does that mesh with what you’d like to see? I’ve gotten wrapped into a nasty internal bug hunt, so I probably won’t have patches until next week. I will also probably need to ask Eric for help with the autoconf side of things because my familiarity with autoconf ends at “run
2004 Aug 30
1
[LLVMdev] lib/System Unleashed - Need Your Help!
...n of the lib/System interface should work on Solaris, > > >BSD, and perhaps a few other Unix systems. If you run into problems, > > >please let me know. Right now, the only thing that should affect any > > >tool other than llvmc is the RemoveFileOnSignal and > > >PrintStackTraceOnErrorSignal functions. These have been moved out of > > >lib/Support and into lib/System. > > > > > >Until I can get some hardware for each kind of system (should happen > > >this fall), I would like to ask for volunteers to assist in the testing > > >and porting of...
2009 Feb 07
1
[LLVMdev] [PATCH] Use the new URL to BugPoint documentation
..."LLVM automatic testcase reducer. See\nhttp://" - "llvm.org/docs/CommandGuide/bugpoint.html" + "llvm.org/cmds/bugpoint.html" " for more information.\n"); sys::PrintStackTraceOnErrorSignal(); sys::SetInterruptFunction(BugpointInterruptFunction); -- 1.6.1.2.458.g9de76
2009 Jun 16
1
[LLVMdev] undefined references in llvm
...m/CodeGen/LinkAllCodegenComponents.h:42: undefined reference to `llvm::linkOcamlGC()' llvm2/include/llvm/CodeGen/LinkAllCodegenComponents.h:43: undefined reference to `llvm::linkShadowStackGC()' /tmp/cc0b5iTo.o: In function `main': VirementJit.cpp:110: undefined reference to `llvm::sys::PrintStackTraceOnErrorSignal()' VirementJit.cpp:122: undefined reference to `llvm::getBitcodeModuleProvider(llvm::MemoryBuffer*, std::basic_string, std::allocator >*)' /tmp/cc0b5iTo.o: In function `void llvm::cl::opt_storage true>::setValue, std::allocator > >(std::basic_string std::char_traits, std::alloca...
2007 Nov 08
3
[LLVMdev] Newbie JITter
...clude "llvm/PassManager.h" #include "llvm/CodeGen/Passes.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachineRegistry.h" #include <iostream> using namespace llvm; int main() { sys::PrintStackTraceOnErrorSignal(); const char* assembler = "@.LC0 = internal constant [19 x i8] c\"cooking with gas!\\0A\\00 \" ; [11 x i8]*\n" "\n" "declare i32 @puts(i8 *) ; i32(i8 *)* \n" "\n" "define i32 @main() {...
2015 Jan 27
3
[LLVMdev] build failure on mingw gcc 4.9.1
...major-image-version,0,--minor-image-version,0 lib/libLLVMSupportD.a > -limagehlp -lpsapi -lshell32 -lkernel32 -luser32 -lgdi32 -lwinspool > -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd . > > lib/libLLVMSupportD.a(Signals.cpp.obj): In function > `llvm::sys::PrintStackTraceOnErrorSignal()': > > > > D:/Slave/llvm-mingw/build/lib/Support/Windows/Signals.inc:284: undefined > reference to `__imp__set_abort_behavior' > > > > D:/Slave/llvm-mingw/build/lib/Support/Windows/Signals.inc:286: undefined > reference to `__imp__set_abort_behavior' >...
2010 Apr 28
0
[LLVMdev] Is the option --enable-shared discontinued in 2.7?
...r Release build > llvm[2]: Linking Release executable llvm-dis (without symbols) > llvm[2]: Compiling GraphPrinters.cpp for Release build > /tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x42): > In function `main': > : undefined reference to `llvm::sys::PrintStackTraceOnErrorSignal()' > /tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x51): > In function `main': > : undefined reference to > `llvm::PrettyStackTraceEntry::PrettyStackTraceEntry()' > /tmp/llvm-build/2.7/llvm-objects/tools/llvm-dis/Release/llvm-dis.o(.text+0x57):...
2014 Nov 06
2
[LLVMdev] [RFC] New ToolsSupport library for stuff that only tools need
...ecause the Mac-specific code in Support defines raise(), __assert_rtn(), and abort(), and that's hostile to embedders like WebKit. Makes sense, it's a gross hack, and I'd be in favor of fixing it if possible. If it weren't for this hack, I would recommend that you just avoid calling PrintStackTraceOnErrorSignal from WebKit. That hack is the primary motivator, but that can be solved other ways. One option would be for us to move the nasty Mac-specific hack out of the cpp file and into a header that tools could optionally include. > > Is there some way we can prevent this Mac-specific hack from aff...
2007 Nov 09
0
[LLVMdev] Newbie JITter
...nclude "llvm/CodeGen/Passes.h" > #include "llvm/Target/TargetData.h" > #include "llvm/Target/TargetMachine.h" > #include "llvm/Target/TargetMachineRegistry.h" > #include <iostream> > using namespace llvm; > > int main() { > sys::PrintStackTraceOnErrorSignal(); > > const char* assembler = > "@.LC0 = internal constant [19 x i8] c\"cooking with gas!\\0A\\00 > \" ; [11 x i8]*\n" > "\n" > "declare i32 @puts(i8 *) ; > i32(i8 *)* \n" > "\n&quo...
2016 Mar 25
2
Link error on Linux
...n function `llvm::raw_ostream::operator<<(llvm::StringRef)': /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)' aklo-aklo.o: In function `main': /mnt/a2/aklo.cpp:434: undefined reference to `llvm::sys::PrintStackTraceOnErrorSignal(bool)' aklo-aklo.o: In function `PrettyStackTraceProgram': /home/a/llvm/include/llvm/Support/PrettyStackTrace.h:63: undefined reference to `llvm::PrettyStackTraceEntry::PrettyStackTraceEntry()' /home/a/llvm/include/llvm/Support/PrettyStackTrace.h:63: undefined reference to `vtable for l...
2016 Mar 25
3
Link error on Linux
...tringRef)': > > /home/a/llvm/include/llvm/Support/raw_ostream.h:166: undefined reference > to > > `llvm::raw_ostream::write(char const*, unsigned long)' > > aklo-aklo.o: In function `main': > > /mnt/a2/aklo.cpp:434: undefined reference to > > `llvm::sys::PrintStackTraceOnErrorSignal(bool)' > > aklo-aklo.o: In function `PrettyStackTraceProgram': > > /home/a/llvm/include/llvm/Support/PrettyStackTrace.h:63: undefined > reference > > to `llvm::PrettyStackTraceEntry::PrettyStackTraceEntry()' > > /home/a/llvm/include/llvm/Support/PrettyStackTra...