pharo64+load code=broken image

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

pharo64+load code=broken image

melkyades
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?

---
cli 

/CogNOS/image (master)$ ../vms/vmI61/pharo-ui Pharo.image ../scripts/loadSqueakNOSImage.st 
/CogNOS/image (master)$ ../vms/vmI61/pharo-ui SqueakNOS.image

---
loadSqueaNOSImage.st

Author useAuthor: 'LoadSqueakNOS' during: [ 
Metacello new
        baseline: #SqueakNOS;
        repository: 'github://nopsys/CogNOS/Image-src';
        load ].

(Smalltalk saveAs: 'SqueakNOS') 
    ifFalse: [ Smalltalk snapshot: false andQuit: true ].

/CogNOS/image (master)$ ../vms/vmI61/pharo-ui Pharo.image ../scripts/loadSqueakNOSImage.st 
/CogNOS/image (master)$ ../vms/vmI61/pharo-ui SqueakNOS.image

-----
Segmentation fault Thu Mar 22 22:52:28 2018


/CogNOS/vms/vmI61/pharo-vm/lib/pharo/5.0-201708271955/pharo
Pharo VM version: 5.0-201708271955  Sun Aug 27 20:00:28 UTC 2017 gcc 4.6.3 [Production Spur 64-bit ITHB VM]
Built from: CoInterpreter VMMaker.oscog-eem.2265 uuid: 76b62109-629a-4c39-9641-67b53321df9a Aug 27 2017
With: StackToRegisterMappingCogit VMMaker.oscog-eem.2262 uuid: 8b531242-de02-48aa-b418-8d2dde0bec6c Aug 27 2017
Revision: VM: 201708271955 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Sun Aug 27 21:55:26 2017 +0200 $ Plugins: 201708271955 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
Build host: Linux testing-gce-643eb2a1-aa49-4136-af37-2965c12a9e8f 3.13.0-115-generic #162~precise1-Ubuntu SMP Fri Mar 24 16:47:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
plugin path: /CogNOS/vms/vmI61/pharo-vm/lib/pharo/5.0-201708271955 [default: /CogNOS/vms/vmI61/pharo-vm/lib/pharo/5.0-201708271955/]


C stack backtrace & registers:
rax 0xa6bdac40 rbx 0xa6bdaad0 rcx 0xa6bdacf8 rdx 0xa6bdab88
rdi 0xa6bda8a8 rsi 0xa6bda8a8 rbp 0xa6bdaa18 rsp 0xa6bdadb0
r8  0xa6bda2e8 r9  0xa6bda3a0 r10 0xa6bda458 r11 0xa6bda510
r12 0xa6bda5c8 r13 0xa6bda680 r14 0xa6bda738 r15 0xa6bda7f0
rip 0xa6bdae68
*[0x7ffea6bdae68]
/CogNOS/vms/vmI61/pharo-vm/lib/pharo/5.0-201708271955/pharo[0x41cd91]
/CogNOS/vms/vmI61/pharo-vm/lib/pharo/5.0-201708271955/pharo[0x41d11f]
/lib/x86_64-linux-gnu/libc.so.6(+0x357f0)[0x7efdaadb67f0]
/lib/x86_64-linux-gnu/libc.so.6(malloc_usable_size+0x12)[0x7efdaae08902]
/usr/lib/nvidia-384/libGL.so.1(+0xba159)[0x7efdaa38b159]
[0x7ffea6bd9116]


Smalltalk stack dump:
    0x7ffea6bea5e8 M ExternalAddress>finalize 0x64e4e90: a(n) ExternalAddress
    0x7ffea6bea620 M WeakFinalizerItem>finalizeValues 0x64e37d8: a(n) WeakFinalizerItem
    0x7ffea6bea658 M [] in WeakRegistry>finalizeValues 0x347fb18: a(n) WeakRegistry
    0x7ffea6bea688 M BlockClosure>on:do: 0x2b643c0: a(n) BlockClosure
    0x7ffea6bea6c8 M BlockClosure>on:fork: 0x2b643c0: a(n) BlockClosure
    0x7ffea6bea708 M [] in WeakRegistry>finalizeValues 0x347fb18: a(n) WeakRegistry
    0x7ffea6bea750 M OrderedCollection>do: 0x2b63b38: a(n) OrderedCollection
    0x7ffea6bea7a0 M WeakRegistry>finalizeValues 0x347fb18: a(n) WeakRegistry
    0x7ffea6bea7d8 M [] in WeakArray class>doOldFinalization 0x3498518: a(n) WeakArray class
    0x7ffea6bea808 M BlockClosure>on:do: 0x2b63a00: a(n) BlockClosure
    0x7ffea6bea848 M BlockClosure>on:fork: 0x2b63a00: a(n) BlockClosure
    0x7ffea6bea888 M [] in WeakArray class>doOldFinalization 0x3498518: a(n) WeakArray class
    0x7ffea6bea8d0 M WeakArray(SequenceableCollection)>do: 0x31fe7f0: a(n) WeakArray
    0x7ffea6bea908 M [] in WeakArray class>doOldFinalization 0x3498518: a(n) WeakArray class
    0x7ffea6bea948 M [] in Semaphore>critical: 0x6031ba0: a(n) Semaphore
    0x7ffea6bea988 M BlockClosure>ensure: 0x2b5e260: a(n) BlockClosure
    0x7ffea6bea9c8 M Semaphore>critical: 0x6031ba0: a(n) Semaphore
    0x7ffea6beaa10 I WeakArray class>doOldFinalization 0x3498518: a(n) WeakArray class
    0x7ffea6beaa60 I WeakArray class>finalizationProcess 0x3498518: a(n) WeakArray class
         0x649cb58 s [] in WeakArray class>restartFinalizationProcess
         0x6036d68 s [] in BlockClosure>newProcess

Most recent primitives
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
at:
stringHash:initialHash:
stringHash:initialHash:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
stringHash:initialHash:
replaceFrom:to:with:startingAt:
stringHash:initialHash:
replaceFrom:to:with:startingAt:
stringHash:initialHash:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
at:
stringHash:initialHash:
stringHash:initialHash:
stringHash:initialHash:
tempAt:
indexOfAscii:inString:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
findFirstInString:inSet:startingAt:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
findFirstInString:inSet:startingAt:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
stringHash:initialHash:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
stringHash:initialHash:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primGetPosition:
replaceFrom:to:with:startingAt:
shallowCopy
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
instVarAt:
class
**StackOverflow**
**StackOverflow**
indexOfAscii:inString:startingAt:
replaceFrom:to:with:startingAt:
**StackOverflow**
replaceFrom:to:with:startingAt:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
**StackOverflow**
stringHash:initialHash:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
instVarAt:
**StackOverflow**
indexOfAscii:inString:startingAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
**StackOverflow**
stringHash:initialHash:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
instVarAt:
replaceFrom:to:with:startingAt:
replaceFrom:to:with:startingAt:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
**StackOverflow**
stringHash:initialHash:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
primWrite:from:startingAt:count:
instVarAt:
**StackOverflow**
basicNew
\\
\\
replaceFrom:to:with:startingAt:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
**StackOverflow**
stringHash:initialHash:
findFirstInString:inSet:startingAt:
primWrite:from:startingAt:count:
primGetPosition:
**IncrementalGC**
wait
value
wait
value
at:
at:
basicAt:
at:
at:
expire
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
replaceFrom:to:with:startingAt:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
at:
notNil
notNil
replaceFrom:to:with:startingAt:
signal
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
primCloseNoError:
wait
primCloseNoError:
signal
wait
signal
wait
signal
wait
signal
wait
replaceFrom:to:with:startingAt:
signal
size
at:
free

stack page bytes 8192 available headroom 5576 minimum unused headroom 6032

(Segmentation fault)


--
Javier Pimás
Ciudad de Buenos Aires
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

alistairgrant
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

melkyades
no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

Eliot Miranda-2
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 <[hidden email]> wrote:

no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

melkyades
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/plugins/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/OpenSmalltalk/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 <[hidden email]> 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 <[hidden email]> wrote:

no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

melkyades
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(ExecutionEnvironment)>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(BasicCommandLineHandler)>activateSubCommand:
         0x41bc170 s BlockClosure>on:do:
         0x4185518 s PharoCommandLineHandler(BasicCommandLineHandler)>activateSubCommand:
         0x41855f0 s PharoCommandLineHandler(BasicCommandLineHandler)>handleSubcommand
         0x45c4198 s PharoCommandLineHandler(BasicCommandLineHandler)>handleArgument:
         0x41856a8 s [] in PharoCommandLineHandler(BasicCommandLineHandler)>activate
         0x41bc228 s BlockClosure>on:do:
         0x41857a0 s PharoCommandLineHandler(BasicCommandLineHandler)>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(DelayMicrosecondScheduler)>runTimerEventLoop
         0x411d130 s [] in DelaySpinScheduler(DelayMicrosecondScheduler)>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 <[hidden email]> 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/plugins/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/OpenSmalltalk/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 <[hidden email]> 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 <[hidden email]> wrote:

no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

melkyades
fixing the mnu makes the crash go away :). I still wonder if the crash is "expected" or shouldn't happen.

On Fri, Mar 23, 2018 at 11:59 AM, Javier Pimás <[hidden email]> wrote:
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(ExecutionEnvironment)>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(BasicCommandLineHandler)>activateSubCommand:
         0x41bc170 s BlockClosure>on:do:
         0x4185518 s PharoCommandLineHandler(BasicCommandLineHandler)>activateSubCommand:
         0x41855f0 s PharoCommandLineHandler(BasicCommandLineHandler)>handleSubcommand
         0x45c4198 s PharoCommandLineHandler(BasicCommandLineHandler)>handleArgument:
         0x41856a8 s [] in PharoCommandLineHandler(BasicCommandLineHandler)>activate
         0x41bc228 s BlockClosure>on:do:
         0x41857a0 s PharoCommandLineHandler(BasicCommandLineHandler)>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(DelayMicrosecondScheduler)>runTimerEventLoop
         0x411d130 s [] in DelaySpinScheduler(DelayMicrosecondScheduler)>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 <[hidden email]> 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/plugins/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/OpenSmalltalk/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 <[hidden email]> 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 <[hidden email]> wrote:

no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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



--
Javier Pimás
Ciudad de Buenos Aires
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

Eliot Miranda-2
In reply to this post by melkyades


On Fri, Mar 23, 2018 at 7:54 AM, Javier Pimás <[hidden email]> 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/plugins/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/OpenSmalltalk/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.

I can take a look at the image in the simulator and/or debugger and see if any stale pointers exist.  Put the image and changes somewhere where I can download them.
 

On Fri, Mar 23, 2018 at 11:43 AM, Eliot Miranda <[hidden email]> 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 <[hidden email]> wrote:

no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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



--
_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: pharo64+load code=broken image

melkyades


On Fri, Mar 23, 2018 at 11:17 PM, Eliot Miranda <[hidden email]> wrote:


On Fri, Mar 23, 2018 at 7:54 AM, Javier Pimás <[hidden email]> 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/plugins/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/OpenSmalltalk/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.

I can take a look at the image in the simulator and/or debugger and see if any stale pointers exist.  Put the image and changes somewhere where I can download them.
 

Thanks! I'll try to do something better instead: do it by myself asking questions if needed, it might take some time before I start though.

Cheers,
Pocho


On Fri, Mar 23, 2018 at 11:43 AM, Eliot Miranda <[hidden email]> 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 <[hidden email]> wrote:

no luck with this one :(

On Fri, Mar 23, 2018 at 4:48 AM, Alistair Grant <[hidden email]> wrote:
Hi Javier,

On 23 March 2018 at 04:54, Javier Pimás <[hidden email]> 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



--
_,,,^..^,,,_
best, Eliot



--
Javier Pimás
Ciudad de Buenos Aires