intmath.st check fails

Project:GNU Smalltalk
Component:Build
Category:bug
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Tested on Mac OS X 10.5.5 and RedHat Linux 5.2 64 bit.

When make check is run, test #7, intmath.st does not complete - the test hangs. Comment added as below allows the test to complete:-

 Eval [
   g := PiSeries new.
   9 timesRepeat: [ g := g accelerate ].
 "    pi := g peek.
   pi numerator size printNl.
   pi denominator size printNl.
   (pi * 100000) asInteger "
 ]

The failure of intmath.st to complete has been observed on installs in the 3.0.x series as well (Mac OS X, Redhat Linux and Gentoo Linux).

Note: When the tests were run in version 3.0.x, it was possible to Ctrl-C when intmath.st hung, the testsuite would then continue. Under 3.1, pressing Ctrl-C does not halt the test (on Linux or Mac OS X), and one has to go into the process list and kill the process, at which point the tests will continue. The old behaviour was easier to work with should a test fail.

Thanks

Updates

#1 submitted by Paolo Bonzini on Thu, 10/30/2008 - 07:44

Fixed in 4c8038cb and backported to 3.0.x

#2 submitted by Paolo Bonzini on Thu, 10/30/2008 - 07:46
Status:active» fixed

forgot to change the status.

#3 submitted by Giles Bowkett on Sat, 01/17/2009 - 22:33
Status:fixed» active

Hi, I changed the status to active because I still see this bug on OS X. Someone who follows me on Twitter saw it too. We're both on OS X. intmath.st fails, rockets to 99+% CPU, and hangs forever. make install, and running GNU Smalltalk from the command line, succeed anyway. MacPorts gives an error message if you try to install GNU Smalltalk via the port package manager, saying it's unavailable for Intel Macs, which in 2009 means most Macs, but in fact mine's Intel and it's running fine. At least, it handles "Hello world!" and the interactive console.

#4 submitted by Giles Bowkett on Sat, 01/17/2009 - 22:33

Version: we're both running the latest, 3.1.

#5 submitted by Giles Bowkett on Sat, 01/17/2009 - 22:35

Also: it took a painful process of trial and error to determine how to kill the failing test. My box was incapacitated for a while. Command-C doesn't help. You have to check the processes and kill something specific, I think gst.

#6 submitted by Paolo Bonzini on Sat, 04/25/2009 - 10:29
Status:active» works for me

No news for a while...

#7 submitted by Giles Bowkett on Sun, 05/10/2009 - 04:33
Status:works for me» active

Well, this is still a problem. I ran into the issue building on OS X last time, but now I'm building GNU Smalltalk on Ubuntu on my Slicehost slice and seeing it again. I think last time I was building from MacPorts, this time I'm building straight from the tarball. Anyway, I have a feeling this might be a known bug, because I'm having much more trouble with gst on Ubuntu than I had on OS X, but fwiw, it's very frustrating.

#8 submitted by hoohah42 on Sat, 09/19/2009 - 18:52

I have the same issue with 3.1.

Building on Ubuntu 9.0.4, make check hangs on intmath.st .
I cancel with control-C and then end the lt-gst process and everything proceeds ok.

Further info:

  I am running Ubuntu on a x86 VM under VirtualBox.
  The underlying host hardware is AMD 64 bit Phenom.

#9 submitted by Paolo Bonzini on Sat, 09/19/2009 - 19:24

You don't have libgmp-devel installed, if you compiled your own GNU Smalltalk (the package name may not be exactly libgmp-devel as it depends on the distro). The test would finish in 30-40 minutes. This has been lowered in the current development version.

#10 submitted by Paolo Bonzini on Sat, 09/19/2009 - 19:24
Status:active» works for me

Changing status to works for me, the "hang" was fixed and the failure was never reproduced.

#11 submitted by Richard Rasu on Sun, 10/11/2009 - 13:25
Status:works for me» active

Just downloaded the 3.1 tarball. Same test as others report here (intmath.st) hangs with similar issues (100% cpu, ctrl-c not working).
OS X 10.5.8

#12 submitted by Richard Rasu on Sun, 10/11/2009 - 13:33

Just downloaded the 3.1 tarball. Same test as others report here (intmath.st) hangs with similar issues (100% cpu, ctrl-c not working).
OS X 10.5.8

#13 submitted by Paolo Bonzini on Mon, 10/12/2009 - 10:39
Status:active» fixed

Unless you have GMP's header files installed, please do not reopen issues. It is fixed in the current trunk, _not_ in the last released version.

User login