I'm facing an issue where IRBuilder<>::CreateGlobalStringPtr causes a segmentation fault on Ubuntu Trusty using the development branch of LLVM. I do not get a segfault on my mac book or when using older LLVM Versions (4, 5, or 6).
I created a little Gist that reproduces the issue.
I also tried to analyze the issue myself and found out, that CreateGlobalString works just fine. So the issue seems to be related to the following call to CreateInBoundsGEP.
Is something wrong with my setup code or might this be an issue with LLVM itself (even though the mentioned methods haven't been touched for years).
Thanks,
Micha
Related
I have compiled an OpenCL 2.0. example that is found here: https://tobias.rautenkranz.ch/opencl2/
I get the following runtime error: No source available for "cl::Platform::setDefault() at 0x4187a4".
This happens after I press resume once in the Eclipse run menu.
I'm using Ubuntu 16.04 and eclipse.
From what I understood from googleing the problem it's a threads problem, but I'm new to the area so it's not easy for me to understand!
I've recently bought an Apple laptop. As a contest fanatic I downloaded Code:Blocks from the official site, since I'm trying to compete in programming in C++. Everything is working fine, except for the debugger, it won't start. Everytime I debug a message in red appears on the screen
ERROR: You need to specify a debugger program in the debuggers's
settings. (For GCC compilers, it's 'gdb' (without the quotes))
I've tried to re-install the application, but nothing helped. I've tried to search the internet for simular problems and solutions, but again I didn't manage to do anything.
How can I solve this problem?
I'm developing an embedded device controlled by a python2.7 script. And I need to compile the source for both security (I don't want device users to mess with my sources) and performance (I'm working on an BeagleBone Black, ARM microPC, and it's pretty short on CPU/RAM).
I'm using Nuitka python compiler for this. I've tried compiling separate modules of my application and it works fine, I can transparently replace random .py with it's compiled .so analogue and it all works fine.
Yet if I try to compile whole application into solid blob - it doesn't work. Meaning that Nuitka compiles whole application with no problem, but when I try to run the resulting binary - I get Segmentation fault and that's it. No debug output, no clues on what's wrong.
So, any idea what is wrong with this thing and why it doesn't work?
Or at least how can I debug it and figure out why this segfault happens?
Did you try taking a look at the core file? That should give you an idea where the segmentation fault is happening.
A program that I have written in C++ in Snow Leopard (OSX v10.6) runs properly on my computer. When I copy this program into a folder on another Mac running Leopard (OSX v10.5) and Ubuntu, and run it, the program segfaults. Suddenly, none of the variables and objects are instantiated properly and I'm getting garbage data in spots where there should be no data at that point.
Has anyone encountered a similar problem or know what could be the possible cause of this?
Thanks.
Run it under valgrind memcheck and see what errors it reports.
I have just installed NetBeans 6.8. on Ubuntu 10.04 and it marks c++ keywords such as "using" or "namespace" as a fault. I checked that it compiles with g++ and I found an answer to that already here, but there it was a bug in Netbeans which had been fixed via updates within a few days. When I try to update, it tells me, I have the latest version...no surprise...
If I define me a class and want to use it in the main file, it does neither work. The header file of my class is included ;-)
And actually, when I write something like myClass::myMethod(int n){ myClass::Variable +=n;} it does not even accept the definition of n in the round brackets...
Does anybody have an idea?
The latest version is 6.91. You might have to download it again from netbeans.org if you're having issues with the update. Package manager may not have the latest version.
When you say you have errors are they when compiling or is the IDE underlining them in red before you compile? The IDE tries to be helpful but it's not very accurate sometimes.