Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ppc64le] Runtime crash in System.Text.RegularExpressions.Tests #71080

Closed
directhex opened this issue Jun 21, 2022 · 3 comments
Closed

[ppc64le] Runtime crash in System.Text.RegularExpressions.Tests #71080

directhex opened this issue Jun 21, 2022 · 3 comments

Comments

@directhex
Copy link
Contributor

directhex commented Jun 21, 2022

Description

Console log: 'System.Text.RegularExpressions.Tests' from job 0704ee99-5984-4856-b01e-ac29d37e7872 workitem dd93bed4-ff82-49f0-94ea-a194fc8b891a (ubuntu.2004.ppc64le.experimental.open) executed on machine dotnet-1
+ ./RunTests.sh --runtime-path /home/helixbot/work/9F6908CF/p
----- start Tue 21 Jun 2022 06:51:53 PM UTC =============== To repro directly: =====================================================
pushd .
/home/helixbot/work/9F6908CF/p/dotnet exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
~/work/9F6908CF/w/BEDD0A19/e ~/work/9F6908CF/w/BEDD0A19/e
  Discovering: System.Text.RegularExpressions.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.RegularExpressions.Tests (found 289 of 331 test cases)
  Starting:    System.Text.RegularExpressions.Tests (parallel test collections = on, max threads = 2)
* Assertion at /home/directhex/Projects/runtime/src/mono/mono/mini/mini-ppc.c:5080, condition `ppc_is_imm16 (inst->inst_offset)' not met


=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x7cee60a9ad68 - Unknown
	0x7cee60a49f2c - Unknown
	0x7cee60a9a228 - Unknown
	0x7cee613a04c8 - Unknown
	0x7cee60d0d168 - Unknown
	0x7cee60ce4850 - Unknown
	0x7cee60af0038 - Unknown
	0x7cee608fe2f4 - Unknown
	0x7cee608fac74 - Unknown
	0x7cee60af05ec - Unknown
	0x7cee60af073c - Unknown
	0x7cee60af07bc - Unknown
	0x7cee60a937cc - Unknown
	0x7cee6098472c - Unknown
	0x7cee60987ed8 - Unknown
	0x7cee60989958 - Unknown
	0x7cee60990044 - Unknown
	0x7cee6098efd8 - Unknown
	0x7cee60a4d204 - Unknown
	0x7cee60a4ccb8 - Unknown
	0x7cee603301c4 - Unknown
	0x7cee299f0144 - Unknown
	0x7cee4b08c230 - Unknown
	0x7cee4b08c128 - Unknown
	0x7cee5e029fd0 - Unknown
	0x7cee5e028a84 - Unknown
	0x7cee29374450 - Unknown
	0x7cedf558a10c - Unknown
	0x7cee2a5631f0 - Unknown
	0x7cee2a562d08 - Unknown
	0x7cee2a5629ac - Unknown
	0x7cedf5588e50 - Unknown
	0x7cedf555abdc - Unknown
	0x7cee60994cb8 - Unknown
	0x7cee6086bd98 - Unknown
	0x7cee60877cac - Unknown
	0x7cee6080f934 - Unknown
	0x7cee6081efe8 - Unknown
	0x7cee5ce01a18 - Unknown
	0x7cee5ce0160c - Unknown
	0x7cee5cdff7d8 - Unknown
	0x7cee5cdff21c - Unknown
	0x7cee4b1a4a74 - Unknown
	0x7cee4b1a41f4 - Unknown
	0x7cee4b1a3c00 - Unknown
	0x7cee4b1a3abc - Unknown
	0x7cee4b1a3a18 - Unknown
	0x7cee4b1a3534 - Unknown
	0x7cee4b1a32f0 - Unknown
	0x7cee4b1a316c - Unknown
	0x7cee4b1a2f9c - Unknown
	0x7cee4b1a29bc - Unknown
	0x7cee4b1a27e8 - Unknown
	0x7cee4b1a2668 - Unknown
	0x7cee4b1a17e0 - Unknown
	0x7cee4b1a1318 - Unknown
	0x7cee4b1a11cc - Unknown
	0x7cee4b1a112c - Unknown
	0x7cee4b1a0d90 - Unknown
	0x7cee4b19e458 - Unknown
	0x7cee4b19dbb0 - Unknown
	0x7cee4b19da5c - Unknown
	0x7cee4b19d9b8 - Unknown
	0x7cee4b19d2b8 - Unknown
	0x7cee4b19cf60 - Unknown
	0x7cee4b19cdb0 - Unknown
	0x7cee4b19cbec - Unknown
	0x7cee4b19c2fc - Unknown
	0x7cee4b19bc28 - Unknown
	0x7cee4b19b8d8 - Unknown
	0x7cee4b19b708 - Unknown
	0x7cee4b19b5ec - Unknown
	0x7cee4b19af98 - Unknown
	0x7cee4b19ad80 - Unknown
	0x7cee4b19ac3c - Unknown
	0x7cee4b19ab60 - Unknown
	0x7cee4b19992c - Unknown
	0x7cee4b199190 - Unknown
	0x7cee4b19903c - Unknown
	0x7cee4b198f88 - Unknown
	0x7cee4b198468 - Unknown
	0x7cee4b197e38 - Unknown
	0x7cee4b197c88 - Unknown
	0x7cee54149d44 - Unknown
	0x7cee541497e0 - Unknown
	0x7cee54149694 - Unknown
	0x7cee541495e4 - Unknown
	0x7cee5414888c - Unknown
	0x7cee54148760 - Unknown
	0x7cee54148144 - Unknown
	0x7cee54147de8 - Unknown
	0x7cee54147c94 - Unknown
	0x7cee54147be0 - Unknown
	0x7cee54146d8c - Unknown
	0x7cee541469c8 - Unknown
	0x7cee54146884 - Unknown
	0x7cee541467d0 - Unknown
	0x7cee54146314 - Unknown
	0x7cee5413f2ec - Unknown
	0x7cee5413e6b0 - Unknown
	0x7cee5413e554 - Unknown
	0x7cee5413e4a4 - Unknown
	0x7cee5413a188 - Unknown
	0x7cee54139be8 - Unknown
	0x7cee54139a9c - Unknown
	0x7cee541399ec - Unknown
	0x7cee54139358 - Unknown
	0x7cee54138574 - Unknown
	0x7cee54137e70 - Unknown
	0x7cee54137d1c - Unknown
	0x7cee54137c68 - Unknown
	0x7cee54133bc0 - Unknown
	0x7cee54131af0 - Unknown
	0x7cee54131754 - Unknown
	0x7cee541316a4 - Unknown
	0x7cee541306d4 - Unknown
	0x7cee541302c8 - Unknown
	0x7cee5412fe28 - Unknown
	0x7cee5ce62404 - Unknown
	0x7cee5ce620a0 - Unknown
	0x7cee5ce61370 - Unknown
	0x7cee5412fa54 - Unknown
	0x7cee5412f570 - Unknown
	0x7cee5412f4b8 - Unknown
	0x7cee5412f420 - Unknown
	0x7cee5ce620a0 - Unknown
	0x7cee54124a38 - Unknown
	0x7cee4b6801bc - Unknown
	0x7cee5412f3a0 - Unknown
	0x7cee541265b4 - Unknown
	0x7cee5ce62990 - Unknown
	0x7cee5ce62508 - Unknown
	0x7cee5ce62404 - Unknown
	0x7cee5ce620a0 - Unknown
	0x7cee5ce61370 - Unknown
	0x7cee5ce6040c - Unknown
	0x7cee5ce60014 - Unknown
	0x7cee5ce5f654 - Unknown
	0x7cee5ce5fc98 - Unknown
	0x7cee60994cb8 - Unknown
	0x7cee6086bd98 - Unknown
	0x7cee60893358 - Unknown
	0x7cee6089308c - Unknown
	0x7cee61348838 - Unknown
	0x7cee60e0b884 - Unknown

=================================================================
	External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7cee60d0d168):0x7cee60d0d158  02 00 60 38 00 00 a0 38 08 00 c0 38 02 00 00 44  ..`8...8...8...D
0x7cee60d0d168  26 00 00 7c 28 01 21 e9 f0 8f 4d e9 79 52 29 7d  &..|(.!...M.yR)}
0x7cee60d0d178  00 00 40 39 3c 00 82 40 50 01 21 38 78 fb e3 7f  ..@9<..@P.!8x...
0x7cee60d0d188  10 00 01 e8 e8 ff a1 eb f0 ff c1 eb f8 ff e1 eb  ................

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at <unknown> <0xffffffff>
	  at System.Text.RegularExpressions.CompiledRegexRunner:Regex3588_Scan <0x000b4>
	  at <Module>:invoke_void_RegexRunner_ReadOnlySpan`1<char> <0x000ec>
	  at System.Text.RegularExpressions.CompiledRegexRunner:Scan <0x0004c>
	  at System.Text.RegularExpressions.Regex:ScanInternal <0x0005c>
	  at System.Text.RegularExpressions.Regex:RunSingleMatch <0x00448>
	  at System.Text.RegularExpressions.Regex:IsMatch <0x000e4>
	  at <>c__DisplayClass6_0:<TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture>b__0 <0x00050>
	  at <>c__DisplayClass11_0`1:<All>b__0 <0x00044>
	  at Xunit.Assert:All <0x001fc>
	  at Xunit.Assert:All <0x001d0>
	  at System.Text.RegularExpressions.Tests.RegexCultureTests:TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture <0x00324>
	  at <Module>:runtime_invoke_void__this___int_int <0x000f0>
	  at <unknown> <0xffffffff>
	  at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x000f8>
	  at System.Reflection.MethodInvoker:InterpretedInvoke <0x000b8>
	  at System.Reflection.RuntimeMethodInfo:Invoke <0x005a4>
	  at System.Reflection.MethodBase:Invoke <0x00050>
	  at Xunit.Sdk.TestInvoker`1:CallTestMethod <0x00058>
	  at <<InvokeTestMethodAsync>b__1>d:MoveNext <0x004a0>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000fc>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x00040>
	  at <>c__DisplayClass48_0:<InvokeTestMethodAsync>b__1 <0x000ec>
	  at <AggregateAsync>d__4:MoveNext <0x000f0>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000f4>
	  at Xunit.Sdk.ExecutionTimer:AggregateAsync <0x00100>
	  at <>c__DisplayClass48_0:<InvokeTestMethodAsync>b__0 <0x001d0>
	  at <RunAsync>d__9:MoveNext <0x00080>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000ec>
	  at Xunit.Sdk.ExceptionAggregator:RunAsync <0x000fc>
	  at <InvokeTestMethodAsync>d__48:MoveNext <0x00374>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00104>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestInvoker`1:InvokeTestMethodAsync <0x00130>
	  at Xunit.Sdk.XunitTestInvoker:InvokeTestMethodAsync <0x001cc>
	  at <<RunAsync>b__47_0>d:MoveNext <0x00754>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0010c>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestInvoker`1:<RunAsync>b__47_0 <0x000f4>
	  at <RunAsync>d__10`1:MoveNext <0x0008c>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000ec>
	  at Xunit.Sdk.ExceptionAggregator:RunAsync <0x000fc>
	  at Xunit.Sdk.TestInvoker`1:RunAsync <0x00158>
	  at Xunit.Sdk.XunitTestRunner:InvokeTestMethodAsync <0x00100>
	  at <InvokeTestAsync>d__4:MoveNext <0x001fc>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000fc>
	  at Xunit.Sdk.XunitTestRunner:InvokeTestAsync <0x00104>
	  at <>c__DisplayClass43_0:<RunAsync>b__0 <0x00040>
	  at <RunAsync>d__10`1:MoveNext <0x000c4>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000fc>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.ExceptionAggregator:RunAsync <0x00134>
	  at <RunAsync>d__43:MoveNext <0x00648>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0010c>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestRunner`1:RunAsync <0x000f4>
	  at <RunTestAsync>d__11:MoveNext <0x00264>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0010c>
	  at Xunit.Sdk.XunitTheoryTestCaseRunner:RunTestAsync <0x000cc>
	  at <RunAsync>d__19:MoveNext <0x00410>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00104>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestCaseRunner`1:RunAsync <0x000f0>
	  at Xunit.Sdk.XunitTheoryTestCase:RunAsync <0x00110>
	  at Xunit.Sdk.XunitTestMethodRunner:RunTestCaseAsync <0x000d4>
	  at <RunTestCasesAsync>d__32:MoveNext <0x00208>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0010c>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestMethodRunner`1:RunTestCasesAsync <0x000f4>
	  at <RunAsync>d__31:MoveNext <0x00270>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000fc>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestMethodRunner`1:RunAsync <0x000ec>
	  at Xunit.Sdk.XunitTestClassRunner:RunTestMethodAsync <0x00148>
	  at <RunTestMethodsAsync>d__38:MoveNext <0x00a00>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00114>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestClassRunner`1:RunTestMethodsAsync <0x000f8>
	  at <RunAsync>d__37:MoveNext <0x0044c>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00104>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestClassRunner`1:RunAsync <0x000f0>
	  at Xunit.Sdk.XunitTestCollectionRunner:RunTestClassAsync <0x0014c>
	  at <RunTestClassesAsync>d__28:MoveNext <0x004c8>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0010c>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestCollectionRunner`1:RunTestClassesAsync <0x000f4>
	  at <RunAsync>d__27:MoveNext <0x0044c>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00104>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00040>
	  at Xunit.Sdk.TestCollectionRunner`1:RunAsync <0x000f0>
	  at Xunit.Sdk.XunitTestAssemblyRunner:RunTestCollectionAsync <0x00128>
	  at <>c__DisplayClass14_2:<RunTestCollectionsAsync>b__2 <0x0006c>
	  at System.Threading.Tasks.Task`1:InnerInvoke <0x000a4>
	  at <>c:<.cctor>b__273_0 <0x00038>
	  at System.Threading.ExecutionContext:RunInternal <0x00124>
	  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x003e4>
	  at System.Threading.Tasks.Task:ExecuteEntry <0x00148>
	  at <>c:<.cctor>b__8_0 <0x0007c>
	  at Xunit.Sdk.MaxConcurrencySyncContext:RunOnSyncContext <0x0007c>
	  at <>c__DisplayClass11_0:<WorkerThreadProc>b__0 <0x00064>
	  at System.Threading.ExecutionContext:RunInternal <0x00124>
	  at System.Threading.ExecutionContext:Run <0x00074>
	  at System.Object:lambda_method2 <0x000a8>
	  at Xunit.Sdk.ExecutionContextHelper:Run <0x00094>
	  at Xunit.Sdk.MaxConcurrencySyncContext:WorkerThreadProc <0x002e0>
	  at <>c:<QueueUserWorkItem>b__5_0 <0x00084>
	  at System.Threading.Tasks.Task:InnerInvoke <0x000ec>
	  at <>c:<.cctor>b__273_0 <0x00038>
	  at System.Threading.ExecutionContext:RunInternal <0x00124>
	  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x003e4>
	  at System.Threading.Tasks.Task:ExecuteEntryUnsafe <0x00100>
	  at <>c:<.cctor>b__10_0 <0x00080>
	  at System.Threading.Thread:StartCallback <0x00188>
	  at System.Object:runtime_invoke_void__this__ <0x000dc>
=================================================================
./RunTests.sh: line 168:  9471 Aborted                 (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
~/work/9F6908CF/w/BEDD0A19/e
----- end Tue 21 Jun 2022 06:54:29 PM UTC ----- exit code 134 ----------------------------------------------------------
exit code 134 means SIGABRT Abort. Managed or native assert, or runtime check such as heap corruption, caused call to abort(). Core dumped.
ulimit -c value: unlimited
[   19.129118] systemd[1]: Mounting Kernel Debug File System...
[   19.131385] systemd[1]: Mounting Kernel Trace File System...
[   19.134475] systemd[1]: Starting Journal Service...
[   19.136731] systemd[1]: Starting Set the console keyboard layout...
[   19.139217] systemd[1]: Starting Create list of static device nodes for the current kernel...
[   19.141491] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[   19.142154] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[   19.142448] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
[   19.164245] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   19.564904] systemd[1]: Starting Load Kernel Modules...
[   19.567375] systemd[1]: Starting Remount Root and Kernel File Systems...
[   19.569695] systemd[1]: Starting udev Coldplug all Devices...
[   19.571898] systemd[1]: Starting Uncomplicated firewall...
[   19.574967] systemd[1]: Mounted Huge Pages File System.
[   19.575725] systemd[1]: Mounted POSIX Message Queue File System.
[   19.576499] systemd[1]: Mounted Kernel Debug File System.
[   19.577205] systemd[1]: Mounted Kernel Trace File System.
[   19.579142] systemd[1]: Finished Create list of static device nodes for the current kernel.
[   19.692274] systemd[1]: Finished udev Coldplug all Devices.
[   19.694968] systemd[1]: Starting udev Wait for Complete Device Initialization...
[   19.722088] systemd[1]: Finished Set the console keyboard layout.
[   19.846097] EXT4-fs (sda1): re-mounted. Opts: (null)
[   19.849803] systemd[1]: Finished Remount Root and Kernel File Systems.
[   20.339624] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[   20.339941] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[   20.342096] systemd[1]: Starting Load/Save Random Seed...
[   20.344432] systemd[1]: Starting Create System Users...
[   20.345213] systemd[1]: Started Journal Service.
[   20.469082] IPMI message handler: version 39.2
[   20.513260] ipmi device interface
[   20.545017] systemd-journald[333]: Received client request to flush runtime journal.
[   27.982050] alua: device handler registered
[   27.989784] emc: device handler registered
[   27.992118] rdac: device handler registered
[   29.007701] audit: type=1400 audit(1655821579.064:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=597 comm="apparmor_parser"
[   29.007707] audit: type=1400 audit(1655821579.064:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=597 comm="apparmor_parser"
[   29.012064] audit: type=1400 audit(1655821579.068:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=596 comm="apparmor_parser"
[   29.030944] audit: type=1400 audit(1655821579.088:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=602 comm="apparmor_parser"
[   29.030949] audit: type=1400 audit(1655821579.088:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=602 comm="apparmor_parser"
[   29.030952] audit: type=1400 audit(1655821579.088:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=602 comm="apparmor_parser"
[   29.065667] audit: type=1400 audit(1655821579.120:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=600 comm="apparmor_parser"
[   29.065672] audit: type=1400 audit(1655821579.120:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=600 comm="apparmor_parser"
[   29.587352] audit: type=1400 audit(1655821579.644:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=603 comm="apparmor_parser"
[   30.001781] audit: type=1400 audit(1655821580.056:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=604 comm="apparmor_parser"
[   60.055708] fbcon: Taking over console
[   60.060675] Console: switching to colour frame buffer device 128x48
[15383.139777] can: controller area network core (rev 20170425 abi 9)
[15383.139809] NET: Registered protocol family 29
[15383.151361] can: raw protocol (rev 20170425)
[15390.641697] can: request_module (can-proto-0) failed.
Waiting a few seconds for any dump to be written..
cat /proc/sys/kernel/core_pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E
cat /proc/sys/kernel/core_uses_pid: 0
cat: /proc/sys/kernel/coredump_filter: No such file or directory
cat /proc/sys/kernel/coredump_filter:
Looking around for any Linux dump..
... found no dump in /home/helixbot/work/9F6908CF/w/BEDD0A19/e
+ export _commandExitCode=134
+ exit 134

Reproduction Steps

Run test as normal

Configuration

git master on ppc64le

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 21, 2022
@vikasgupta8
Copy link
Contributor

The crash is observed due to self modifying code at runtime by JIT.
On debugging we found below sequence of powerpc instruction are generated at run time.
In multithreaded environment, these instructions should be thread safe, as these instructions are not thread safe, while one thread is reading these instruction another thread tries to modify these instructions and hence as a result r12 register gets the mixed address and call the incorrect address.

lis     r12,0
ori     r12,r12,29261
rldicr  r12,r12,32,31
oris    r12,r12,44947
ori     r12,r12,32224     // r12 should resolve to this address 0x724daf937de0 but gets resolve to wrong address in runtime 
mtlr    r12
blrl

Further, to resolve this we need to update the mechanism to generate the target address to an atomic instruction to load target address from memory and call it directly.

Currently, the mono code for powerpc uses code patching for this, we need to implement memory patching instead.

Similar fix is implemented for s390x in PR #52783

If anyone has any pointers/suggestion please share.

@marek-safar marek-safar removed the untriaged New issue has not been triaged by the area owner label Jul 18, 2022
@marek-safar marek-safar added this to the Future milestone Jul 18, 2022
@alhad-deshpande
Copy link
Contributor

@directhex
The PR 73616 raised for memory patch thunking fixes crashes observed in System.Text.RegularExpressions.Tests due to code being patched non-atomically.

The assertion mentioned above in this issue "Assertion at /home/directhex/Projects/runtime/src/mono/mono/mini/mini-ppc.c:5080, condition `ppc_is_imm16 (inst->inst_offset)' not met" is observed only in Release mode which we are looking at.

Also, there are new test cases added in RegexPcreTests.cs file which are also failing on Power and hence looking into it as well.

This was referenced Aug 17, 2022
@alhad-deshpande
Copy link
Contributor

@directhex
Can we close this issue now as this specific g_assert has been fixed and above PR's are merged?

@ghost ghost locked as resolved and limited conversation to collaborators Sep 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants