Displaying 20 results from an estimated 41 matches for "runtime_error".
2013 Jul 30
1
[LLVMdev] Weird error from Undefined Sanitizer
...clang -std=c++11 -stdlib=libc++ -I $LIBCXX/include -fsanitize=undefined ubsan.cpp -L $LIBCXX/lib -L $LIBCXXABI/lib -lc++abi
$ DYLD_LIBRARY_PATH=$LIBCXX/lib:$LIBCXXABI/lib ./a.out
ubsan.cpp:22:5: runtime error: member call on address 0x7fff4fc2eaf0 which does not point to an object of type 'std::runtime_error'
0x7fff4fc2eaf0: note: object is of type 'std::runtime_error'
00 00 00 00 e0 7a b5 10 01 00 00 00 38 39 c0 7b dc 7f 00 00 ac b3 fd 0f 01 00 00 00 5e 20 bd 6f
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'std::runtime_error'
<unknown>: runtime error: me...
2008 Jan 29
1
std::runtime_error when calling EM::stop
When I call EM::stop from within a Deferrable callback, I''m getting
the following:
terminate called after throwing an instance of ''std::runtime_error''
what(): already initialized
Abort trap
Is there any way to trace this a little further?
-- Duane Johnson
2019 Nov 18
2
Crash using exceptions
...example, I modified the code in
https://github.com/llvm-mirror/llvm/tree/master/examples/Kaleidoscope/BuildingAJIT/Chapter2.
In toy.cpp, I update LogError to throw an exception:
std::unique_ptr<ExprAST> LogError(const char *Str) {
fprintf(stderr, "Error: %s\n", Str);
throw std::runtime_error("");
}
and I catch that exception in MainLoop:
static void MainLoop() {
while (true) {
fprintf(stderr, "ready> ");
try {
switch (CurTok) {
...
}
} catch (std::runtime_error &e) {
fprintf(stderr, "%s\n", e.what());
}...
2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
...reateRet(llvm::ConstantInt::get(context, llvm::APInt(32, 1,
true)));
jit.addModule(std::move(module));
llvm::JITSymbol symbol = jit.findSymbol(FUNC_NAME);
//Just to ensure that the symbol is in fact valid (symbol evaluates to
true during execution)
if(!symbol) {
throw std::runtime_error("Symbol not found");
}
//when uncommented, the throw statement does NOT cause a SIGSEGV.
//throw std::runtime_error("This should not crash.");
uint64_t ptr = symbol.getAddress();
//HOWEVER... a SIGSEGV occurs during stack-unwinding while throwing the
excepti...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
...gt;> jit.addModule(std::move(module));
>>
>> llvm::JITSymbol symbol = jit.findSymbol(FUNC_NAME);
>>
>> //Just to ensure that the symbol is in fact valid (symbol evaluates
>> to true during execution)
>> if(!symbol) {
>> throw std::runtime_error("Symbol not found");
>> }
>>
>> //when uncommented, the throw statement does NOT cause a SIGSEGV.
>> //throw std::runtime_error("This should not crash.");
>> uint64_t ptr = symbol.getAddress();
>> //HOWEVER... a SIGSEGV occ...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
...t;>
>>>> llvm::JITSymbol symbol = jit.findSymbol(FUNC_NAME);
>>>>
>>>> //Just to ensure that the symbol is in fact valid (symbol evaluates
>>>> to true during execution)
>>>> if(!symbol) {
>>>> throw std::runtime_error("Symbol not found");
>>>> }
>>>>
>>>> //when uncommented, the throw statement does NOT cause a SIGSEGV.
>>>> //throw std::runtime_error("This should not crash.");
>>>> uint64_t ptr = symbol.getAddress();...
2007 Feb 25
6
Crash occurs where EventMachine.connect is
...hine::Deferrable
HOST="localhost"
PORT=8080
def self.request(data)
EventMachine.connect(HOST, PORT, self) {|c|
c.instance_eval { @data = data }
}
end
# [...]
end
x = Put.request(data)
Crash:
terminate called after throwing an instance of ''std::runtime_error''
what(): not initialized
Program received signal SIGABRT, Aborted.
[Switching to Thread -1211168096 (LWP 8580)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7d1a770 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7d1bef3 in abort () from...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...bol symbol = jit.findSymbol(FUNC_NAME);
>>>>>>
>>>>>> //Just to ensure that the symbol is in fact valid (symbol
>>>>>> evaluates to true during execution)
>>>>>> if(!symbol) {
>>>>>> throw std::runtime_error("Symbol not found");
>>>>>> }
>>>>>>
>>>>>> //when uncommented, the throw statement does NOT cause a SIGSEGV.
>>>>>> //throw std::runtime_error("This should not crash.");
>>>>>>...
2009 Dec 04
2
[LLVMdev] r72619
Hi Duncan,
There's a problem with your check-in for r72619 is causing "weak
external" symbols to appear in C++ code when it shouldn't. Take this
code for example,
#include <stdexcept>
void dummysymbol() {
throw(std::runtime_error("string"));
}
The c'tor for std::string is emitted as code from llvm-gcc. It is then
inlined. And a weak external for the `_S_construct' variable is
created. However, C++ rules stipulate that it shouldn't be, because of
explicit & implicit template instantiation rul...
2010 Apr 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
...d = 3;
+ int found[expected * 3];
+ const char* pcre_error;
+ int pcre_error_offset;
+ pcre* regex;
+ bool done = false;
+ bool started = false;
+
+ regex = pcre_compile(regexstr.c_str(), 0, &pcre_error, &pcre_error_offset, NULL);
+ if(!regex) { throw runtime_error("Unable to compile regular expression."); }
+
+ while(!input.eof() && !done)
+ {
+ string line;
+
+ getline(input, line);
+ int match = pcre_exec(regex, NULL, line.c_str(), line.length(),
+ 0, PCRE_NOTEMPTY,foun...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...ment_object = new _qmf::Host(agent, this);
+ agent->addObject(management_object);
+
+ // discover the aspects of the host
+ processors.setup(agent, this);
+
+ LibHalContext *hal_ctx;
+ int ret;
+
+ // Get our HAL Context or die trying
+ hal_ctx = get_hal_ctx();
+ if (!hal_ctx)
+ throw runtime_error("Unable to get HAL Context Structure.");
+
+ try {
+ NICWrapper::fillNICInfo(this->nics, agent, hal_ctx);
+
+ // Host UUID
+ char *uuid_c = get_uuid(hal_ctx);
+ string uuid(uuid_c);
+ management_object->set_uuid(uuid);
+
+ // Hostname
+ char hostname_c[HOST_NAM...
2008 Feb 11
1
unable to delete epoll event: Bad file
I know this error has been reported before, but a couple ppl have
reported getting this randomly when running Thin and it crashed the
server:
terminate called after throwing an instance of ''std::runtime_error''
what(): unable to delete epoll event: Bad file descriptor
I think it''s fixed on trunk now so I''m telling people that have this
issue to checkout and install EM from trunk.
It seems to be a pretty important issue so I''m wondering when is 0.11
being pushed to...
2009 Feb 26
1
0.12.4 dies with call SetTlsParms before
I upgraded from 12.2 to 12.4 and found that my happy little eventmachine
processes die with:
terminate called after throwing an instance of ''std::runtime_error''
what(): call SetTlsParms before calling StartTls
Here''s what I believe is the relevant snippet of my code, which calls
start_tls() in the connection_completed() callback:
connection = EventMachine::Protocols::HttpClient2.connect(args)
class << connection...
2009 Dec 04
0
[LLVMdev] r72619
Hi Bill,
> There's a problem with your check-in for r72619 is causing "weak
> external" symbols to appear in C++ code when it shouldn't. Take this
> code for example,
>
> #include <stdexcept>
>
> void dummysymbol() {
> throw(std::runtime_error("string"));
> }
>
> The c'tor for std::string is emitted as code from llvm-gcc. It is then
> inlined. And a weak external for the `_S_construct' variable is created.
> However, C++ rules stipulate that it shouldn't be, because of explicit &
> implicit...
2016 Jul 11
2
LibC++ failure on ARM
...oexceptions
but both slaves have the same error that wasn't there before:
******************** TEST 'libc++ ::
std/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp'
FAILED
Exit Code: -6
Standard Error:
--
terminating with uncaught exception of type std::runtime_error:
collate_byname<char>::collate_byname failed to construct for
--
Compiled test failed unexpectedly!
********************
This is the patch that changed the configuration:
http://llvm.org/viewvc/llvm-project?view=revision&revision=274747
and the only thing I can think could have caused...
2009 Sep 29
3
How do I access class slots from C?
Hi
I'm trying to implement something similar to the following R snippet using
C. I seem to have hit the wall on accessing class slots using C.
library(fPortfolio)
lppData <- 100 * LPP2005.RET[, 1:6]
ewSpec <- portfolioSpec()
nAssets <- ncol(lppData)
setWeights(ewSpec) <- rep(1/nAssets, times = nAssets)
ewPortfolio <- feasiblePortfolio(
data = lppData,
spec = ewSpec,
2010 Oct 26
3
[LLVMdev] Throwing C++ exception through LLVM JITed code
...through LLVM JITed code?
To illustrate the problem a bit better, consider this psuedo code. I want
the exception thrown in intrinsic_function(), which is called from the LLVM
compiled code, to be caught by the exception handler at the bottom of
run_program().
void intrinsic_function() {
throw runtime_error("unimplemented function");
}
void run_program() {
char *script_code = "call intrinsic_function();";
try {
myFunction = compile(script_code);
Engine->runFunction(myFunction);
} catch (...) {
// This is never reached.
}
}
I suspect this is not going to b...
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
..._open())
- {
- getline(input, uuid);
- input.close();
- }
+string
+Host::get_hostname() const
+{
+ return _hostname;
+}
- if(!uname(&details))
- {
- hostname = string(details.nodename);
- architecture = string(details.machine);
- }
- else
- {
- throw runtime_error("Unable to retrieve system details");
- }
+void
+Host::set_hypervisor(const string hypervisor)
+{
+ _hypervisor = hypervisor;
+}
- virConnectPtr lvconn = virConnectOpenReadOnly(NULL);
+string
+Host::get_hypervisor() const
+{
+ return _hypervisor;
+}
- if(lvconn)
- {
- h...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were
removed with this patch. So, I'm pushing an updated patch that contains
none of the HAL code in it.
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...nic_handle,
- "net.address",
- &dbus_error);
- // Or throw an exception if we could not find it. No cleanup yet.
- if (!macaddr_c)
- throw runtime_error("Could not get mac address for NIC");
-
- // Grab the interface name from libhal or return cleanup and fail
- interface_c = libhal_device_get_property_string(hal_ctx,
- nic_handle,
- "net.interface",
-...