[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] segfault/abort in CPtr>>#value

From: Stephen Compall
Subject: [Help-smalltalk] segfault/abort in CPtr>>#value
Date: Mon, 30 Oct 2006 23:50:15 -0600
User-agent: Thunderbird (Macintosh/20060909)

wcstok on ##smalltalk asked about a method on gst latest running on

|x y|
    x := CPtrCType elementType: #int.
    y := x new.
    y value

whereas replacing the last statement with "Memory intAt: y address"
would operate as expected.

I tried it on Linux 2.6.12-12mdk #1 Fri Sep 9
18:15:22 CEST 2005 i686 AMD Athlon(tm) XP 2800+ GNU/Linux (built with
 --enable-jit --enable-gtk=no) with

st> |x y| x:=CPtrCType elementType: #int. y:=x new. y value!
stdin:1: Aborted
(ip 10)CPtr>>#value
(ip 12)UndefinedObject>>#executeStatements
(ip 0)<bottom>
st> |x y| x:=CPtrCType elementType: #int. y:=x new.
st>       Memory intAt: y address!

wcstok reported a segfault on line 4437 in prims.def.

Stephen Compall
#gnu-smalltalk,##smalltalk on Freenode IRC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]