Gtk bindings fail to load and make gst crash

Tagged:
Project:GNU Smalltalk
Component:Bindings: Gtk
Category:bug
Priority:normal
Assigned:bonzinip
Status:fixed
Description

Trying to load Gtk bindings fail, then gst crash:

st> PackageLoader fileInPackage: 'BloxGTK'!
"Global garbage collection... done"
Loading package GTK
Object: <unnamed Behavior> new "<0x2ac35579b9d0>" error: Invalid index 15: index out of range
SystemExceptions.IndexOutOfRange(Smalltalk.Exception)>>signal
SystemExceptions.IndexOutOfRange class>>signalOn:withIndex:
<no name>(Smalltalk.Object)>>instVarAt:
<no name>(Smalltalk.Object)>>mutate:startAt:newClass:
[] in Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Array(Smalltalk.SequenceableCollection)>>do:
Smalltalk.WeakArray>>do:
Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Metaclass>>name:environment:subclassOf:instanceVariableArray:shape:classPool:poolDictionaries:category:
Smalltalk.Metaclass>>name:environment:subclassOf:
Smalltalk.CStruct class(Smalltalk.Class)>>subclass:
Smalltalk.CStruct class(Smalltalk.CObject class)>>subclass:
/tmp/gst/share/smalltalk/GTK.star#uzip/MoreStructs.st:66: expected Eval, Namespace or class definition
Object: <unnamed Behavior> new "<0x2ac3557518c0>" error: Invalid index 15: index out of range
SystemExceptions.IndexOutOfRange(Smalltalk.Exception)>>signal
SystemExceptions.IndexOutOfRange class>>signalOn:withIndex:
<no name>(Smalltalk.Object)>>instVarAt:
<no name>(Smalltalk.Object)>>mutate:startAt:newClass:
[] in Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Array(Smalltalk.SequenceableCollection)>>do:
Smalltalk.WeakArray>>do:
Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Metaclass>>name:environment:subclassOf:instanceVariableArray:shape:classPool:poolDictionaries:category:
Smalltalk.Metaclass>>name:environment:subclassOf:
Smalltalk.CStruct class(Smalltalk.Class)>>subclass:
Smalltalk.CStruct class(Smalltalk.CObject class)>>subclass:
/tmp/gst/share/smalltalk/GTK.star#uzip/MoreStructs.st:75: expected Eval, Namespace or class definition
Object: <unnamed Behavior> new "<0x2ac355793be0>" error: Invalid index 15: index out of range
SystemExceptions.IndexOutOfRange(Smalltalk.Exception)>>signal
SystemExceptions.IndexOutOfRange class>>signalOn:withIndex:
<no name>(Smalltalk.Object)>>instVarAt:
<no name>(Smalltalk.Object)>>mutate:startAt:newClass:
[] in Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Array(Smalltalk.SequenceableCollection)>>do:
Smalltalk.WeakArray>>do:
Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Metaclass>>name:environment:subclassOf:instanceVariableArray:shape:classPool:poolDictionaries:category:
Smalltalk.Metaclass>>name:environment:subclassOf:
Smalltalk.CStruct class(Smalltalk.Class)>>subclass:
Smalltalk.CStruct class(Smalltalk.CObject class)>>subclass:
/tmp/gst/share/smalltalk/GTK.star#uzip/MoreStructs.st:88: expected Eval, Namespace or class definition
Object: <unnamed Behavior> new "<0x2ac35578fa30>" error: Invalid index 15: index out of range
SystemExceptions.IndexOutOfRange(Smalltalk.Exception)>>signal
SystemExceptions.IndexOutOfRange class>>signalOn:withIndex:
<no name>(Smalltalk.Object)>>instVarAt:
<no name>(Smalltalk.Object)>>mutate:startAt:newClass:
[] in Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Array(Smalltalk.SequenceableCollection)>>do:
Smalltalk.WeakArray>>do:
Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Metaclass>>name:environment:subclassOf:instanceVariableArray:shape:classPool:poolDictionaries:category:
Smalltalk.Metaclass>>name:environment:subclassOf:
Smalltalk.CStruct class(Smalltalk.Class)>>subclass:
Smalltalk.CStruct class(Smalltalk.CObject class)>>subclass:
/tmp/gst/share/smalltalk/GTK.star#uzip/MoreStructs.st:97: expected Eval, Namespace or class definition
Object: <unnamed Behavior> new "<0x2ac355799470>" error: Invalid index 15: index out of range
SystemExceptions.IndexOutOfRange(Smalltalk.Exception)>>signal
SystemExceptions.IndexOutOfRange class>>signalOn:withIndex:
<no name>(Smalltalk.Object)>>instVarAt:
<no name>(Smalltalk.Object)>>mutate:startAt:newClass:
[] in Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Array(Smalltalk.SequenceableCollection)>>do:
Smalltalk.WeakArray>>do:
Smalltalk.Metaclass(Smalltalk.Behavior)>>updateInstanceVars:numInherited:shape:
Smalltalk.Metaclass>>name:environment:subclassOf:instanceVariableArray:shape:classPool:poolDictionaries:category:
Smalltalk.Metaclass>>name:environment:subclassOf:
Smalltalk.CStruct class(Smalltalk.Class)>>subclass:
Smalltalk.CStruct class(Smalltalk.CObject class)>>subclass:
/tmp/gst/share/smalltalk/GTK.star#uzip/MoreStructs.st:106: expected Eval, Namespace or class definition
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
/tmp/gst/share/smalltalk/GTK.star#uzip/GtkImpl.st:45: Aborted
/tmp/gst/share/smalltalk/GTK.star#uzip/GtkImpl.st:45: Error occurred while not in byte code interpreter!!
/lib/libc.so.6[0x2ac895286710]
/lib/libc.so.6(gsignal+0x35)[0x2ac8952866a5]
/lib/libc.so.6(abort+0x110)[0x2ac895288100]
/tmp/gst/bin/gst[0x416aec]
/tmp/gst/bin/gst[0x4bfc96]
/lib/libc.so.6[0x2ac895286710]
/tmp/gst/bin/gst[0x40fa3f]
/tmp/gst/bin/gst[0x40f834]
/tmp/gst/bin/gst[0x40fc5d]
/tmp/gst/bin/gst[0x41014c]
Abandon

Updates

#1 submitted by Thomas Girard on Sun, 11/18/2007 - 20:40

Hmmm... I had missed that part:

/usr/lib/gnu-smalltalk/GTK.star#uzip/MoreStructs.st:66: expected Eval, Namespace or class definition

It seems MoreStructs has errors... I'll check how it looked like in 2.95e and let you know.

#2 submitted by Thomas Girard on Sun, 11/18/2007 - 21:34

I've just compared 2.95e{e,f}/packages/gtk directories: they contain the same .st files.

I've also checked that loading new GTK.star (i.e. the one generated when compiling gst 2.95f) with gst 2.95e works. (It fails with gst 2.95f.)

#3 submitted by Paolo Bonzini on Tue, 11/20/2007 - 14:05
Assigned to:Unassigned» bonzinip
Status:active» fixed

This part is done.

User login