Cog crashing when installing Cryptography

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

Cog crashing when installing Cryptography

CdAB63
 
Hello,

When installing from Monticello everything go OK until "initializing..." & then a seg fault happens. OS: Fedora 13, libuuid-2.17.2-6.fc13.i686 & libuuid-devel-2.17.2-6.fc13.i686

[casimiro@localhost cog.work]$ /opt/cog/squeak squeak.image

Segmentation fault



Smalltalk stack dump:
0xbfcc1428 I UUID>initialize 2039877212: a(n) UUID
0xbfcc1440 M UUID class(Behavior)>new: 2009777744: a(n) UUID class
0xbfcc1464 I UUID class>new 2009777744: a(n) UUID class
0xbfcc1484 I SmalltalkImageInstanceID class>instanceID 2031947652: a(n) SmalltalkImageInstanceID class
0xbfcc14a4 I SmalltalkImageInstanceID class>startUp 2031947652: a(n) SmalltalkImageInstanceID class
0xbfcc14c4 I SmalltalkImageInstanceID class>initialize 2031947652: a(n) SmalltalkImageInstanceID class
0xbfcc14dc M MCMethodDefinition>postload 2031532728: a(n) MCMethodDefinition
0xbfcc14f4 M MCMethodDefinition(MCDefinition)>postloadOver: 2031532728: a(n) MCMethodDefinition
0xbfcc1510 M [] in MCPackageLoader>basicLoad 2031738704: a(n) MCPackageLoader
0xbfcc1548 M [] in OrderedCollection(Collection)>do:displayingProgress:every: 2031739124: a(n) OrderedCollection
0xbfcc1568 M OrderedCollection>do: 2031739124: a(n) OrderedCollection
0xbfcc1598 M [] in OrderedCollection(Collection)>do:displayingProgress:every: 2031739124: a(n) OrderedCollection
0xbfcc15bc M [] in ProgressInitiationException>defaultMorphicAction 2038412300: a(n) ProgressInitiationException
0xbfcc15d8 M BlockClosure>on:do: 2038413028: a(n) BlockClosure
0xbfcb7e3c M [] in ProgressInitiationException>defaultMorphicAction 2038412300: a(n) ProgressInitiationException
0xbfcb7e5c M BlockClosure>ensure: 2038412884: a(n) BlockClosure
0xbfcb7e80 M ProgressInitiationException>defaultMorphicAction 2038412300: a(n) ProgressInitiationException
0xbfcb7e98 M ProgressInitiationException>defaultAction 2038412300: a(n) ProgressInitiationException
0xbfcb7eb4 M UndefinedObject>handleSignal: 2004160516: a(n) UndefinedObject
0xbfcb7ed4 M MethodContext(ContextPart)>handleSignal: 2031738956: a(n) MethodContext
0xbfcb7ef4 M MethodContext(ContextPart)>handleSignal: 2031765780: a(n) MethodContext
0xbfcb7f10 M ProgressInitiationException(Exception)>signal 2038412300: a(n) ProgressInitiationException
0xbfcb7f28 M ProgressInitiationException>display:at:from:to:during: 2038412300: a(n) ProgressInitiationException
0xbfcb7f54 M ProgressInitiationException class>display:at:from:to:during: 2010792396: a(n) ProgressInitiationException class
0xbfcb7f80 M ByteString(String)>displayProgressAt:from:to:during: 2013083456: a(n) ByteString
0xbfcb7fb4 M OrderedCollection(Collection)>do:displayingProgress:every: 2031739124: a(n) OrderedCollection
0xbfcb7fd8 M OrderedCollection(Collection)>do:displayingProgress: 2031739124: a(n) OrderedCollection
0xbfcb7ffc M [] in MCPackageLoader>basicLoad 2031738704: a(n) MCPackageLoader
0xbfcb8018 M BlockClosure>on:do: 2031765648: a(n) BlockClosure
0xbfcb8044 I [] in MCPackageLoader>basicLoad 2031738704: a(n) MCPackageLoader
0xbfcb8064 M BlockClosure>ensure: 2031765512: a(n) BlockClosure
0xbfcb808c I MCPackageLoader>basicLoad 2031738704: a(n) MCPackageLoader
0xbfcb80ac I [] in MCPackageLoader>loadWithNameLike: 2031738704: a(n) MCPackageLoader
0xbfcb80d0 I [] in MCPackageLoader>useChangeSetNamed:during: 2031738704: a(n) MCPackageLoader
0xbfcb80f0 M BlockClosure>ensure: 2031765304: a(n) BlockClosure
0xbfcb8120 I MCPackageLoader>useChangeSetNamed:during: 2031738704: a(n) MCPackageLoader
0xbfcb8148 I MCPackageLoader>useNewChangeSetNamedLike:during: 2031738704: a(n) MCPackageLoader
0xbfcb8170 I MCPackageLoader>loadWithNameLike: 2031738704: a(n) MCPackageLoader
0xbfcb8198 I MCVersionLoader>load 2031738628: a(n) MCVersionLoader
0xbfcb81b8 I MCVersionLoader class>loadVersion: 2011151236: a(n) MCVersionLoader class
0xbfcb81dc I MCVersion>load 2031738172: a(n) MCVersion
0xbfcb81fc I [] in MCFileRepositoryInspector(MCVersionInspector)>load 2030878628: a(n) MCFileRepositoryInspector
0xbfcb821c M BlockClosure>ensure: 2031738492: a(n) BlockClosure
0xbfcb8244 I CursorWithMask(Cursor)>showWhile: 2007183192: a(n) CursorWithMask
0xbfcb8268 I MCFileRepositoryInspector(MCVersionInspector)>load 2030878628: a(n) MCFileRepositoryInspector
0xbfcb8280 M MCFileRepositoryInspector>load 2030878628: a(n) MCFileRepositoryInspector
0xbfcb82a0 I PluggableButtonMorphPlus(PluggableButtonMorph)>performAction 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb82c0 I PluggableButtonMorphPlus>performAction 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb82dc M [] in PluggableButtonMorphPlus(PluggableButtonMorph)>mouseUp: 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb8300 M Array(SequenceableCollection)>do: 2031219412: a(n) Array
0xbfcb8324 I PluggableButtonMorphPlus(PluggableButtonMorph)>mouseUp: 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb8348 I PluggableButtonMorphPlus>mouseUp: 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb836c I PluggableButtonMorphPlus(Morph)>handleMouseUp: 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb8388 M MouseButtonEvent>sentTo: 2031220332: a(n) MouseButtonEvent
0xbfcb83a4 M PluggableButtonMorphPlus(Morph)>handleEvent: 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb83c0 M PluggableButtonMorphPlus(Morph)>handleFocusEvent: 2030929912: a(n) PluggableButtonMorphPlus
0xbfcb83e8 M [] in HandMorph>sendFocusEvent:to:clear: 2020519028: a(n) HandMorph
0xbfcb8404 M [] in PasteUpMorph>becomeActiveDuring: 2020518544: a(n) PasteUpMorph
0xbfcb8420 M BlockClosure>on:do: 2031220276: a(n) BlockClosure
0xbfcb844c M PasteUpMorph>becomeActiveDuring: 2020518544: a(n) PasteUpMorph
0xbfcb8470 M HandMorph>sendFocusEvent:to:clear: 2020519028: a(n) HandMorph
0xbfcb8498 M HandMorph>sendEvent:focus:clear: 2020519028: a(n) HandMorph
0xbfcb84bc M HandMorph>sendMouseEvent: 2020519028: a(n) HandMorph
0xbfcb84e0 M HandMorph>handleEvent: 2020519028: a(n) HandMorph
0xbfcb850c M HandMorph>processEvents 2020519028: a(n) HandMorph
0xbfcb8528 M [] in WorldState>doOneCycleNowFor: 2020518768: a(n) WorldState
0xbfcb854c M Array(SequenceableCollection)>do: 2020519140: a(n) Array
0xbfcb8568 M WorldState>handsDo: 2020518768: a(n) WorldState
0xbfcb8588 M WorldState>doOneCycleNowFor: 2020518768: a(n) WorldState
0xbfcb85a4 M WorldState>doOneCycleFor: 2020518768: a(n) WorldState
0xbfcb85c0 M PasteUpMorph>doOneCycle 2020518544: a(n) PasteUpMorph
0xbfcb85e0 I [] in Project class>spawnNewProcess 2014823304: a(n) Project class
2021953880 s [] in BlockClosure>newProcess

Most recent primitives
@
@
basicNew
@
@
@
@
perform:with:
@
@
perform:with:
@
basicNew
@
basicNew
basicNew
basicAt:
basicAt:
bitShiftMagnitude:
basicAt:
bitOr:
digitCompare:
bitShiftMagnitude:
perform:with:
basicNew
perform:with:
fractionPart
truncated
perform:with:
@
@
@
@
@
@
basicNew
@
@
basicNew
@
@
@
basicNew
perform:with:
truncated
@
@
@
@
@
basicNew
@
@
basicNew
@
@
basicNew
@
@
basicNew
@
@
@
perform:with:
@
perform:with:
@
@
perform:with:
@
basicNew
@
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
basicNew
basicNew
basicNew
perform:with:
basicNew
basicNew
basicNew
perform:with:
fractionPart
truncated
@
@
perform:with:
@
@
perform:with:
@
basicNew
@
shallowCopy
new
species
species
@
@
@
@
@
basicNew
new:
at:put:
@
@
basicNew
@
@
new:
at:put:
at:put:
at:put:
at:put:
species
new:
@
at:put:
@
at:put:
@
at:put:
@
at:put:
@
@
@
@
@
@
basicNew
@
perform:with:
@
@
perform:with:
@
basicNew
@
basicNew
@
perform:with:
@
@
perform:with:
@

@
@
perform:with:
@
@
perform:with:
@
basicNew
@
@
perform:with:
@
@
perform:with:
@
basicNew
@
shallowCopy
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
basicNew
basicNew
basicNew
perform:with:
basicNew
basicNew
basicNew
@
@
@
@
@
@
basicNew
@
@
basicNew
@
@
@
basicNew
perform:with:
truncated
@
@
@
@
@
basicNew
@
@
basicNew
@
@
basicNew
@
@
basicNew
@
@
@
basicNew
basicNew
basicNew
perform:with:
basicNew
perform:with:
basicNew
basicNew
basicNew
@
@
@
@
@
@
basicNew
@
@
basicNew
@
@
@
basicNew
perform:with:
truncated
@
@
@
@
@
signal
basicNew:
primMakeUUID
Abortado (imagem do núcleo gravada)


signature.asc (269 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cog crashing when installing Cryptography

David T. Lewis
 
On Sun, Aug 15, 2010 at 11:21:07PM -0300, Casimiro de Almeida Barreto wrote:

>  
>  Hello,
>
> When installing from Monticello everything go OK until "initializing..."
> & then a seg fault happens. OS: Fedora 13, libuuid-2.17.2-6.fc13.i686 &
> libuuid-devel-2.17.2-6.fc13.i686
>
> [casimiro@localhost cog.work]$ /opt/cog/squeak squeak.image
>
> Segmentation fault
>
>
>
> Smalltalk stack dump:
> 0xbfcc1428 I UUID>initialize 2039877212: a(n) UUID
> 0xbfcc1440 M UUID class(Behavior)>new: 2009777744: a(n) UUID class
> 0xbfcc1464 I UUID class>new 2009777744: a(n) UUID class
> 0xbfcc1484 I SmalltalkImageInstanceID class>instanceID 2031947652: a(n)

This sounds like the old UUID bug:

 Mantis 7358: UUID>>initialize may crash VM for some images
 http://bugs.squeak.org/view.php?id=7358

The problem affects some Linux platforms. The apparent fix is to build
the plugin internally.

Dave

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: [Vm-dev] Cog crashing when installing Cryptography

Levente Uzonyi-2
 
On Mon, 16 Aug 2010, David T. Lewis wrote:

> On Sun, Aug 15, 2010 at 11:21:07PM -0300, Casimiro de Almeida Barreto wrote:
>>
>>  Hello,
>>
>> When installing from Monticello everything go OK until "initializing..."
>> & then a seg fault happens. OS: Fedora 13, libuuid-2.17.2-6.fc13.i686 &
>> libuuid-devel-2.17.2-6.fc13.i686
>>
>> [casimiro@localhost cog.work]$ /opt/cog/squeak squeak.image
>>
>> Segmentation fault
>>
>>
>>
>> Smalltalk stack dump:
>> 0xbfcc1428 I UUID>initialize 2039877212: a(n) UUID
>> 0xbfcc1440 M UUID class(Behavior)>new: 2009777744: a(n) UUID class
>> 0xbfcc1464 I UUID class>new 2009777744: a(n) UUID class
>> 0xbfcc1484 I SmalltalkImageInstanceID class>instanceID 2031947652: a(n)
>
> This sounds like the old UUID bug:
>
> Mantis 7358: UUID>>initialize may crash VM for some images
> http://bugs.squeak.org/view.php?id=7358
>
> The problem affects some Linux platforms. The apparent fix is to build
> the plugin internally.

That doesn't really solve the problem. I couldn't use the official release
on a machine, because the UUID plugin crashed. Since it was built as an
internal plugin, I couldn't get rid of it, so I had to rebuild the VM.


Levente

>
> Dave
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: [Vm-dev] Cog crashing when installing Cryptography

David T. Lewis
 
On Mon, Aug 16, 2010 at 02:13:20PM +0200, Levente Uzonyi wrote:

>
> On Mon, 16 Aug 2010, David T. Lewis wrote:
>
> >On Sun, Aug 15, 2010 at 11:21:07PM -0300, Casimiro de Almeida Barreto
> >wrote:
> >>
> >> Hello,
> >>
> >>When installing from Monticello everything go OK until "initializing..."
> >>& then a seg fault happens. OS: Fedora 13, libuuid-2.17.2-6.fc13.i686 &
> >>libuuid-devel-2.17.2-6.fc13.i686
> >>
> >>[casimiro@localhost cog.work]$ /opt/cog/squeak squeak.image
> >>
> >>Segmentation fault
> >>
> >>
> >>
> >>Smalltalk stack dump:
> >>0xbfcc1428 I UUID>initialize 2039877212: a(n) UUID
> >>0xbfcc1440 M UUID class(Behavior)>new: 2009777744: a(n) UUID class
> >>0xbfcc1464 I UUID class>new 2009777744: a(n) UUID class
> >>0xbfcc1484 I SmalltalkImageInstanceID class>instanceID 2031947652: a(n)
> >
> >This sounds like the old UUID bug:
> >
> >Mantis 7358: UUID>>initialize may crash VM for some images
> >http://bugs.squeak.org/view.php?id=7358
> >
> >The problem affects some Linux platforms. The apparent fix is to build
> >the plugin internally.
>
> That doesn't really solve the problem. I couldn't use the official release
> on a machine, because the UUID plugin crashed. Since it was built as an
> internal plugin, I couldn't get rid of it, so I had to rebuild the VM.

I think that we had managed to convince ourselves that building the plugin
internally makes the problem go away. Apparently that is not the case here.

Just to be clear, when you rebuilt the VM to eliminate the UUID problem,
did you build it with no UUIDPlugin at all, or are you saying that recompiling
on your own machine was sufficient to correct the problem?

Thanks,
Dave

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: [Vm-dev] Cog crashing when installing Cryptography

CdAB63
 
Em 16-08-2010 09:53, David T. Lewis escreveu:
 
On Mon, Aug 16, 2010 at 02:13:20PM +0200, Levente Uzonyi wrote:
On Mon, 16 Aug 2010, David T. Lewis wrote:

On Sun, Aug 15, 2010 at 11:21:07PM -0300, Casimiro de Almeida Barreto 
wrote:
Hello,

When installing from Monticello everything go OK until "initializing..."
& then a seg fault happens. OS: Fedora 13, libuuid-2.17.2-6.fc13.i686 &
libuuid-devel-2.17.2-6.fc13.i686

[casimiro@localhost cog.work]$ /opt/cog/squeak squeak.image

Segmentation fault



Smalltalk stack dump:
0xbfcc1428 I UUID>initialize 2039877212: a(n) UUID
0xbfcc1440 M UUID class(Behavior)>new: 2009777744: a(n) UUID class
0xbfcc1464 I UUID class>new 2009777744: a(n) UUID class
0xbfcc1484 I SmalltalkImageInstanceID class>instanceID 2031947652: a(n)
This sounds like the old UUID bug:

Mantis 7358: UUID>>initialize may crash VM for some images
http://bugs.squeak.org/view.php?id=7358

The problem affects some Linux platforms. The apparent fix is to build
the plugin internally.
That doesn't really solve the problem. I couldn't use the official release 
on a machine, because the UUID plugin crashed. Since it was built as an
internal plugin, I couldn't get rid of it, so I had to rebuild the VM.
I think that we had managed to convince ourselves that building the plugin
internally makes the problem go away. Apparently that is not the case here.

Just to be clear, when you rebuilt the VM to eliminate the UUID problem,
did you build it with no UUIDPlugin at all, or are you saying that recompiling
on your own machine was sufficient to correct the problem?

Thanks,
Dave


Building UUIDPlugin internally allows to install Cryptography. Just 2 things: I had to include the "-luuid" by hand when compiling:

gcc -g -O3 -march=core2 -mtune=core2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -msse -DLSB_FIRST=1 -o squeak disabledPlugins.o version.o -Wl,--export-dynamic  vm/vm.a ADPCMCodecPlugin/ADPCMCodecPlugin.a AsynchFilePlugin/AsynchFilePlugin.a B2DPlugin/B2DPlugin.a B3DAcceleratorPlugin/B3DAcceleratorPlugin.a BitBltPlugin/BitBltPlugin.a BMPReadWriterPlugin/BMPReadWriterPlugin.a CroquetPlugin/CroquetPlugin.a ZipPlugin/ZipPlugin.a DropPlugin/DropPlugin.a DSAPrims/DSAPrims.a FFTPlugin/FFTPlugin.a FileCopyPlugin/FileCopyPlugin.a FilePlugin/FilePlugin.a FloatArrayPlugin/FloatArrayPlugin.a FloatMathPlugin/FloatMathPlugin.a IA32ABI/IA32ABI.a JoystickTabletPlugin/JoystickTabletPlugin.a JPEGReaderPlugin/JPEGReaderPlugin.a JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.a Klatt/Klatt.a LargeIntegers/LargeIntegers.a Matrix2x3Plugin/Matrix2x3Plugin.a MIDIPlugin/MIDIPlugin.a MiscPrimitivePlugin/MiscPrimitivePlugin.a Mpeg3Plugin/Mpeg3Plugin.a RePlugin/RePlugin.a SecurityPlugin/SecurityPlugin.a SerialPlugin/SerialPlugin.a SocketPlugin/SocketPlugin.a SoundCodecPrims/SoundCodecPrims.a SoundGenerationPlugin/SoundGenerationPlugin.a SoundPlugin/SoundPlugin.a StarSqueakPlugin/StarSqueakPlugin.a SurfacePlugin/SurfacePlugin.a UUIDPlugin/UUIDPlugin.a -lutil -ldl -lpthread -lm -lnsl -lGL -luuid -lpthread vm/vm.a -Wl,--rpath -Wl,/opt/cog/lib

Besides, I tried to compile the B3DAcceleratorPlugin to see if Cog detects GL capabilities of NVIDIA board. It didn't help a lot...

Next I'll be testing to see if UUIDPlugin as internal one does the trick (things work correctly).

Best regards,

Casimiro Barreto

signature.asc (269 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: [Vm-dev] Cog crashing when installing Cryptography

Levente Uzonyi-2
In reply to this post by David T. Lewis
 
On Mon, 16 Aug 2010, David T. Lewis wrote:

>
> On Mon, Aug 16, 2010 at 02:13:20PM +0200, Levente Uzonyi wrote:
>>
>> On Mon, 16 Aug 2010, David T. Lewis wrote:
>>
>>> On Sun, Aug 15, 2010 at 11:21:07PM -0300, Casimiro de Almeida Barreto
>>> wrote:
>>>>
>>>> Hello,
>>>>
>>>> When installing from Monticello everything go OK until "initializing..."
>>>> & then a seg fault happens. OS: Fedora 13, libuuid-2.17.2-6.fc13.i686 &
>>>> libuuid-devel-2.17.2-6.fc13.i686
>>>>
>>>> [casimiro@localhost cog.work]$ /opt/cog/squeak squeak.image
>>>>
>>>> Segmentation fault
>>>>
>>>>
>>>>
>>>> Smalltalk stack dump:
>>>> 0xbfcc1428 I UUID>initialize 2039877212: a(n) UUID
>>>> 0xbfcc1440 M UUID class(Behavior)>new: 2009777744: a(n) UUID class
>>>> 0xbfcc1464 I UUID class>new 2009777744: a(n) UUID class
>>>> 0xbfcc1484 I SmalltalkImageInstanceID class>instanceID 2031947652: a(n)
>>>
>>> This sounds like the old UUID bug:
>>>
>>> Mantis 7358: UUID>>initialize may crash VM for some images
>>> http://bugs.squeak.org/view.php?id=7358
>>>
>>> The problem affects some Linux platforms. The apparent fix is to build
>>> the plugin internally.
>>
>> That doesn't really solve the problem. I couldn't use the official release
>> on a machine, because the UUID plugin crashed. Since it was built as an
>> internal plugin, I couldn't get rid of it, so I had to rebuild the VM.
>
> I think that we had managed to convince ourselves that building the plugin
> internally makes the problem go away. Apparently that is not the case here.
>
> Just to be clear, when you rebuilt the VM to eliminate the UUID problem,
> did you build it with no UUIDPlugin at all, or are you saying that recompiling
> on your own machine was sufficient to correct the problem?

I built it with UUIDPlugin, though the VM doesn't load the plugin, because
the server doesn't have libuuid. But the VM doesn't crash, the primitive
fails as expected (because of the lack of libuuid).


Levente

>
> Thanks,
> Dave
>
>