Alamvic / druid

Meta-compiler to generate an optimised JIT compiler frontend based on an Interpreter definition
8 stars 6 forks source link

CodeSimulationTest>>#testErrorWithErrorHandler is failing on Linux #152

Open PalumboN opened 3 months ago

PalumboN commented 3 months ago

Using a DruidVM on Ubuntu (Benchy server) and running either:

You get

Erreur de segmentation Thu May 23 15:19:52 2024

/home/rmod/rebench/_build/VMs/druid/lib/pharo
PharoVM version:5.0-Pharo 10.1.1-1ac421111 built on May 22 2024 18:06:13 Compiler: 10.2.1 20210110 10.2.1 20210110 [Production Spur 64-bit VM]
Built from: CoInterpreter VMMaker-tonel.1 uuid: 6ca9b8d0-6ed5-0d00-af1f-64a309702f01 May 22 2024
 With:DruidJIT VMMaker-tonel.1 uuid: 6ca9b8d0-6ed5-0d00-af1f-64a309702f01 May 22 2024
 Revision: v8.6.1-222-g1ac421111 - Commit: 1ac421111 - Date: 2024-04-15 11:26:25 +0200

C stack backtrace & registers:
    rax 0x00000000 rbx 0x00000000 rcx 0x00000900 rdx 0x000005e2
    rdi 0x00000000 rsi 0x00000000 rbp 0x00000000 rsp 0x7ffe5d2da780
    r8  0x00000000 r9  0x32013ce85 r10 0x10000cf4188 r11 0x10000367e58
    r12 0x00000000 r13 0x00000001 r14 0x00000000 r15 0x3608f3c78
    rip 0x7feca931d3cb
*/home/rmod/rebench/_build/images/../VMs/druid/lib/libPharoVMCore.so(+0xc43cb)[0x7feca931d3cb]
/home/rmod/rebench/_build/images/../VMs/druid/lib/libPharoVMCore.so(reportStackState+0xbc)[0x7feca934287c]
/home/rmod/rebench/_build/images/../VMs/druid/lib/libPharoVMCore.so(doReport+0xa7)[0x7feca9342aa7]
/home/rmod/rebench/_build/images/../VMs/druid/lib/libPharoVMCore.so(sigsegv+0x14)[0x7feca9342b24]
/lib/x86_64-linux-gnu/libc.so.6(+0x38d60)[0x7feca90bdd60]
/home/rmod/rebench/_build/images/../VMs/druid/lib/libPharoVMCore.so(+0xc43cb)[0x7feca931d3cb]
/home/rmod/rebench/_build/images/../VMs/druid/lib/libPharoVMCore.so(ceSendsupertonumArgs+0x2c2)[0x7feca9330562]
[0x320000107]
[0x0]

All Smalltalk process stacks (active first):
Process        0x3608cf1d8 priority 40
       0x30002bfa8 M InstructionStream>scanFor: 0x3608f3ba8: a(n) InstructionStream
       0x30002bfe0 M CompiledBlock>hasMethodReturn 0x1000138fa50: a(n) CompiledBlock
       0x30002d8f0 M [] in FullBlockClosure>hasNonLocalReturn 0x3608f3708: a(n) FullBlockClosure
       0x30002d928 M CompiledBlock(CompiledCode)>withAllBlocksDo: 0x1000138fa50: a(n) CompiledBlock
       0x30002d960 M FullBlockClosure(BlockClosure)>withAllBlocksDo: 0x3608f3708: a(n) FullBlockClosure
       0x30002d9a8 I FullBlockClosure(BlockClosure)>hasNonLocalReturn 0x3608f3708: a(n) FullBlockClosure
       0x30002da00 I Context>runSimulated:contextAtEachStep: 0x3608f3730: a(n) Context
       0x30002da50 I CodeSimulationTest>runSimulated: 0x3608f1118: a(n) CodeSimulationTest
       0x30002da88 M CodeSimulationTest>testErrorWithErrorHandler 0x3608f1118: a(n) CodeSimulationTest
       0x30002dac8 I CodeSimulationTest(TestCase)>performTest 0x3608f1118: a(n) CodeSimulationTest
       0x30002daf8 M [] in CodeSimulationTest>runCase 0x3608f1118: a(n) CodeSimulationTest
       0x30002db38 M FullBlockClosure(BlockClosure)>ensure: 0x3608f3600: a(n) FullBlockClosure
       0x30002db70 M [] in CodeSimulationTest>runCase 0x3608f1118: a(n) CodeSimulationTest
       0x30002dbb0 M FullBlockClosure(BlockClosure)>ensure: 0x3608f34f8: a(n) FullBlockClosure
       0x30002dbf8 I CodeSimulationTest(TestCase)>runCase 0x3608f1118: a(n) CodeSimulationTest
       0x30002dc30 M [] in TestExecutionEnvironment>runTestCaseUnderWatchdog: 0x3608f1928: a(n) TestExecutionEnvironment
       0x30002dc70 M FullBlockClosure(BlockClosure)>ensure: 0x3608f33c0: a(n) FullBlockClosure
       0x30002dcb0 M [] in TestExecutionEnvironment>runTestCaseUnderWatchdog: 0x3608f1928: a(n) TestExecutionEnvironment
       0x30002dce0 M FullBlockClosure(BlockClosure)>on:do: 0x3608f32b0: a(n) FullBlockClosure
       0x30002dd20 M TestExecutionEnvironment>runTestCaseUnderWatchdog: 0x3608f1928: a(n) TestExecutionEnvironment
       0x30002dd60 M [] in TestExecutionEnvironment>runTestCase: 0x3608f1928: a(n) TestExecutionEnvironment
       0x30002dda0 M FullBlockClosure(BlockClosure)>ensure: 0x3608f31a0: a(n) FullBlockClosure
       0x30002ddd8 M TestExecutionEnvironment>runTestCase: 0x3608f1928: a(n) TestExecutionEnvironment
       0x30002de20 M [] in DefaultExecutionEnvironment>runTestCase: 0x10000010430: a(n) DefaultExecutionEnvironment
       0x30002de60 M [] in CurrentExecutionEnvironment class>activate:for: 0x1000001c3f0: a(n) CurrentExecutionEnvironment class
       0x30002dea0 M FullBlockClosure(BlockClosure)>ensure: 0x3608f1db0: a(n) FullBlockClosure
       0x30002def0 I CurrentExecutionEnvironment class>activate:for: 0x1000001c3f0: a(n) CurrentExecutionEnvironment class
       0x30002df40 I TestExecutionEnvironment(ExecutionEnvironment)>beActiveDuring: 0x3608f1928: a(n) TestExecutionEnvironment
       0x30002df90 I DefaultExecutionEnvironment>runTestCase: 0x10000010430: a(n) DefaultExecutionEnvironment
       0x30002dfd8 I CurrentExecutionEnvironment class>runTestCase: 0x1000001c3f0: a(n) CurrentExecutionEnvironment class
       0x300025940 I CodeSimulationTest(TestCase)>runCaseManaged 0x3608f1118: a(n) CodeSimulationTest
       0x300025978 M [] in TestResult>runCase: 0x3608f1130: a(n) TestResult
       0x3000259a8 M FullBlockClosure(BlockClosure)>on:do: 0x3608f1560: a(n) FullBlockClosure
       0x3000259f8 I TestResult>runCase: 0x3608f1130: a(n) TestResult
       0x300025a38 M [] in CodeSimulationTest>run 0x3608f1118: a(n) CodeSimulationTest
       0x300025a78 M FullBlockClosure(BlockClosure)>ensure: 0x3608f1450: a(n) FullBlockClosure
       0x300025ab8 M CodeSimulationTest(TestCase)>run 0x3608f1118: a(n) CodeSimulationTest
       0x300025ae8 M CodeSimulationTest class(TestCase class)>run: 0x10001323060: a(n) CodeSimulationTest class
       0x300025b20 M UndefinedObject>DoIt 0x10000000000: a(n) UndefinedObject
       0x300025b60 I OCReceiverDoItSemanticScope(OCDoItSemanticScope)>evaluateDoIt: 0x3608d8b18: a(n) OCReceiverDoItSemanticScope
       0x300025bb8 I OpalCompiler>evaluate 0x3608d8728: a(n) OpalCompiler
       0x300025bf8 I OpalCompiler>evaluate: 0x3608d8728: a(n) OpalCompiler
       0x300025c40 M [] in EvaluateCommandLineHandler>evaluate: 0x3608d3af8: a(n) EvaluateCommandLineHandler
       0x300025c70 M FullBlockClosure(BlockClosure)>on:do: 0x3608d86c8: a(n) FullBlockClosure
       0x300025cc8 I EvaluateCommandLineHandler>evaluate: 0x3608d3af8: a(n) EvaluateCommandLineHandler
       0x300025d18 I EvaluateCommandLineHandler>evaluateArguments 0x3608d3af8: a(n) EvaluateCommandLineHandler
       0x300025d58 I EvaluateCommandLineHandler>activate 0x3608d3af8: a(n) EvaluateCommandLineHandler
       0x300025d98 I EvaluateCommandLineHandler class(CommandLineHandler class)>activateWith: 0x100001552f0: a(n) EvaluateCommandLineHandler class
       0x300025dd8 M [] in PharoCommandLineHandler>activateSubCommand: 0x360003d10: a(n) PharoCommandLineHandler
       0x300025e08 M FullBlockClosure(BlockClosure)>on:do: 0x3608d3a98: a(n) FullBlockClosure
       0x300025e58 I PharoCommandLineHandler(BasicCommandLineHandler)>activateSubCommand: 0x360003d10: a(n) PharoCommandLineHandler
       0x300025ea8 I PharoCommandLineHandler(BasicCommandLineHandler)>handleSubcommand 0x360003d10: a(n) PharoCommandLineHandler
       0x300025ee8 I PharoCommandLineHandler(BasicCommandLineHandler)>handleArgument: 0x360003d10: a(n) PharoCommandLineHandler
       0x300025f20 M [] in PharoCommandLineHandler>activate 0x360003d10: a(n) PharoCommandLineHandler
       0x300025f50 M FullBlockClosure(BlockClosure)>on:do: 0x3608cff68: a(n) FullBlockClosure
       0x300025fa0 I [] in PharoCommandLineHandler>activate 0x360003d10: a(n) PharoCommandLineHandler
       0x300025fe0 I [] in FullBlockClosure>newProcess 0x3608cf018: a(n) FullBlockClosure