printing all stacks gives more clues: looks like we are causing an mnu at
startup, I'm not sure yet why that ends in a crashed image. Maybe it
happens too soon during initialization.
(gdb) p printAllStacks()
Process 0x4131ba8 priority 50
0x7ffffffa46d8 M ExternalAddress>finalize 0x45e39c8: a(n)
ExternalAddress
0x7ffffffa4710 M WeakFinalizerItem>finalizeValues 0x45e3070: a(n)
WeakFinalizerItem
0x7ffffffa4748 M [] in WeakRegistry>finalizeValues 0x157fb18: a(n)
WeakRegistry
0x7ffffffa4778 M BlockClosure>on:do: 0xc643c0: a(n) BlockClosure
0x7ffffffa47b8 M BlockClosure>on:fork: 0xc643c0: a(n) BlockClosure
0x7ffffffa47f8 M [] in WeakRegistry>finalizeValues 0x157fb18: a(n)
WeakRegistry
0x7ffffffa4840 M OrderedCollection>do: 0xc63b38: a(n) OrderedCollection
0x7ffffffa4890 M WeakRegistry>finalizeValues 0x157fb18: a(n)
WeakRegistry
0x7ffffffa48c8 M [] in WeakArray class>doOldFinalization 0x1598518:
a(n) WeakArray class
0x7ffffffa48f8 M BlockClosure>on:do: 0xc63a00: a(n) BlockClosure
0x7ffffffa4938 M BlockClosure>on:fork: 0xc63a00: a(n) BlockClosure
0x7ffffffa4978 M [] in WeakArray class>doOldFinalization 0x1598518:
a(n) WeakArray class
0x7ffffffa49c0 M WeakArray(SequenceableCollection)>do: 0x12fe7f0: a(n)
WeakArray
0x7ffffffa49f8 M [] in WeakArray class>doOldFinalization 0x1598518:
a(n) WeakArray class
0x7ffffffa4a38 M [] in Semaphore>critical: 0x4131b88: a(n) Semaphore
0x7ffffffa4a78 M BlockClosure>ensure: 0xc5e260: a(n) BlockClosure
0x7ffffffa4ab8 M Semaphore>critical: 0x4131b88: a(n) Semaphore
0x7ffffffa4b00 I WeakArray class>doOldFinalization 0x1598518: a(n)
WeakArray class
0x7ffffffa4b50 I WeakArray class>finalizationProcess 0x1598518: a(n)
WeakArray class
0x45c3c90 s [] in WeakArray class>restartFinalizationProcess
0x4136d78 s [] in BlockClosure>newProcess
processes at priority 40
Process 0x3591a98 priority 40
0x7ffffffa68a0 M IdentityDictionary(Dictionary)>at:ifAbsent: 0x174b880:
a(n) IdentityDictionary
0x7ffffffa68e8 M Unicode class>toUppercase: 0x1f977b8: a(n) Unicode
class
0x7ffffffa6920 M Character>asUppercase 0x21a=$67 ($C)
0x7ffffffa6958 M Character>isVowel 0x21a=$67 ($C)
0x7ffffffa69a0 M ClassSessionHandler(Object)>printOn: 0x1801578: a(n)
ClassSessionHandler
0x7ffffffa69d8 M ClassSessionHandler(AbstractSessionHandler)>printOn:
0x1801578: a(n) ClassSessionHandler
0x7ffffffa6a10 M LimitedWriteStream(Stream)>print: 0xa5f8a8: a(n)
LimitedWriteStream
0x7ffffffa6a50 M [] in Array(Collection)>printElementsOn: 0xa5f3e0:
a(n) Array
0x7ffffffa6a98 M Array(SequenceableCollection)>do:separatedBy:
0xa5f3e0: a(n) Array
0x7ffffffa6ad8 M Array(Collection)>printElementsOn: 0xa5f3e0: a(n) Array
0x7ffffffa6b10 M Array(Collection)>printOn: 0xa5f3e0: a(n) Array
0x7ffffffa6b48 M Array>printOn: 0xa5f3e0: a(n) Array
0x7ffffff9e600 M [] in Array(Object)>printStringLimitedTo: 0xa5f3e0:
a(n) Array
0x7ffffff9e640 M String class(SequenceableCollection
class)>streamContents:limitedTo: 0x15990e8: a(n) String class
0x7ffffff9e688 M Array(Object)>printStringLimitedTo: 0xa5f3e0: a(n)
Array
0x7ffffff9e6c0 M [] in Context>printDetails: 0xa5f5c8: a(n) Context
0x7ffffff9e6f0 M BlockClosure>on:do: 0xa5fa80: a(n) BlockClosure
0x7ffffff9e730 M BlockClosure>ifError: 0xa5fa80: a(n) BlockClosure
0x7ffffff9e788 M Context>printDetails: 0xa5f5c8: a(n) Context
0x7ffffff9e7e8 I Context>errorReportOn: 0xa5e858: a(n) Context
0x7ffffff9e830 M [] in SmalltalkImage>logError:inContext: 0x19b62b8:
a(n) SmalltalkImage
0x7ffffff9e878 M [] in SmalltalkImage>logDuring: 0x19b62b8: a(n)
SmalltalkImage
0x7ffffff9e8b8 M BlockClosure>ensure: 0xa5fd28: a(n) BlockClosure
0x7ffffff9e908 I SmalltalkImage>logDuring: 0x19b62b8: a(n)
SmalltalkImage
0x7ffffff9e950 I SmalltalkImage>logError:inContext: 0x19b62b8: a(n)
SmalltalkImage
0x7ffffff9e9a0 I StartupUIManager(UIManager)>logError: 0x459ee98: a(n)
StartupUIManager
0x7ffffff9e9e8 I StartupUIManager(CommandLineUIManager)>handleError:log:
0x459ee98: a(n) StartupUIManager
0x7ffffff9ea38 I StartupUIManager>handleError:log: 0x459ee98: a(n)
StartupUIManager
0x7ffffff9ea88 I StartupUIManager(UIManager)>handleError: 0x459ee98:
a(n) StartupUIManager
0x7ffffff9eac0 M [] in WorkingSession>runList:do: 0xa5e000: a(n)
WorkingSession
0x7ffffff9eaf8 M BlockClosure>cull: 0xa5f2e0: a(n) BlockClosure
0x7ffffff9eb48 I Context>evaluateSignal: 0xa5e5e0: a(n) Context
0x7ffffff9c570 I Context>handleSignal: 0xa5e5e0: a(n) Context
0x7ffffff9c5b8 I MessageNotUnderstood(Exception)>signal 0xa5e750: a(n)
MessageNotUnderstood
0x7ffffff9c608 I SmalltalkImage(Object)>doesNotUnderstand: isSqueakNOS
0x19b62b8: a(n) SmalltalkImage
0x7ffffff9c650 I SqueakNOSPlatform class>isActivePlatform 0x4222160:
a(n) SqueakNOSPlatform class
0x7ffffff9c680 M [] in OSPlatform class>determineActivePlatform
0x1f28ac8: a(n) OSPlatform class
0x7ffffff9c6c8 M [] in OrderedCollection(Collection)>detect:ifFound:ifNone:
0xa5eae0: a(n) OrderedCollection
0x7ffffff9c710 M OrderedCollection>do: 0xa5eae0: a(n) OrderedCollection
0x7ffffff9c758 I OrderedCollection(Collection)>detect:ifFound:ifNone:
0xa5eae0: a(n) OrderedCollection
0x7ffffff9c7b0 I OrderedCollection(Collection)>detect:ifNone: 0xa5eae0:
a(n) OrderedCollection
0x7ffffff9c800 I OrderedCollection(Collection)>detect: 0xa5eae0: a(n)
OrderedCollection
0x7ffffff9c848 I OSPlatform class>determineActivePlatform 0x1f28ac8:
a(n) OSPlatform class
0x7ffffff9c888 I OSPlatform class>startUp: 0x1f28ac8: a(n) OSPlatform
class
0x7ffffff9c8c0 M ClassSessionHandler>startup: 0x17e6f18: a(n)
ClassSessionHandler
0x7ffffff9c900 M [] in WorkingSession>runStartup: 0xa5e000: a(n)
WorkingSession
0x7ffffff9c948 M [] in WorkingSession>runList:do: 0xa5e000: a(n)
WorkingSession
0x7ffffff9c978 M BlockClosure>on:do: 0xa5f2b0: a(n) BlockClosure
0x7ffffff9c9c0 M [] in WorkingSession>runList:do: 0xa5e000: a(n)
WorkingSession
0x7ffffff9ca08 M Array(SequenceableCollection)>do: 0xa5f3e0: a(n) Array
0x7ffffff9ca50 I WorkingSession>runList:do: 0xa5e000: a(n)
WorkingSession
0x7ffffff9caa0 I WorkingSession>runStartup: 0xa5e000: a(n)
WorkingSession
0x7ffffff9cae8 I WorkingSession>start: 0xa5e000: a(n) WorkingSession
0x7ffffff9cb40 I SessionManager>snapshot:andQuit: 0x358f268: a(n)
SessionManager
0x45e2ca0 s [] in SmalltalkImage>snapshot:andQuit:
0x45e36b0 s CurrentExecutionEnvironment class>activate:for:
0x45e4e48 s DefaultExecutionEnvironment(Ex
ecutionEnvironment)>beActiveDuring:
0x45e5170 s DefaultExecutionEnvironment class>beActiveDuring:
0x45e4f00 s SmalltalkImage>snapshot:andQuit:
0x45e5228 s SmalltalkImage>saveImageInFileNamed:
0x45e53c8 s SmalltalkImage>saveAs:
0x4184cc8 s UndefinedObject>DoIt
0x45c3bd8 s OpalCompiler>evaluate
0x4184de8 s DoItChunk>importFor:
0x4184ec0 s [] in CodeImporter>evaluate
0x45c3e00 s OrderedCollection>do:
0x4184ff8 s CodeImporter>evaluate
0x45c3eb8 s [] in STCommandLineHandler>installSourceFile:
0x41bc0b8 s BlockClosure>on:do:
0x4185150 s STCommandLineHandler>handleErrorsDuring:reference:
0x4185220 s STCommandLineHandler>installSourceFile:
0x45c3f70 s [] in STCommandLineHandler>installSourceFiles
0x45e3440 s OrderedCollection>do:
0x4185318 s [] in STCommandLineHandler>installSourceFiles
0x45c4028 s BlockClosure>ensure:
0x4185410 s STCommandLineHandler>installSourceFiles
0x45c40e0 s STCommandLineHandler>activate
0x45e34f8 s STCommandLineHandler class(CommandLineHandler
class)>activateWith:
0x45e4cd8 s [] in PharoCommandLineHandler(BasicC
ommandLineHandler)>activateSubCommand:
0x41bc170 s BlockClosure>on:do:
0x4185518 s PharoCommandLineHandler(BasicC
ommandLineHandler)>activateSubCommand:
0x41855f0 s PharoCommandLineHandler(BasicC
ommandLineHandler)>handleSubcommand
0x45c4198 s PharoCommandLineHandler(BasicC
ommandLineHandler)>handleArgument:
0x41856a8 s [] in PharoCommandLineHandler(BasicC
ommandLineHandler)>activate
0x41bc228 s BlockClosure>on:do:
0x41857a0 s PharoCommandLineHandler(BasicC
ommandLineHandler)>activate
0x45c4250 s PharoCommandLineHandler>activate
0x45e35b0 s PharoCommandLineHandler class(CommandLineHandler
class)>activateWith:
0x45e4d90 s [] in PharoCommandLineHandler class>activateWith:
0x45e50b8 s WorldState>runStepMethodsIn:
0x45e5310 s WorldMorph>runStepMethods
0x3847ff8 s WorldState>doOneCycleNowFor:
0x38480b0 s WorldState>doOneCycleFor:
0x3848168 s WorldMorph>doOneCycle
0x3848220 s WorldMorph class>doOneCycle
0x3591d60 s [] in MorphicUIManager>spawnNewProcess
0x3591ae0 s [] in BlockClosure>newProcess
processes at priority 10
Process 0xa5e138 priority 10
0xa60638 s [] in BlockClosure>newProcess
suspended processes
Process 0x38c7548 priority 80
0x38c58f0 s DelaySpinScheduler(DelayMicros
econdScheduler)>runTimerEventLoop
0x411d130 s [] in DelaySpinScheduler(DelayMicros
econdScheduler)>startTimerEventLoop
0x38c59c8 s [] in BlockClosure>newProcess
Process 0xa5e0f0 priority 60
0x7ffffffa0ad0 I SmalltalkImage>lowSpaceWatcher 0x19b62b8: a(n)
SmalltalkImage
0x7ffffffa0b10 I [] in SmalltalkImage>installLowSpaceWatcher 0x19b62b8:
a(n) SmalltalkImage
0x7ffffffa0b50 I [] in BlockClosure>newProcess 0xa60060: a(n)
BlockClosure
Process 0xa5e180 priority 60
0x7ffffffa2a78 I InputEventFetcher>waitForInput 0x1d0f310: a(n)
InputEventFetcher
0x7ffffffa2ad0 I InputEventFetcher>eventLoop 0x1d0f310: a(n)
InputEventFetcher
0x7ffffffa2b10 I [] in InputEventFetcher>installEventLoop 0x1d0f310:
a(n) InputEventFetcher
0x7ffffffa2b50 I [] in BlockClosure>newProcess 0xa60258: a(n)
BlockClosure
On Fri, Mar 23, 2018 at 11:54 AM, Javier Pimás <[email protected]>
wrote:
> Hi Eliot, the crash.dmp shows what I put in the first mail, gdb shows some
> more info:
>
> #0 __GI___libc_free (mem=0x7f15fc1d15d0) at malloc.c:2965
> #1 0x00000000004c745b in primitiveFFIFree () at
> /home/travis/build/OpenSmalltalk/opensmalltalk-vm/src/plugin
> s/SqueakFFIPrims/X64SysVFFIPlugin.c:6352
> #2 0x0000000000457f64 in primitiveExternalCall () at
> /home/travis/build/OpenSmalltalk/opensmalltalk-vm/spur64src/
> vm/gcc3x-cointerp.c:75751
> #3 0x00000000004595cb in interpretMethodFromMachineCode () at
> /home/travis/build/OpenSmalltalk/opensmalltalk-vm/spur64src/
> vm/gcc3x-cointerp.c:18524
> #4 0x000000000045bc69 in ceSendsupertonumArgs (selector=<optimized out>,
> superNormalBar=0, rcvr=<optimized out>, numArgs=0)
> at /home/travis/build/OpenSmalltalk/opensmalltalk-vm/spur64src/
> vm/gcc3x-cointerp.c:16602
> #5 0x00000000009000bb in ?? ()
> #6 0x00007fffffffdbc0 in ?? ()
> #7 0x000000000045ce56 in interpret () at /home/travis/build/OpenSmallta
> lk/opensmalltalk-vm/spur64src/vm/gcc3x-cointerp.c:2731
> #8 0x00000000009ccf7f in ?? ()
> #9 0x00000000045e39c8 in ?? ()
> #10 0x00000000045e39c8 in ?? ()
> ...
>
> As it is just loading, I think that it is trying to free some memory that
> was allocated before the image was saved. Looks like there is an external
> address that should have been niled but for some reason wasn't.
>
> On Fri, Mar 23, 2018 at 11:43 AM, Eliot Miranda <[email protected]>
> wrote:
>
>> Hi Javier,
>>
>> what does the crash.dmp file say? Or what does a gdb stacktrace say?
>>
>> _,,,^..^,,,_ (phone)
>>
>> On Mar 23, 2018, at 7:18 AM, Javier Pimás <[email protected]>
>> wrote:
>>
>> no luck with this one :(
>>
>> On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[email protected]>
>> wrote:
>>
>>> Hi Javier,
>>>
>>> On 23 March 2018 at 04:54, Javier Pimás <[email protected]>
>>> wrote:
>>> > Hi folks, I take a fresh Pharo6.1 (spur64), load a git repository and
>>> save
>>> > the image. When reopening I get a segmentation fault. OS is ubuntu
>>> 17.04/64
>>> > bits. I just cannot make it work, tried with all the vms I could
>>> (vmI61,
>>> > vmT61, vmLatest70, vmTLatest70). I suspect it is related to using git
>>> but
>>> > I'm not even sure.
>>> >
>>> > Below I put the involved code, crash dump at the end (seems to be the
>>> same
>>> > with any vm). btw, the vmILatest70 script does not seem to work (curl
>>> > https://get.pharo.org/64/vmILatest70 | bash).
>>> >
>>> > Any ideas?
>>>
>>> I'm using the following VM on Ubuntu 16.04 without any issues:
>>>
>>> http://files.pharo.org/vm/pharo-spur64/linux/pharo-linux-x86
>>> _64threaded-201803160215-43a2f5c.zip
>>>
>>>
>>> HTH,
>>> Alistair
>>>
>>>
>>
>>
>> --
>> Javier Pimás
>> Ciudad de Buenos Aires
>>
>>
>
>
> --
> Javier Pimás
> Ciudad de Buenos Aires
>
--
Javier Pimás
Ciudad de Buenos Aires