help-smalltalk
[Top][All Lists]
Advanced

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

RE: [Help-smalltalk] Windows build


From: freddie.akeroyd
Subject: RE: [Help-smalltalk] Windows build
Date: Wed, 9 Dec 2009 17:55:36 -0000

Hi,

I tried building with cygwin myself and get a similar problem with
default C compiler optimisation:

Latest git 

    ./configure --disable-generational-gc
    make

stopped at

    ./gst.exe --no-user-files --kernel-dir="./kernel" --image=gst.im -iQ
/dev/null
          7 [main] gst 3604 _cygtls::handle_exceptions: Error while
dumping state (probably corrupted stack)
    make[2]: *** [gst.im] Segmentation fault (core dumped)

$ gdb ./gst.exe
GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free
Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(no debugging symbols found)
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n])
[answered N; input not from terminal]
(gdb) r --no-user-files --kernel-dir="./kernel" --image=gst.im -iQ
/dev/null Starting program: /cygdrive/c/cygwin_local/smalltalk/gst.exe
--no-user-files --kernel-dir="./kernel" --image=gst.im -iQ /dev/null
[New thread 2672.0xb64] (no debugging symbols found)  (no debugging
symbols found) (no debugging symbols found) [New thread 2672.0xa48] (no
debugging symbols found)  (no debugging symbols found) [New thread
2672.0x1e4]
      7 [main] gst 2672 _cygtls::handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
   2634 [main] gst 2672 open_stackdumpfile: Dumping stack trace to
gst.exe.stack dump
   9722 [main] gst 2672 _cygtls::handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
  12405 [main] gst 2672 _cygtls::handle_exceptions: Error while dumping
state (probably corrupted stack)

Program exited with code 0105400.
(gdb)


However rebuilding without C compiler optimisation

    env CFLAGS="-g -O0" ./configure --disable-generational-gc
    make

runs through OK and builds both gst.exe and a gst.im image; however
running the tests results in a hang loading SUnit

make check
Making check in tests
make[1]: Entering directory `/cygdrive/c/cygwin_local/smalltalk/tests'
make  gst.im
make[2]: Entering directory `/cygdrive/c/cygwin_local/smalltalk/tests'
echo "PackageLoader fileInPackage: #SUnit. ObjectMemory snapshot:
'gst.im'" | ./gst --image=../gst.im - "Global garbage collection...
done"
Loading package SUnit
"Global garbage collection... done"
cd . && /cygdrive/c/cygwin_local/smalltalk/tests/gst -S
--image=/cygdrive/c/cygwin_local/smalltalk/tests/gst.im AnsiLoad.st
Object: StarPackage new "<0x18f9fe68>" error: did not understand
#isDisabled MessageNotUnderstood(Exception)>>signal (AnsiExcept.st:216)
Kernel.StarPackage(Object)>>doesNotUnderstand: #isDisabled
(AnsiLoad.st:65) optimized [] in
Kernel.PackageDirectory>>refreshPackageList (PkgLoader.st:436) [] in
LookupTable(Dictionary)>>reject: (Dictionary.st:400) [] in
LookupTable>>associationsDo: (LookupTable.st:149)
LookupTable>>keysAndValuesDo: (LookupTable.st:179)
LookupTable>>associationsDo: (LookupTable.st:148)
LookupTable(Dictionary)>>reject: (Dictionary.st:401)
Kernel.PackageDirectory>>refreshPackageList (PkgLoader.st:436)
Kernel.PackageDirectory>>refresh: (PkgLoader.st:424) [] in
Kernel.PackageDirectories>>refresh: (PkgLoader.st:254)
OrderedCollection(SequenceableCollection)>>do: (SeqCollect.st:822)
Kernel.PackageDirectories>>refresh: (PkgLoader.st:254)
PackageLoader"Global garbage collection... done"
 class>>refresh (PkgLoader.st:1693)
PackageLoader class>>fileInPackages: (PkgLoader.st:1710) PackageLoader
class>>fileInPackage: (PkgLoader.st:1700)
UndefinedObject>>executeStatements (AnsiLoad.st:79)
Loading Ansi.st
Loading AnsiDB.st
"Global garbage collection... done, heap grown"
Loading AnsiInit.st
"Global garbage collection... done"
"Global garbage collection... done"
make[2]: Leaving directory `/cygdrive/c/cygwin_local/smalltalk/tests'
make  check-local
make[2]: Entering directory `/cygdrive/c/cygwin_local/smalltalk/tests'
/bin/sh './testsuite'
## ----------------------------- ##
## GNU Smalltalk 3.1 test suite. ##
## ----------------------------- ##

Regression tests.

  1: arrays.st                                       ok
  2: classes.st                                      ok
  3: blocks.st                                       ok
  4: sets.st                                         ok
  5: exceptions.st                                   ok
  6: intmath.st                                      ok
  7: floatmath.st                                    ok
  8: dates.st                                        ok
  9: objects.st                                      ok
 10: strings.st                                      ok
 11: chars.st                                        ok
 12: objdump.st                                      ok
 13: geometry.st                                     ok
 14: cobjects.st                                     ok
 15: compiler.st                                     ok
 16: fileext.st                                      ok
 17: mutate.st                                       ok
 18: untrusted.st                                    ok
 19: getopt.st                                       ok
 20: quit.st                                         ok
 21: pools.st                                        ok

Other simple tests.

 22: ackermann.st                                    ok
 23: ary3.st                                         ok
 24: except.st                                       ok
 25: fibo.st                                         ok
 26: hash.st                                         ok
 27: hash2.st                                        ok
 28: heapsort.st                                     ok
 29: lists.st                                        ok
 30: lists1.st                                       ok
 31: lists2.st                                       ok
 32: matrix.st                                       ok
 33: methcall.st                                     ok
 34: nestedloop.st                                   ok
 35: objinst.st                                      ok
 36: prodcons.st                                     ok
 37: random-bench.st                                 ok
 38: sieve.st                                        ok
 39: strcat.st                                       ok

Basic packages.

 40: SUnit


Pressing "ctrl-c" at this point results in an "ok" for SUnit and then
the others tests continue with a few failures and further hangs at
Magritte, Sport and Swazoo which are also bypassed by pressing Ctrl-C. I
enclose the final "testsuite.log" file

Regards,

Freddie

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Paolo Bonzini
> Sent: 09 December 2009 14:25
> To: Ang Beepeng
> Cc: address@hidden
> Subject: Re: [Help-smalltalk] Windows build
> 
> > Thank you so so much for all the helps. I hope you don't mind, but
if
> it's
> > possible, can I have one with debugging info? So that I can debug
and
> learn
> > from it. Just forget about it if it is troublesome to you.
> 
> Sure, of course.  I'll compile it with CFLAGS=-g and
> --disable-generational-gc (just one less things that gets in the way).
> 
> Paolo
> 
> 
> _______________________________________________
> help-smalltalk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-smalltalk

-- 
Scanned by iCritical.

Attachment: testsuite.log.zip
Description: testsuite.log.zip


reply via email to

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