Exupery VM crashed with SegFault

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

Exupery VM crashed with SegFault

Damien Cassou
Hi,

try to evaluate the following code in any Pharo image using the
Exupery Unix VM and you will get a Segmentation Fault.

Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
pointSize: 10).

$ squeak -version
3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
Pharo0.1 of 16 May 2008 [latest update: #10074]
Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
default plugin location: /usr/local/lib/squeak/3.10-3/*.so

Segmentation fault

2025578964 UUID>initialize
2025578848 Behavior>new:
2025578756 >new
2025578664 >setTimeStamp
2025578480 >updateInstances
2025560892 >setMenuFontTo:
[...]

The code which crashes:

UUID>>initialize
  self primMakeUUID.

UUID>>primMakeUUID
        <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'>
        UUIDGenerator default generateBytes: self forVersion: 4.

If I remove the call to the primitive, things works and the font is changed.

--
Damien Cassou
http://damiencassou.seasidehosting.st

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Bryce Kampjes
On Mon, 2009-03-30 at 16:32 +0200, Damien Cassou wrote:
> Hi,
>
> try to evaluate the following code in any Pharo image using the
> Exupery Unix VM and you will get a Segmentation Fault.
>
> Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
> pointSize: 10).

That works here using both my rather old Pharo development image and
pharo0.1-10259dev09.03.3.zip.

Any chance you could run it under gdb with a breakpoint on error to get
the C backtrace?

Looking at the source to the primitive it's very simple, I'm not sure
how it could fail so long as the UUID generated is 16 bytes long.

Bryce



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Mariano Martinez Peck
In reply to this post by Damien Cassou


On Mon, Mar 30, 2009 at 11:32 AM, Damien Cassou <[hidden email]> wrote:
Hi,

try to evaluate the following code in any Pharo image using the
Exupery Unix VM and you will get a Segmentation Fault.

Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
pointSize: 10).

$ squeak -version
3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
Pharo0.1 of 16 May 2008 [latest update: #10074]
Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
default plugin location: /usr/local/lib/squeak/3.10-3/*.so

Segmentation fault

2025578964 UUID>initialize
2025578848 Behavior>new:
2025578756 >new
2025578664 >setTimeStamp
2025578480 >updateInstances
2025560892 >setMenuFontTo:
[...]

The code which crashes:

UUID>>initialize
       self primMakeUUID.

UUID>>primMakeUUID
       <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'>
       UUIDGenerator default generateBytes: self forVersion: 4.

If I remove the call to the primitive, things works and the font is changed.


It works for me on Ubuntu hardy, exupery and pharo 262.

Cheers,

Mariano
 

--
Damien Cassou
http://damiencassou.seasidehosting.st

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Alain Plantec-4
works here also on ubuntu 8.10:

squeak -version
3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
Pharo0.1 of 16 May 2008 [latest update: #10074]
Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
default plugin location: /usr/local/lib/squeak/3.10-3/*.so

Cheers
Alain

Mariano Martinez Peck a écrit :

>
>
> On Mon, Mar 30, 2009 at 11:32 AM, Damien Cassou
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi,
>
>     try to evaluate the following code in any Pharo image using the
>     Exupery Unix VM and you will get a Segmentation Fault.
>
>     Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
>     pointSize: 10).
>
>     $ squeak -version
>     3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
>     Pharo0.1 of 16 May 2008 [latest update: #10074]
>     Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
>     Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
>     default plugin location: /usr/local/lib/squeak/3.10-3/*.so
>
>     Segmentation fault
>
>     2025578964 UUID>initialize
>     2025578848 Behavior>new:
>     2025578756 >new
>     2025578664 >setTimeStamp
>     2025578480 >updateInstances
>     2025560892 >setMenuFontTo:
>     [...]
>
>     The code which crashes:
>
>     UUID>>initialize
>            self primMakeUUID.
>
>     UUID>>primMakeUUID
>            <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'>
>            UUIDGenerator default generateBytes: self forVersion: 4.
>
>     If I remove the call to the primitive, things works and the font
>     is changed.
>
>
>
> It works for me on Ubuntu hardy, exupery and pharo 262.
>
> Cheers,
>
> Mariano
>  
>
>
>     --
>     Damien Cassou
>     http://damiencassou.seasidehosting.st
>
>     _______________________________________________
>     Pharo-project mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Даниил Баскаков-2
In reply to this post by Damien Cassou
Hi,

I'm getting this error on Linux Mint 7 (Ubuntu 9.04).
Calling of:

UUID>>new
        ^(self new: 16)

crashes Pharo on:

UUID>>initialize
        self primMakeUUID.

I've changed to:

UUID>>new
        ^(self new: 17)

and it stops crashing.


2009/3/30 Damien Cassou <[hidden email]>:

> Hi,
>
> try to evaluate the following code in any Pharo image using the
> Exupery Unix VM and you will get a Segmentation Fault.
>
> Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
> pointSize: 10).
>
> $ squeak -version
> 3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
> Pharo0.1 of 16 May 2008 [latest update: #10074]
> Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
> Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
> default plugin location: /usr/local/lib/squeak/3.10-3/*.so
>
> Segmentation fault
>
> 2025578964 UUID>initialize
> 2025578848 Behavior>new:
> 2025578756 >new
> 2025578664 >setTimeStamp
> 2025578480 >updateInstances
> 2025560892 >setMenuFontTo:
> [...]
>
> The code which crashes:
>
> UUID>>initialize
>        self primMakeUUID.
>
> UUID>>primMakeUUID
>        <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'>
>        UUIDGenerator default generateBytes: self forVersion: 4.
>
> If I remove the call to the primitive, things works and the font is changed.
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Damien Cassou
This bug appeared before for many of us Ubuntu 9.04 users. The
solution I use is to rename the directory UUIDPlugin to
UUIDPlugin.bak.


---------- Forwarded message ----------
From: Baskakov Daniel <[hidden email]>
Date: Fri, Jun 5, 2009 at 9:11 AM
Subject: Re: [Pharo-project] Exupery VM crashed with SegFault
To: [hidden email]


Hi,

I'm getting this error on Linux Mint 7 (Ubuntu 9.04).
Calling of:

UUID>>new
       ^(self new: 16)

crashes Pharo on:

UUID>>initialize
       self primMakeUUID.

I've changed to:

UUID>>new
       ^(self new: 17)

and it stops crashing.


2009/3/30 Damien Cassou <[hidden email]>:

> Hi,
>
> try to evaluate the following code in any Pharo image using the
> Exupery Unix VM and you will get a Segmentation Fault.
>
> Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
> pointSize: 10).
>
> $ squeak -version
> 3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
> Pharo0.1 of 16 May 2008 [latest update: #10074]
> Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
> Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
> default plugin location: /usr/local/lib/squeak/3.10-3/*.so
>
> Segmentation fault
>
> 2025578964 UUID>initialize
> 2025578848 Behavior>new:
> 2025578756 >new
> 2025578664 >setTimeStamp
> 2025578480 >updateInstances
> 2025560892 >setMenuFontTo:
> [...]
>
> The code which crashes:
>
> UUID>>initialize
>        self primMakeUUID.
>
> UUID>>primMakeUUID
>        <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'>
>        UUIDGenerator default generateBytes: self forVersion: 4.
>
> If I remove the call to the primitive, things works and the font is changed.
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Adrian Lienhard
This is issue http://code.google.com/p/pharo/issues/detail?id=855

Is there a fix (i.e., new VM) in sight?

Adrian

On Jun 5, 2009, at 09:21 , Damien Cassou wrote:

> This bug appeared before for many of us Ubuntu 9.04 users. The
> solution I use is to rename the directory UUIDPlugin to
> UUIDPlugin.bak.
>
>
> ---------- Forwarded message ----------
> From: Baskakov Daniel <[hidden email]>
> Date: Fri, Jun 5, 2009 at 9:11 AM
> Subject: Re: [Pharo-project] Exupery VM crashed with SegFault
> To: [hidden email]
>
>
> Hi,
>
> I'm getting this error on Linux Mint 7 (Ubuntu 9.04).
> Calling of:
>
> UUID>>new
>        ^(self new: 16)
>
> crashes Pharo on:
>
> UUID>>initialize
>        self primMakeUUID.
>
> I've changed to:
>
> UUID>>new
>        ^(self new: 17)
>
> and it stops crashing.
>
>
> 2009/3/30 Damien Cassou <[hidden email]>:
>> Hi,
>>
>> try to evaluate the following code in any Pharo image using the
>> Exupery Unix VM and you will get a Segmentation Fault.
>>
>> Preferences setMenuFontTo: (LogicalFont familyName: 'DejaVu Serif'
>> pointSize: 10).
>>
>> $ squeak -version
>> 3.10-3 #29 Fri Feb 27 22:09:30 GMT 2009 gcc 4.1.2
>> Pharo0.1 of 16 May 2008 [latest update: #10074]
>> Linux localhost 2.6.24.4 #9 SMP Sat Jul 19 21:31:15 BST 2008 i686
>> Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
>> default plugin location: /usr/local/lib/squeak/3.10-3/*.so
>>
>> Segmentation fault
>>
>> 2025578964 UUID>initialize
>> 2025578848 Behavior>new:
>> 2025578756 >new
>> 2025578664 >setTimeStamp
>> 2025578480 >updateInstances
>> 2025560892 >setMenuFontTo:
>> [...]
>>
>> The code which crashes:
>>
>> UUID>>initialize
>>        self primMakeUUID.
>>
>> UUID>>primMakeUUID
>>        <primitive: 'primitiveMakeUUID' module: 'UUIDPlugin'>
>>        UUIDGenerator default generateBytes: self forVersion: 4.
>>
>> If I remove the call to the primitive, things works and the font is  
>> changed.
>>
>> --
>> Damien Cassou
>> http://damiencassou.seasidehosting.st
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> "Lambdas are relegated to relative obscurity until Java makes them
> popular by not having them." James Iry
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Exupery VM crashed with SegFault

Bryce Kampjes
On Fri, 2009-06-05 at 09:39 +0200, Adrian Lienhard wrote:
> This is issue http://code.google.com/p/pharo/issues/detail?id=855
>
> Is there a fix (i.e., new VM) in sight?

It's on my list of things to look at but I'm unlikely to have a great
deal of time for the next few months.

Bryce


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project