Croquet FFI tests segfault

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Croquet FFI tests segfault

Squeak - Dev mailing list
Per Bert, I ran the FFI-Tests->FFIPluginTests(74 tests) and squeak 5.3 on 32 bit machine segfaults.

I ran squeak as squeak.sh >> debug.


text of debug is at bottom of this email.

Suggestions on how to isolate which test(s) are barfing and I will do that to try and hunt it down

thanks


----------------------------------debug below--------------

Using /home/wm/usr/src/smalltalk/squeak5.3/bin/squeak...
8 ints came in as
i1 = 12 (c)
i2 = 29 (1d)
i3 = 46 (2e)
i4 = 63 (3f)
i5 = 0 (0)
i6 = 162350382 (9ad452e)
i7 = 0 (0)
i8 = 85 (55)
8 long longs came in as
i1 = -103079215112 (ffffffe7fffffff8)
i2 = -34359738352 (fffffff800000010)
i3 = 34359738408 (800000028)
i4 = 103079215168 (1800000040)
i5 = 171798691928 (2800000058)
i6 = 240518168688 (3800000070)
i7 = 4 (4)
i8 = 162360629 (9ad6d35)
4 characters came in as
c1 = \0 (0)
c2 = \0 (0)
c3 = \0 (0)
c4 = \0 (0)
The two floats are 0.000000 and 0.000000
The two floats are 0.000000 and 0.000000
4 ints came in as
i1 = 0 (0)
i2 = 0 (0)
i3 = 131632 (20230)
i4 = 0 (0)

Segmentation fault Wed Mar 25 07:00:59 2020


/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak
Squeak VM version: 5.0-202003021730  Tue Mar  3 08:28:29 UTC 2020 gcc 5.4.0 [Production Spur VM]
Built from: CoInterpreter VMMaker.oscog-nice.2712 uuid: da64ef0b-fb0a-4770-ac16-f9b448234615 Mar  3 2020
With: StackToRegisterMappingCogit VMMaker.oscog-eem.2719 uuid: e40f3e94-3a54-411b-9613-5d19114ea131 Mar  3 2020
Date: Mon Mar 2 18:30:55 2020 CommitHash: 6a0bc96
Build host: Linux travis-job-56ef6ed6-a99c-4420-b3aa-37bf991d063a 4.15.0-1028-gcp #29~16.04.1-Ubuntu SMP Tue Feb 12 16:31:10 UTC 2019 i686 i686 i686 GNU/Linux
plugin path: /home/wm/usr/src/smalltalk/squeak5.3/bin/ [default: /home/wm/usr/src/smalltalk/squeak5.3/bin/]


C stack backtrace & registers:
eax 0x7cd17041 ebx 0x00000072 ecx 0x00000072 edx 0x0d0ace14
edi 0xbfbbab38 esi 0xbfbbab38 ebp 0xbfba7dc8 esp 0xbfba7d60
eip 0x0809d420
*/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak(interpret+0x1440)[0x809d420]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak[0x805ee55]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak[0x8060883]
linux-gate.so.1(__kernel_rt_sigreturn+0x0)[0xb7749ba0]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak(interpret+0x1440)[0x809d420]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak[0x80a549b]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak(interpret+0x1e5)[0x809c1c5]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak(main+0x2f1)[0x805e381]
/lib/libc.so.6(__libc_start_main+0x107)[0xb752a697]
/home/wm/usr/src/smalltalk/squeak5.3/bin/squeak[0x805e6b4]
[0x1000]


Smalltalk stack dump:
0xbfbbac10 I SmallInteger(ExternalFunction)>invokeWithArguments: 0x101=128
0xbfbbac34 I ExternalLibraryFunction(ExternalFunction)>invokeWith: 0x9d9ef38: a(n) ExternalLibraryFunction
0xbfbbac60 I FFIPluginTests>testConstructedPrintString 0x9bebcd0: a(n) FFIPluginTests
0xbfbbac78 M FFIPluginTests(TestCase)>performTest 0x9bebcd0: a(n) FFIPluginTests
0xbfbbac90 M [] in FFIPluginTests(TestCase)>runCase 0x9bebcd0: a(n) FFIPluginTests
0xbfbbacac M BlockClosure>on:do: 0x9d9e7e0: a(n) BlockClosure
0xbfbbacd4 M [] in FFIPluginTests(TestCase)>timeout:after: 0x9bebcd0: a(n) FFIPluginTests
0xbfbbacf4 M BlockClosure>ensure: 0x9d9ed28: a(n) BlockClosure
0xbfbbad1c M FFIPluginTests(TestCase)>timeout:after: 0x9bebcd0: a(n) FFIPluginTests
0xbfbbad3c M [] in FFIPluginTests(TestCase)>runCase 0x9bebcd0: a(n) FFIPluginTests
0xbfbbad5c M BlockClosure>ensure: 0x9d9e098: a(n) BlockClosure
0xbfbbad78 M FFIPluginTests(TestCase)>runCase 0x9bebcd0: a(n) FFIPluginTests
0xbfbbad94 M [] in TestResult>runCase: 0x9b92850: a(n) TestResult
0xbfbbadb0 M Time class>microsecondsToRun: 0xa2cde48: a(n) Time class
0xbfbbadcc M Time class>millisecondsToRun: 0xa2cde48: a(n) Time class
0xbfbb29f8 M BlockClosure>timeToRun 0x9d9df50: a(n) BlockClosure
0xbfbb2a14 M BlockClosure>timeToRunWithoutGC 0x9d9df50: a(n) BlockClosure
0xbfbb2a34 M [] in TestResult>runCase: 0x9b92850: a(n) TestResult
0xbfbb2a50 M BlockClosure>on:do: 0x9d9de10: a(n) BlockClosure
0xbfbb2a78 M [] in BlockClosure>on:do:on:do: 0x9d9de10: a(n) BlockClosure
0xbfbb2a94 M BlockClosure>on:do: 0x9d9ded0: a(n) BlockClosure
0xbfbb2ab4 M BlockClosure>on:do:on:do: 0x9d9de10: a(n) BlockClosure
0xbfbb2ae0 M TestResult>runCase: 0x9b92850: a(n) TestResult
0xbfbb2afc M FFIPluginTests(TestCase)>run: 0x9bebcd0: a(n) FFIPluginTests
0xbfbb2b18 M TestRunner>runTest: 0xdd3b320: a(n) TestRunner
0xbfbb2b34 M [] in TestRunner>runSuite: 0xdd3b320: a(n) TestRunner
0xbfbb2b6c M [] in OrderedCollection(Collection)>do:displayingProgress:every: 0x9ba9ea8: a(n) OrderedCollection
0xbfbb2b8c M OrderedCollection>do: 0x9ba9ea8: a(n) OrderedCollection
0xbfbb2bbc M [] in OrderedCollection(Collection)>do:displayingProgress:every: 0x9ba9ea8: a(n) OrderedCollection
0xbfbb2be4 M [] in MorphicUIManager>displayProgress:at:from:to:during: 0xb874b60: a(n) MorphicUIManager
0xbfbb2c00 M BlockClosure>on:do: 0x9ba9f98: a(n) BlockClosure
0xbfbb2c2c M [] in MorphicUIManager>displayProgress:at:from:to:during: 0xb874b60: a(n) MorphicUIManager
0xbfbb2c4c M BlockClosure>ensure: 0x9baa030: a(n) BlockClosure
0xbfbb2c78 I MorphicUIManager>displayProgress:at:from:to:during: 0xb874b60: a(n) MorphicUIManager
0xbfbb2cac I ProgressInitiationException>defaultResumeValue 0x9baa0c8: a(n) ProgressInitiationException
0xbfbb2cd0 I ProgressInitiationException(Exception)>resume 0x9baa0c8: a(n) ProgressInitiationException
0xbfbb2cf0 I ProgressInitiationException>defaultAction 0x9baa0c8: a(n) ProgressInitiationException
0xbfbb2d14 I UndefinedObject>handleSignal: 0x9fc4c70: a(n) UndefinedObject
0xbfbb2d38 I ProgressInitiationException(Exception)>signal 0x9baa0c8: a(n) ProgressInitiationException
0xbfbb2d58 I ProgressInitiationException>display:at:from:to:during: 0x9baa0c8: a(n) ProgressInitiationException
0xbfbb2d8c I ProgressInitiationException class>display:at:from:to:during: 0xa3dc1a8: a(n) ProgressInitiationException class
0xbfbb2dc0 I ByteString(String)>displayProgressAt:from:to:during: 0xb2bae48: a(n) ByteString
0xbfbb3b94 I ByteString(String)>displayProgressFrom:to:during: 0xb2bae48: a(n) ByteString
0xbfbb3bcc I OrderedCollection(Collection)>do:displayingProgress:every: 0x9ba9ea8: a(n) OrderedCollection
0xbfbb3bfc M [] in TestRunner>basicRunSuite:do: 0xdd3b320: a(n) TestRunner
0xbfbb3c1c M BlockClosure>ensure: 0x9baa370: a(n) BlockClosure
0xbfbb3c40 I TestRunner>basicRunSuite:do: 0xdd3b320: a(n) TestRunner
0xbfbb3c68 I TestRunner>runSuite: 0xdd3b320: a(n) TestRunner
0xbfbb3c8c I TestRunner>runAll 0xdd3b320: a(n) TestRunner
0xbfbb3cac I PluggableButtonMorphPlus(PluggableButtonMorph)>performAction 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3ccc I PluggableButtonMorphPlus>performAction 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3ce8 M [] in PluggableButtonMorphPlus(PluggableButtonMorph)>mouseUp: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3d0c M Array(SequenceableCollection)>do: 0x9baa4b0: a(n) Array
0xbfbb3d30 I PluggableButtonMorphPlus(PluggableButtonMorph)>mouseUp: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3d4c M PluggableButtonMorphPlus(Morph)>handleMouseUp: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3d68 M MouseButtonEvent>sentTo: 0x9baa468: a(n) MouseButtonEvent
0xbfbb3d88 M PluggableButtonMorphPlus(Morph)>handleEvent: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3da4 M PluggableButtonMorphPlus(Morph)>handleFocusEvent: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb3dc8 M MorphicEventDispatcher>doHandlingForFocusEvent:with: 0x9ba9650: a(n) MorphicEventDispatcher
0xbfbb0acc M MorphicEventDispatcher>dispatchFocusEvent:with: 0x9ba9650: a(n) MorphicEventDispatcher
0xbfbb0aec M PluggableButtonMorphPlus(Morph)>processFocusEvent:using: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb0b0c M PluggableButtonMorphPlus(Morph)>processFocusEvent: 0x9ba96c0: a(n) PluggableButtonMorphPlus
0xbfbb0b34 M [] in HandMorph>sendFocusEvent:to:clear: 0xa5a34a0: a(n) HandMorph
0xbfbb0b54 M BlockClosure>ensure: 0x9ba9770: a(n) BlockClosure
0xbfbb0b74 M MouseButtonEvent(MorphicEvent)>becomeActiveDuring: 0x9b94710: a(n) MouseButtonEvent
0xbfbb0b9c M [] in HandMorph>sendFocusEvent:to:clear: 0xa5a34a0: a(n) HandMorph
0xbfbb0bbc M BlockClosure>ensure: 0x9ba9868: a(n) BlockClosure
0xbfbb0bdc M HandMorph>becomeActiveDuring: 0xa5a34a0: a(n) HandMorph
0xbfbb0c04 M [] in HandMorph>sendFocusEvent:to:clear: 0xa5a34a0: a(n) HandMorph
0xbfbb0c24 M BlockClosure>ensure: 0x9ba9960: a(n) BlockClosure
0xbfbb0c44 M PasteUpMorph>becomeActiveDuring: 0xa395e38: a(n) PasteUpMorph
0xbfbb0c68 M HandMorph>sendFocusEvent:to:clear: 0xa5a34a0: a(n) HandMorph
0xbfbb0c94 M HandMorph>sendEvent:focus:clear: 0xa5a34a0: a(n) HandMorph
0xbfbb0cb8 M HandMorph>sendMouseEvent: 0xa5a34a0: a(n) HandMorph
0xbfbb0cd8 M HandMorph>handleEvent: 0xa5a34a0: a(n) HandMorph
0xbfbb0d04 M HandMorph>processEvents 0xa5a34a0: a(n) HandMorph
0xbfbb0d20 M [] in WorldState>doOneCycleNowFor: 0xa534910: a(n) WorldState
0xbfbb0d44 M Array(SequenceableCollection)>do: 0x9fde028: a(n) Array
0xbfbb0d60 M WorldState>handsDo: 0xa534910: a(n) WorldState
0xbfbb0d80 M WorldState>doOneCycleNowFor: 0xa534910: a(n) WorldState
0xbfbb0d9c M WorldState>doOneCycleFor: 0xa534910: a(n) WorldState
0xbfbb0db8 M PasteUpMorph>doOneCycle 0xa395e38: a(n) PasteUpMorph
0xbfbb0dd0 M [] in MorphicProject>spawnNewProcess 0xa6618e8: a(n) MorphicProject
0xd647100 s [] in BlockClosure>newProcess

Most recent primitives
@
@
@
@
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
@
@
@
@
truncated
@
@
bitAnd:
@
@
@
@
@
@
@
@
@
@
@
@
@
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
copyBits
@
basicNew:
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
copyBits
@
@
@
@
@
@
@
@
copyBits
@
@
@
copyBits
@
@
@
@
@
@
@
@
@
@
copyBits
@
@
@
@
@
@
@
@
@
@
@
@
copyBits
copyBits
copyBits
copyBits
@
@
@
@
@
@
@
@
@
@
copyBits
@
@
@
@
@
@
@
@
fractionPart
truncated
fractionPart
truncated
fractionPart
truncated
@
@
@
@
@
@
@
@
@
@
copyBits
@
@
+
at:put:
@
@
@
@
@
@
@
@
@
@
copyBits
copyBits
copyBits
copyBits
@
@
@
@
primDisplayString:from:to:map:xTable:kern:
@
primDisplayString:from:to:map:xTable:kern:
@
primShowRectLeft:right:top:bottom:
primitiveDeferUpdates:
forceDisplayUpdate
findNextUnwindContextUpTo:
tempAt:
tempAt:put:
tempAt:
terminateTo:
tempAt:put:
findNextUnwindContextUpTo:
terminateTo:
utcMicrosecondClock
//
vmParameterAt:
vmParameterAt:
**StackOverflow**
utcMicrosecondClock
getSystemAttribute:
getSystemAttribute:
basicNew:
stackp:
resume
wait
signal
utcMicrosecondClock
+
<
<=
>=
+
<
primSignal:atUTCMicroseconds:
wait
signal
wait
signal
suspend
getSystemAttribute:
getSystemAttribute:
basicNew:
stackp:
resume
wait
signal
utcMicrosecondClock
+
<
<=
>=
+
<
primSignal:atUTCMicroseconds:
wait
signal
wait
perform:
hashWithInitialHash:
compare:with:collated:
at:
headerWord
hashWithInitialHash:
compare:with:collated:
invokeWithArguments:

stack page bytes 4096 available headroom 2788 minimum unused headroom 3012

(Segmentation fault)