Displaying 4 results from an estimated 4 matches for "somefuncptr".
2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
...to symbol.getAddress() must be causing some kind of
memory corruption.
//My guess is that it's clobbering the stack.
throw std::runtime_error("This should not crash but does anyway.");
std::cout << "Ptr is " << ptr << "\n";
int (*someFuncPtr)() = reinterpret_cast<int (*)()>(ptr);
//int (*someFuncPtr)() = (int (*)())ptr;
int returnValue = someFuncPtr();
std::cout << "Return value is: " << returnValue << "\n";
}
int main(int argc, char **argv) {
llvm::InitializeNativeTarget...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
...memory corruption.
>> //My guess is that it's clobbering the stack.
>> throw std::runtime_error("This should not crash but does anyway.");
>>
>> std::cout << "Ptr is " << ptr << "\n";
>>
>> int (*someFuncPtr)() = reinterpret_cast<int (*)()>(ptr);
>> //int (*someFuncPtr)() = (int (*)())ptr;
>>
>> int returnValue = someFuncPtr();
>>
>> std::cout << "Return value is: " << returnValue << "\n";
>>
>> }
>>...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
...ss is that it's clobbering the stack.
>>>> throw std::runtime_error("This should not crash but does anyway.");
>>>>
>>>> std::cout << "Ptr is " << ptr << "\n";
>>>>
>>>> int (*someFuncPtr)() = reinterpret_cast<int (*)()>(ptr);
>>>> //int (*someFuncPtr)() = (int (*)())ptr;
>>>>
>>>> int returnValue = someFuncPtr();
>>>>
>>>> std::cout << "Return value is: " << returnValue << &quo...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...; throw std::runtime_error("This should not crash but does
>>>>>> anyway.");
>>>>>>
>>>>>> std::cout << "Ptr is " << ptr << "\n";
>>>>>>
>>>>>> int (*someFuncPtr)() = reinterpret_cast<int (*)()>(ptr);
>>>>>> //int (*someFuncPtr)() = (int (*)())ptr;
>>>>>>
>>>>>> int returnValue = someFuncPtr();
>>>>>>
>>>>>> std::cout << "Return value is: &...