GNU Smalltalk - issues http://smalltalk.gnu.org/project/issues en gst-parse.c:605:21: warning: unknown conversion type character 'O' in format [-Wformat=] http://smalltalk.gnu.org/project/issue/1340 Source code is printf ("returned value is %O\n", _gst_last_returned_value); Plenty of duplicates in the same file. Fri, 02 Mar 2018 05:33:05 -0700 http://smalltalk.gnu.org/project/issue/1340 GNU Smalltalk Parameter parsing in gst-tool.c can cause out of bounds reads http://smalltalk.gnu.org/project/issue/1006 In gst-tool.c there is a loop that compares a given long option with the available long options. It uses a memcmp call for that with the length of the given option. This will cause out of bounds heap reads (that can be detected with address sanitizer), because many of the available options will be shorter than a given option. Changing memcmp to strncmp corrects this bug and will avoid reading the option strings beyond a terminating zero. See attached patch. This patch is against the latest test version 3.2.91. Thu, 04 Feb 2016 12:46:14 -0700 http://smalltalk.gnu.org/project/issue/1006 GNU Smalltalk Make fails under OS X 10.10.3 (Yosemite) http://smalltalk.gnu.org/project/issue/885 Make ends with a couple of hard errors. Configure ran to the end, but with many warnings. Not sure how to troubleshoot this. I reran make, and here is the output. By the way, same result with 3.2.5. Marks-iMac:smalltalk-3.2.90 markwallace$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in lib-src make[2]: Nothing to be done for `all'. Making all in lightning ln -s -f ./i386/asm-i386.h asm-i386.h ln -s -f ./i386/core-i386.h core-i386.h Making all in snprintfv /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in snprintfv /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done for `all-am'. Making all in libgst Mon, 11 May 2015 22:08:02 -0700 http://smalltalk.gnu.org/project/issue/885 GNU Smalltalk extend DLD to support loading Mac OS X frameworks http://smalltalk.gnu.org/project/issue/410 I get <pre> ./genbc ./byte.def ./byte.c ./opt.c ./xlat.c > match.h /bin/sh: line 1: 60172 Segmentation fault ./genbc ./byte.def ./byte.c ./opt.c ./xlat.c > _match.h make[2]: *** [match.stamp] Error 139 </pre> gdb says <pre> (gdb) run byte.def byte.c opt.c xlat.c Starting program: /opt/local/var/macports/build/_Users_damien_var_macports_lang_gst-dev/work/gst-dev-1.0/libgst/genbc byte.def byte.c opt.c xlat.c Reading symbols for shared libraries +. done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x000000000000007e Wed, 30 Sep 2009 07:13:34 -0700 http://smalltalk.gnu.org/project/issue/410 GNU Smalltalk Manual & Class Library Links Are Not Accessable http://smalltalk.gnu.org/project/issue/870 The links to the user manual and class libraries found here (http://smalltalk.gnu.org/documentation) result in a timeout error when followed. The URLs are: http://www.gnu.org/software/smalltalk/manual/ http://www.gnu.org/software/smalltalk/manual-base/ http://www.gnu.org/software/smalltalk/manual-libs/ Tue, 23 Dec 2014 20:04:05 -0700 http://smalltalk.gnu.org/project/issue/870 GNU Smalltalk autoreconf fails in 64 bit LinuxMint http://smalltalk.gnu.org/project/issue/868 I have a 64 bit LinuxMint system with autoreconf version 2.69, libtool & build-essentials installed. I am using the latest GIT version of GNU Smalltalk. I get this: $ autoreconf -fvi autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I build-aux autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory snprintfv to autoreconf autoreconf: Entering directory `snprintfv' autoreconf: running: aclocal --force -I ../build-aux autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force configure.ac:47: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. Fri, 28 Nov 2014 21:58:43 -0700 http://smalltalk.gnu.org/project/issue/868 GNU Smalltalk "DateTime printOn:" output cannot be parsed with "DateTime readFrom:" http://smalltalk.gnu.org/project/issue/864 Unlike Date, Time, Duration the DateTime instance cannot be initialized with a string which is generated by DateTime itself. <pre> st> DateTime now 2014-08-24T17:50:20+04:00 st> DateTime readFrom: stdin 2014-08-24T17:50:20+04:00 2014-10-13T20:04:00+00:00 </pre> The DateTime prints itself as YYYY-MM-DD + 'T' + HH:MM:SS + [(+|-)HH:MM[:SS]] (or [Date]T[Time][+-Offset]) and these format hardcoded. However readFrom: expects [Date] [Duration]. An offset should be set with offset: aDuration messsage. <pre> st> dt := DateTime readFrom: stdin 2014-08-24 00:17:50:20 2014-08-24T17:50:20+00:00 st> dt offset: (Duration days: 0 hours: 4 minutes: 0 seconds: 0) 2014-08-24T17:50:20+04:00 </pre> So there is now way to read/write date and time simultaneously. Sun, 24 Aug 2014 07:40:58 -0700 http://smalltalk.gnu.org/project/issue/864 GNU Smalltalk URL decodedFields causes ArgumentOutOfRange exception http://smalltalk.gnu.org/project/issue/863 <pre>url := URL fromString: '?key=value'. fields := url decodedFields. fields printNl. Object: 'key=value' error: Invalid argument 0: argument must be between 4 and 9 SystemExceptions.ArgumentOutOfRange(Smalltalk.Exception)>>signal (ExcHandling.st:254) SystemExceptions.ArgumentOutOfRange(Smalltalk.Exception)>>signal: (ExcHandling.st:264) SystemExceptions.ArgumentOutOfRange class>>signalOn:mustBeBetween:and: (SysExcept.st:599) Smalltalk.String(Smalltalk.ArrayedCollection)>>copyFrom:to: (ArrayColl.st:230) [] in URL>>decodedFields (URL.st:535) Smalltalk.OrderedCollection>>do: (OrderColl.st:68) URL>>decodedFields (URL.st:541) Smalltalk.UndefinedObject>>executeStatements (test.st:3) nil </pre> Sat, 16 Aug 2014 05:10:46 -0700 http://smalltalk.gnu.org/project/issue/863 GNU Smalltalk Line numbers not reported at start of blocks http://smalltalk.gnu.org/project/issue/858 At the start of a block, a line number bytecode is not generated. This is compounded when blocks contain only statements that are messages to blocks or when blocks are stored for later evaluation. The following code will highlight this: [ [ Processor activeProcess context backtrace ] value. [ Processor activeProcess context backtrace ] value ] value Evaluation will produce: optimized [] in UndefinedObject>>executeStatements (LineNumberTest.st:3) optimized [] in UndefinedObject>>executeStatements (LineNumberTest.st:1) UndefinedObject>>executeStatements (LineNumberTest.st:1) optimized [] in UndefinedObject>>executeStatements (LineNumberTest.st:6) optimized [] in UndefinedObject>>executeStatements (LineNumberTest.st:1) Sat, 10 May 2014 09:25:47 -0700 http://smalltalk.gnu.org/project/issue/858 GNU Smalltalk STInST and gst-parse.c are inconsistent on parsing trailing '.' http://smalltalk.gnu.org/project/issue/815 STInST and gst-parse.c are inconsistent about a trailing '.' at the end of the class definition. E.g. like this: <code> Object subclass: Test [ ]. </code> It has been found while trying to load Cairo with the 'Compiler' package. Mon, 09 Sep 2013 01:16:03 -0700 http://smalltalk.gnu.org/project/issue/815 GNU Smalltalk Debug report wrong line number http://smalltalk.gnu.org/project/issue/770 When in a VisualGST workspace I debug '1 printNl' I step multiple times to : Integer>>#printString: after two steps it goes to the wrong line number (14) when it should be 8 or 6. It seems that ^lineMap at: (aContext ip + 1 max: 1) ifAbsent: [1] fix the problem in Debugger>>currentLineIn: Tue, 28 May 2013 01:48:12 -0700 http://smalltalk.gnu.org/project/issue/770 GNU Smalltalk Infinite re-cursion on VisualGST inspector http://smalltalk.gnu.org/project/issue/722 I'm loading some code (OsmoMGCP) with the STClassLoader and then using VisualGST to inspect the code. I end up with an infinite crash re-cursion like this: <code> (ip 10)ProxyNamespace>>#printOn: (ip 20)ProxyNamespace(Object)>>#printString (ip 44)UnhandledException>>#defaultAction (ip 4)[] in Exception>>#resignalAsUnhandled: (ip 42)MethodContext(ContextPart)>>#scanBacktraceFor:do: (ip 36)MessageNotUnderstood(Exception)>>#resignalAsUnhandled: (ip 8)MessageNotUnderstood(Exception)>>#defaultAction (ip 2)[] in Exception>>#instantiateDefaultHandler (ip 16)MessageNotUnderstood(Exception)>>#activateHandler: (ip 24)MessageNotUnderstood(Exception)>>#signal (ip 20)ProxyNamespace(Object)>>#doesNotUnderstand: (ip 18)ProxyNamespace(BindingDictionary)>>#doesNotUnderstand: Sat, 30 Mar 2013 09:28:19 -0700 http://smalltalk.gnu.org/project/issue/722 GNU Smalltalk Parsing of selectors with underscore is broken http://smalltalk.gnu.org/project/issue/716 When parsing the GemStone MontiCello definition I stumbled about two issues: <code> st> STInST.RBParser parseExpression: 'self _foo' RBAssignmentNode(self := foo) st> STInST.RBParser parseExpression: '[:x:y | x+y]' Object: RBParser new "<0x55913658>" error: (a #String):1: Variable name expected Error(Exception)>>signal (ExcHandling.st:254) ... </code> According to ANSI Smalltalk the '_' is reserved by the implementation. Either we parse it or we reject it but it is certainly not an assignment? The other one appears to be valid according to ANSI Smalltalk. Sat, 23 Mar 2013 14:31:10 -0700 http://smalltalk.gnu.org/project/issue/716 GNU Smalltalk Kernel.ConcatenatedStream fails when re-positioned http://smalltalk.gnu.org/project/issue/696 The following code is working with a ReadStream but is failing with the ConcatenatedStream. <code> st> (Kernel.ConcatenatedStream with: ('3' readStream)) next; position: 0; next: 1 Object: ConcatenatedStream new "<0x558b6810>" error: premature end of stream: 1 element(s) missing SystemExceptions.NotEnoughElements(Exception)>>signal (ExcHandling.st:254) SystemExceptions.NotEnoughElements class>>signalOn: (SysExcept.st:359) Kernel.ConcatenatedStream(Stream)>>next:into:startingAt: (Stream.st:105) Kernel.ConcatenatedStream(Stream)>>next: (Stream.st:73) UndefinedObject>>executeStatements (a String:1) </code> Sun, 10 Feb 2013 09:29:32 -0700 http://smalltalk.gnu.org/project/issue/696 GNU Smalltalk Parsing state not properly reset on parse error http://smalltalk.gnu.org/project/issue/676 st> #(String stdin:2: expected true, false or nil st> 3+3 st> st> st> st> st> . 6 st> st> st> 3+3 st> ) 6 stdin:11: expected expression st> stdin:13: expected expression st> st> stdin:15: expected expression st> st> stdin:17: expected expression st> st> stdin:19: expected expression st> st> stdin:21: expected expression st> st> stdin:23: expected expression st> 6+2 st> stdin:25: expected expression st> st> stdin:27: expected expression st> . st> stdin:29: expected expression Mon, 03 Dec 2012 14:03:37 -0700 http://smalltalk.gnu.org/project/issue/676 GNU Smalltalk DBD-SQLite ResultSet should access rows on demand http://smalltalk.gnu.org/project/issue/671 populate [ <category: 'initialization'> | resCode | rows := OrderedCollection new. [ resCode := self handle exec. resCode = 100 ] whileTrue: [rows addLast: (SQLiteRow forValues: self handle returnedRow copy in: self)]. self handle checkError: resCode = 101. ] should be written in a way that it can be streamed without allocating everyting to memory at once. Mon, 19 Nov 2012 08:09:02 -0700 http://smalltalk.gnu.org/project/issue/671 GNU Smalltalk Make Link subclass of Iterable http://smalltalk.gnu.org/project/issue/656 Iterable abstract class defines a set of methods based on the method do:. Link class defines a method do:. However, the class Link is not subclass of Iterable. I propose to correct this omission. Wed, 05 Sep 2012 06:14:16 -0700 http://smalltalk.gnu.org/project/issue/656 GNU Smalltalk Examples of C calling Smalltalk calling C? http://smalltalk.gnu.org/project/issue/653 Hello, We would invest a significant amount of time to promote GNU Smalltalk if we could find examples of C calling Smalltalk calling C (our usage case). I have seen the dedicated talk but it looks much like "as an exercise left to the reader" (no offense intended, theory is also useful). Any practical code-examples (or code-base) available for new adopters? Thanks! Sat, 01 Sep 2012 01:12:51 -0700 http://smalltalk.gnu.org/project/issue/653 GNU Smalltalk Redefining a class and accessing an old selector/variable can abort the VM http://smalltalk.gnu.org/project/issue/648 The attached code redefines a class (by accident) and using the old selectors will lead to an abort. a Smalltalk string:2: assignment to undeclared variable adm_state a Smalltalk string:2: assignment to undeclared variable op_state RedefineCrash.st:31: Bytecode verification failed: receiver variable out of range RedefineCrash.st:31: Method verification failed for OMLSubclass>>#admState: RedefineCrash.st:31: Aborted (ip 20)UndefinedObject>>#executeStatements (ip 0)<bottom> Aborted Wed, 01 Aug 2012 06:28:29 -0700 http://smalltalk.gnu.org/project/issue/648 GNU Smalltalk CompiledMethod postCopy http://smalltalk.gnu.org/project/issue/644 Hi, postCopy doesn't work correctly, code is commented and the logic of makesLiteralReadOnly is not good. Fri, 02 Mar 2012 02:04:45 -0700 http://smalltalk.gnu.org/project/issue/644 GNU Smalltalk