Could this be a bug?

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

Could this be a bug?

FDominicus
I tried to follow the GTK Tutorial at:
http://bioskop.fr/gtk_tutorial/
This is the program I tried:
#!/usr/local/bin/gst

Eval [
        PackageLoader fileInPackage: 'GTK'.
        window := GTK.GtkWindow new: GTK.Gtk gtkWindowToplevel.
        window show.
        GTK.Gtk main
]

If I try to run it:
gst base.st
Loading package GLib
Loading package Cairo
Loading package GTK
/home/local/share/smalltalk/GTK.star#VFS.ZipFile/Funcs.st:20: Abgebrochen
zsh: segmentation fault (core dumped)  gst base.st


a core dump is probably not a "good" thing ;-(

gst --version
GNU Smalltalk version 3.2.3-96ea7ed
Copyright 2009 Free Software Foundation, Inc.

uname -r
2.6.37-1-amd64

compiz window manage with KDE desktop

Reply | Threaded
Open this post in threaded view
|

Re: Could this be a bug?

Paolo Bonzini-2
On Fri, Mar 18, 2011 at 16:34, FDominicus <[hidden email]> wrote:

> I tried to follow the GTK Tutorial at:
> http://bioskop.fr/gtk_tutorial/
> This is the program I tried:
> #!/usr/local/bin/gst
>
> Eval [
>        PackageLoader fileInPackage: 'GTK'.
>        window := GTK.GtkWindow new: GTK.Gtk gtkWindowToplevel.
>        window show.
>        GTK.Gtk main
> ]
>
> If I try to run it:
> gst base.st
> Loading package GLib
> Loading package Cairo
> Loading package GTK
> /home/local/share/smalltalk/GTK.star#VFS.ZipFile/Funcs.st:20: Abgebrochen
> zsh: segmentation fault (core dumped)  gst base.st
>
>
> a core dump is probably not a "good" thing ;-(

1) What is the output of gst --version?

2) Can you include the packages/gtk/Funcs.st file from your build directory?

3) Can you try branch "stable-3.2" instead of master?

Thanks!

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Could this be a bug?

FDominicus

"1) What is the output of gst --version?"
was included in my posting:

gst --version
GNU Smalltalk version 3.2.3-96ea7ed
Copyright 2009 Free Software Foundation, Inc.


"2) Can you include the packages/gtk/Funcs.st file from your build directory?"

Wow this is  mighty large:
"Automatically generated, do not edit!"
!GTypeInterface class methodsFor: 'C call-outs'!
peek: instanceClass ifaceType: ifaceType
    <cCall: 'g_type_interface_peek' returning: #cObject
        args: #( #cObject #long )>! !

!GTypeInterface class methodsFor: 'C call-outs'!
peekParent: gIface
    <cCall: 'g_type_interface_peek_parent' returning: #cObject
        args: #( #cObject )>! !

!GTypeInterface class methodsFor: 'C call-outs'!
addPrerequisite: interfaceType prerequisiteType: prerequisiteType
    <cCall: 'g_type_interface_add_prerequisite' returning: #void
        args: #( #long #long )>! !

!GTypeInterface class methodsFor: 'C call-outs'!
prerequisites: interfaceType nPrerequisites: nPrerequisites
    <cCall: 'g_type_interface_prerequisites' returning: CLong type
        args: #( #long #cObject )>! !

!GTypeInstance methodsFor: 'C call-outs'!
getPrivate: privateType
    <cCall: 'g_type_instance_get_private' returning: #cObject
        args: #( #self #long )>! !

!GTypeInterface class methodsFor: 'C call-outs'!
getPlugin: instanceType interfaceType: interfaceType
    <cCall: 'g_type_interface_get_plugin' returning: #{GTypePlugin}
        args: #( #long #long )>! !


I just included up to line 20 where the crash happens.




"3) Can you try branch "stable-3.2" instead of master? "
Will try.


Reply | Threaded
Open this post in threaded view
|

Re: Could this be a bug?

FDominicus
Ok, I tried with 3.2 and this crashes at another place.
I installed the  debian gnu smalltalk and this crashes also.
So currently I'm reinstalling 3.2.3....

Regards
Friedrich
Reply | Threaded
Open this post in threaded view
|

Re: Could this be a bug?

Paolo Bonzini-2
In reply to this post by FDominicus
On 03/19/2011 07:04 AM, FDominicus wrote:
>
> "1) What is the output of gst --version?"
> was included in my posting:
>
> gst --version
> GNU Smalltalk version 3.2.3-96ea7ed
> Copyright 2009 Free Software Foundation, Inc.

Uhm, can't find it.

Fixed, anyway.  Thanks for the report!

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Could this be a bug?

Paolo Bonzini-2
In reply to this post by FDominicus
On 03/19/2011 07:58 AM, FDominicus wrote:
> Ok, I tried with 3.2 and this crashes at another place.

3.2 release or stable-3.2 branch?  How does it crash, if it is the latter?

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Could this be a bug?

FDominicus
In reply to this post by FDominicus
Now I've installed the new 3.2.4 version and the GTK example "works"

So I guess it wa either a problem with my 3.2.3 installation and/or this
version.

Regards
Friedrich

--
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk