I'm unable to run squeak

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

I'm unable to run squeak

Josef Hajas-2
Hello, I have IBM ThinkPad T42, Gentoo with Linux kernel
2.6.14-gentoo-r2, using gcc 3.3.6. I have tried binary version,
compile vm from sources (downloaded from
http://www.squeak.org/Download/ - it is version 3.7.7) and finaly also
install older version from portage. Always I get this:

$ squeak Squeak3.8-6665full.image

Segmentation fault

-1796312376 FileDirectory>directoryContentsFor:
-1796312480 FileDirectory>entries
-1796312572 FileDirectory>fileNames
-1796312948 FileDirectory>fileExists:
-1796314856 FileDirectory class>openSources:forImage:
-1796315684 FileDirectory class>openSources:forImage:
-1796315776 FileDirectory class>openSources:andChanges:forImage:
-1796317624 SmalltalkImage>openSourceFiles
-1796326280 FileDirectory class>startUp
-1796326436 Behavior>startUp:
-1798257836 [] in SystemDictionary>send:toClassesNamedIn:with:
-1798258060 OrderedCollection>do:
-1798258152 SystemDictionary>send:toClassesNamedIn:with:
-1798258244 SystemDictionary>processStartUpList:
-1798446004 SmalltalkImage>snapshot:andQuit:embedded:
-1798446096 SmalltalkImage>snapshot:andQuit:
-1798446188 TheWorldMenu>saveAndQuit
-1798446372 TheWorldMenu>doMenuItem:with:
-1798446464 [] in MenuItemMorph>invokeWithEvent:
-1798446556 BlockContext>ensure:
-1798446648 Cursor>showWhile:
-1798446868 MenuItemMorph>invokeWithEvent:
-1798446964 MenuItemMorph>mouseUp:
-1798447056 MenuItemMorph>handleMouseUp:
-1798447320 MouseButtonEvent>sentTo:
-1798447412 Morph>handleEvent:
-1798447504 MorphicEventDispatcher>dispatchDefault:with:
-1798447596 MorphicEventDispatcher>dispatchEvent:with:
-1798447688 Morph>processEvent:using:
-1798447780 MorphicEventDispatcher>dispatchDefault:with:
-1798447888 MorphicEventDispatcher>dispatchEvent:with:
-1798448020 Morph>processEvent:using:
-1798448112 Morph>processEvent:
-1798448204 MenuMorph>handleFocusEvent:
-1798448480 [] in HandMorph>sendFocusEvent:to:clear:
-1798448388 [] in PasteUpMorph>becomeActiveDuring:
-1798448572 BlockContext>on:do:
-1798448664 PasteUpMorph>becomeActiveDuring:
-1798448848 HandMorph>sendFocusEvent:to:clear:
-1798448940 HandMorph>sendEvent:focus:clear:
-1798449084 HandMorph>sendMouseEvent:
-1798449176 HandMorph>handleEvent:
-1798449448 HandMorph>processEvents
-1798449356 [] in WorldState>doOneCycleNowFor:
-1798449540 SequenceableCollection>do:
-1798449632 WorldState>handsDo:
-1798449724 WorldState>doOneCycleNowFor:
-1798449816 WorldState>doOneCycleFor:
-1798449908 PasteUpMorph>doOneCycle
-1798576280 [] in Project class>spawnNewProcess
-1798576188 [] in BlockContext>newProcess
Neúspěšně ukončen (SIGABRT)

Before segmentation fault for very short moment window is displayed.
I'm attaching strace. Any idea how to make seqak working on my
computer?

Thank you

Josef Hajas



squeak_Squeak3.8-6665full.strace.gz (11K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I'm unable to run squeak

Simon Kirk-4
Josef Hajas <jhajas <at> gmail.com> writes:

>
> Hello, I have IBM ThinkPad T42, Gentoo with Linux kernel
> 2.6.14-gentoo-r2, using gcc 3.3.6. I have tried binary version,
> compile vm from sources (downloaded from
> http://www.squeak.org/Download/ - it is version 3.7.7) and finaly also
> install older version from portage. Always I get this:
>
> $ squeak Squeak3.8-6665full.image
>
> Segmentation fault
>
> -1796312376 FileDirectory>directoryContentsFor:
[snip]

I don't know why you're having that problem - but there is an updated ebuild for
that version of the VM that went in yesterday. It's in the unstable branch, so
you'll need to put these lines into your /etc/portage/package.keyword file:

dev-lang/squeak ~x86
dev-lang/squeak-basicimage ~x86
dev-lang/squeak-fullimage ~x86

(you can choose whether to use basicimage or fullimage)

Then emerge squeak. Note that there's a problem with the current ebuild in there
where if you've got the "threads" USE flag enabled, the compile will break. This
has already been fixed by the developer though, and should be OK by tomorrow. In
the meantime, doing:

#USE="-threads" emerge squeak

Should get you a working squeak instance, hopefully without segfaults :) It
certainly works for - although I'm using a 2.6.x kernel version (which may be
your issue).

S




Reply | Threaded
Open this post in threaded view
|

Re: I'm unable to run squeak

Damien Cassou-3
In reply to this post by Josef Hajas-2
Josef Hajas a écrit :
> Hello, I have IBM ThinkPad T42, Gentoo with Linux kernel
> 2.6.14-gentoo-r2, using gcc 3.3.6. I have tried binary version,
> compile vm from sources (downloaded from
> http://www.squeak.org/Download/ - it is version 3.7.7) and finaly also
> install older version from portage. Always I get this:
>
> $ squeak Squeak3.8-6665full.image

You may want to try :

$ squeak -memory 200m Squeak3.8-6665full.image

or

$ squeak -mmap 200m Squeak3.8-6665full.image

--
Damien Cassou


Reply | Threaded
Open this post in threaded view
|

Re: I'm unable to run squeak

Josef Hajas-2
In reply to this post by Josef Hajas-2
> #USE="-threads" emerge squeak

Thank you, but new version of ebuild didn't help. I have tried play
with CFLAGS but I still get same segmentation fault.

> $ squeak -memory 200m Squeak3.8-6665full.image

Still same result. I have tried change how many memory to use but
seems it's not reason of my segmentation fault.

Thenks for advices

Josef Hajas

Reply | Threaded
Open this post in threaded view
|

Re: I'm unable to run squeak

Michael van der Gulik
In reply to this post by Josef Hajas-2
Josef Hajas wrote:

> Hello, I have IBM ThinkPad T42, Gentoo with Linux kernel
> 2.6.14-gentoo-r2, using gcc 3.3.6. I have tried binary version,
> compile vm from sources (downloaded from
> http://www.squeak.org/Download/ - it is version 3.7.7) and finaly also
> install older version from portage. Always I get this:
>
> $ squeak Squeak3.8-6665full.image
>
> Segmentation fault
>
> -1796312376 FileDirectory>directoryContentsFor:
> -1796312480 FileDirectory>entries
> -1796312572 FileDirectory>fileNames
> -1796312948 FileDirectory>fileExists:
> -1796314856 FileDirectory class>openSources:forImage:
> -1796315684 FileDirectory class>openSources:forImage:
> -1796315776 FileDirectory class>openSources:andChanges:forImage:
> -1796317624 SmalltalkImage>openSourceFiles
> -1796326280 FileDirectory class>startUp
> -1796326436 Behavior>startUp:
> -1798257836 [] in SystemDictionary>send:toClassesNamedIn:with:


> Before segmentation fault for very short moment window is displayed.
> I'm attaching strace. Any idea how to make seqak working on my
> computer?

Now, I'm not an expert Squeaker as such. Try:

- Making sure that Squeak isn't trying to load plugins from elsewhere
than where it is meant to load them. This is a bit tricky; there are a
few places it (iirc) looks automatically. Delete them all? Rename them?
You use Gentoo, so I assume you're smart enough to work out how. In my
experience, applications loading the wrong libraries crash.

- Do you have any "odd" files in the current working directory? Try
running squeak completely from a single directory (including plugins,
image and executable).

- Are you using a 64-bit build? I'm seeing stat64() in the strace, so it
seems so. Have you tried making a 32-bit build instead, or downloading
the 64-bit VM (google for it... I'm too lazy to find a link)?

(wow... squeak looks *really* hard to find its plugins!)

The strace also has a stack trace at the end which appears to be trying
to make a snapshot? This I don't understand - it should only happen if
you save and quit the image.

I also see that neither the FilePlugin or the SecurityPlugin are found.
Do you have your plugins configured correctly?

Otherwise I'm afraid you'll have to wait until somebody who knows stuff
can help you.

Mikevdg.


Reply | Threaded
Open this post in threaded view
|

Re: I'm unable to run squeak

Josef Hajas-2
In reply to this post by Josef Hajas-2
>- Making sure that Squeak isn't trying to load plugins from elsewhere
>than where it is meant to load them. This is a bit tricky; there are a
>few places it (iirc) looks automatically. Delete them all? Rename them?

nax@naxbook ~ $ squeak -version
3.7-7 #1 Pá bře 10 16:40:32 CET 2006 gcc 3.3.5-20050130
Squeak3.7 of '4 September 2004' [latest update: #5989]
Linux naxbook 2.6.14-gentoo-r2 #1 PREEMPT Wed Nov 30 19:02:18 CET 2005
i686 Intel(R) Pentium(R) M processor 1.70GHz GenuineIntel GNU/Linux
default plugin location: /usr//lib/squeak/3.7-7/*.so
nax@naxbook ~ $ ls /usr//lib/squeak/3.7-7/*.so
/usr//lib/squeak/3.7-7/npsqueak.so*
nax@naxbook ~ $

From strace I can see which directories are searched for plugins (I
can't rename /lib or /usr/lib, but there isn't any file loaded
according to).

>- Do you have any "odd" files in the current working directory? Try
>running squeak completely from a single directory (including plugins,
>image and executable).

No, I have tried run it from empty directory with single image and it
fail in same way.

>- Are you using a 64-bit build? I'm seeing stat64() in the strace, so it
>seems so. Have you tried making a 32-bit build instead, or downloading
>the 64-bit VM (google for it... I'm too lazy to find a link)?

No, I have ThinkPad T42 with mobile centrino (Pentium M) which is
32bit architecture. Even if I have some wrong configuration and
building 64bit VM why then fail this binary distribution
http://ftp.squeak.org/current_stable/unix-linux/Squeak-3.8-6665-i686-pc-linux-gnu-3.7.7.tar.gz

>The strace also has a stack trace at the end which appears to be trying
>to make a snapshot? This I don't understand - it should only happen if
>you save and quit the image.

I don't have an idea what does this mean, but Squeak never ever
successfully run on this laptop. I have installed VisualWorks, but
Squeak seems to be more confortable for me. That's why I really want
to run Sqeuak and learn smalltalk in this environment.

>I also see that neither the FilePlugin or the SecurityPlugin are found.
>Do you have your plugins configured correctly?

I don't thing that I have any plugins installed except that comes with
ebuild or standard installation (any FilePlugin or SecurityPlugin it
didn't installed).

Today I have noticed that better mailing list for my problem will be
wm-dev so thanks for all advices on this list.

Regards

Josef Hajas