<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58433>58433</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm lli Interpreter EXC_BAD_ACCESS (SIGSEGV) problem need to be answered
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
phoenixlabcn
</td>
</tr>
</table>
<pre>
When I use lli -force-Interpreter=true on arm64,
[ Interpreter::visitCallBase -> Interpreter::callFunction ] crashed .
crashed at :
StackFrame.CurInst = StackFrame.CurBB->begin(); in Interpreter::callFunction.
After checking, there may be a problem with( Function *F .
The following information about ‘sputn’ function
------------------------------------------------------------
; Function Attrs: mustprogress noinline optnone ssp uwtable
define internal noundef i64 @_ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5sputnEPKcl(%"class.std::__1::basic_streambuf"* noundef nonnull align 8 dereferenceable(64) %0, i8* noundef %1, i64 noundef %2) #1 align 2 {
%4 = alloca %"class.std::__1::basic_streambuf"*, align 8
%5 = alloca i8*, align 8
%6 = alloca i64, align 8
store %"class.std::__1::basic_streambuf"* %0, %"class.std::__1::basic_streambuf"** %4, align 8
store i8* %1, i8** %5, align 8
store i64 %2, i64* %6, align 8
%7 = load %"class.std::__1::basic_streambuf"*, %"class.std::__1::basic_streambuf"** %4, align 8
%8 = load i8*, i8** %5, align 8
%9 = load i64, i64* %6, align 8
%10 = bitcast %"class.std::__1::basic_streambuf"* %7 to i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)***
%11 = load i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)**, i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)*** %10, align 8
%12 = getelementptr inbounds i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)*, i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)** %11, i64 12
%13 = load i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)*, i64 (%"class.std::__1::basic_streambuf"*, i8*, i64)** %12, align 8
%14 = call noundef i64 %13(%"class.std::__1::basic_streambuf"* noundef nonnull align 8 dereferenceable(64) %7, i8* noundef %8, i64 noundef %9)
ret i64 %14
}
------------------------------------------------------------
【 %14 call noundef i64 %13 】 So [ Interpreter::callFunction] was not found the function during the run. Call by name is normal in other cases.
What should I do to make this function work normally,using Interpreter.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VtuO4jgQ_ZrwUgLlTnjggVuP0EqjlVjtjPYFOY4hnnZsZDvD9t9v2Ql0mKV3JLZ7UCCk7CqfU1WxT6mql_mXmknYQmsYCMFhfFCasvFWWqZPmuFvkKytbhkoCUQ3eRrEqyBcB-Gi_82WcDN7gdd3brhdESGWBOPCOEg2_55EcfypldRyDB1kawCqialZBZPhAhcjseD8vG1nCX1-0qRhk1Wrt9JYABxdw-3AculWLtmRyyAugngWJEsALuG_wdwsvzjgHKA1o89cHpE82JppBg15gZIBgZNWpWANnLmtg81TsFwFRQGvxOLF0y2hP2oGByWEOmNARIMZb4ifS0rVIstNHBRhMCvMqbXy8jSDQx-yizL-H5-b-mFKrmAX1mqD2YCmNRaJHTUzBqTiUnCJLXCyUuHdmBO0Z0uQdxekYgc3zl1WJRHo0Uq0Ac9TCNJw_9fnnU32-yjKSmI43RurGWnK9rCln3dopjXRe6sJt2ZLN5tN5qlvfv-NCl-4LIhjKogxE2OrrmAYrfvzQ0SciSm_IkC8shUCiOBHCQVUWLsDfiVlHn5cuI6eYZmy0BWXF0NvtEbeijwGtrjzSKI-bAzBdNllAtx46nsRO0pRAg-gd0v2gAdRs2FUj_P-vPxmnn9hf5xlrMIWfiSvlzw9xMq7v42ny_0158WrT_a2j-swX5FVx9XPz-9nZuozIxSpHq3K-9JGc_EK6VrSnzFH82zg1lX4p-Sj0PuU3FKC--WDxZ-CVX3SH3kvB_R6yLOOq7sGWKMbfu-_2OqDOHSJfqMAsSd1xEMHzwsm7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