chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Solaris


From: John Tobey
Subject: Re: [Chicken-users] Solaris
Date: Mon, 6 Jan 2003 12:34:14 -0500
User-agent: Mutt/1.3.28i

On Sun, Jan 05, 2003 at 11:29:14PM +0100, felix wrote:
> John Tobey wrote:
> >Is anyone else having trouble running chicken-0.1082 on Solaris?
> >
> >My specifics: uname -a
> >SunOS dbdev-sun 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-Enterprise
> >
> >Built with GCC, I get frequent bus errors.  Using Sun CC, I get link
> >errors due to missing alloca and C_toplevel.  The only thing that
> >seems to work is GCC with no optimization (I had to hack configure to
> >turn off -O3).
> >
> >I'll be happy to provide more info, just wanted to know whether this
> >is a known issue.
> >
> 
> It might be another problem with -fstrict-aliasing. Try:
> 
> % CFLAGS="-O3 -fomit-frame-pointer" ./configure
> % make CFLAGS="-O3 -fomit-frame-pointer"
> 
> (so you don't have to hack the configure script)
> 
> If that fails, try the above with CFLAGS="-O2".
> 
> If that fails, also, we have to ask gdb...

Well that's where I'm at.  Partial gmake and gdb output below.  Oh, my
GCC is a Cygnus branded EGCS, in case that matters.

$ gcc --version
2.9-gnupro-99r1

Thanks
-John

$ gmake distclean && CFLAGS="-O2 -g"./configure && gmake CFLAGS="-O2 -g"

[...]

checking for the best nursery size ...
 8K -> 7193 ms
 10K -> 5870 ms
 12K -> 4940 ms
 16K -> 3946 ms
 24K -> 2910 ms
 32K -> 2406 ms
 48K -> 1896 ms
 64K -> 1640 ms
/bin/ksh: 9055 Segmentation Fault(coredump)
/bin/ksh: 9064 Segmentation Fault(coredump)
/bin/ksh: 9073 Segmentation Fault(coredump)
expr: syntax error
 128K ->  ms
/bin/ksh: test: argument expected
/bin/ksh: 9083 Segmentation Fault(coredump)
/bin/ksh: 9092 Segmentation Fault(coredump)
/bin/ksh: 9101 Segmentation Fault(coredump)
expr: syntax error
 256K ->  ms
/bin/ksh: test: argument expected
/bin/ksh: 9111 Segmentation Fault(coredump)
/bin/ksh: 9122 Segmentation Fault(coredump)
/bin/ksh: 9131 Segmentation Fault(coredump)
expr: syntax error
 512K ->  ms
/bin/ksh: test: argument expected
/bin/ksh: 9141 Segmentation Fault(coredump)
/bin/ksh: 9150 Segmentation Fault(coredump)
/bin/ksh: 9159 Segmentation Fault(coredump)
expr: syntax error
 1024K ->  ms
/bin/ksh: test: argument expected
the optimal size of the nursery seems to be 64K
the CHICKEN_HOME install directory is /usr/local/share/chicken
creating c_defaults.h
gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 
-DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"' -DC_USE_C_DEFAULTS    -O2 -g -c 
`test -f 'compiler.c' || echo './'`compiler.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 
-DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"' -DC_USE_C_DEFAULTS    -O2 -g -c 
`test -f 'optimizer.c' || echo './'`optimizer.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 
-DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"' -DC_USE_C_DEFAULTS    -O2 -g -c 
`test -f 'c-platform.c' || echo './'`c-platform.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 
-DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"' -DC_USE_C_DEFAULTS    -O2 -g -c 
`test -f 'c-backend.c' || echo './'`c-backend.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 
-DC_INSTALL_LIB_HOME='"/usr/local/lib/chicken"' -DC_USE_C_DEFAULTS    -O2 -g -c 
`test -f 'batch-driver.c' || echo './'`batch-driver.c
/bin/ksh ./libtool --mode=link gcc  -O2 -g   -o chicken  chicken.o support.o 
compiler.o optimizer.o c-platform.o c-backend.o batch-driver.o libchicken.la 
libstuffed-chicken.la libsrfi-chicken.la -lm -ldl -lm -lm -ldl -lm
gcc -O2 -g -o .libs/chicken chicken.o support.o compiler.o optimizer.o 
c-platform.o c-backend.o batch-driver.o  ./.libs/libchicken.so -lm -ldl -lm 
./.libs/libstuffed-chicken.so -lm -ldl -lm ./.libs/libsrfi-chicken.so -lm -ldl 
-lm -lm -ldl -lm -lm -ldl -lm -Wl,--rpath -Wl,/usr/local/lib
creating chicken
./chicken csi.scm -quiet -debug-level 0 -optimize-level 2 -include-path . 
-no-warnings  -output-file csi.c -prologue ./build.scm -prelude "(declare (uses 
posix chicken-setup))" \
  -postlude "(##csi#run)"
gmake[1]: *** [csi.c] Segmentation Fault (core dumped)
gmake[1]: Leaving directory `/gdbhome/tobey/build/chicken-0.1082'
gmake: *** [all] Error 2

[...]

Run gdb (like this): gdb -cd ~/build/chicken-0.1082/ .libs/chicken core
Current directory is /home/tobey/build/chicken-0.1082/
GNU gdb 4.18-gnupro-99r1
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.  This version of GDB is supported
for customers of Cygnus Solutions.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7"...
Core was generated by `chicken csi.scm -quiet -debug-level 0 -optimize-level 2 
-include-path . -no-war'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from 
/gdbhome/tobey/build/chicken-0.1082/./.libs/libchicken.so.0...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from 
/gdbhome/tobey/build/chicken-0.1082/./.libs/libstuffed-chicken.so.0...done.
Reading symbols from 
/gdbhome/tobey/build/chicken-0.1082/./.libs/libsrfi-chicken.so.0...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1...
done.
#0  0xff2ad268 in allocate_vector_2 (dummy=0xff37048c) at runtime.c:5458
(gdb) l
5453          if(C_heap_size_is_fixed)
5454            panic(C_text("out of memory - can not allocate vector"));
5455    
5456          C_save(init);
5457          C_save(k);
5458          C_rereclaim(percentage(heap_size, C_heap_growth) + bytes);
5459          k = C_restore;
5460          init = C_restore;
5461        }
5462    
(gdb) bt
#0  0xff2ad268 in allocate_vector_2 (dummy=0xff37048c) at runtime.c:5458
#1  0xff2934ec in CHICKEN_run (data=0x0, bytes=0x0, maxlen=0x0)
    at runtime.c:774
#2  0xff2927c0 in main (argc=18, argv=0xffbef66c, env=0xffbef6b8)
    at runtime.c:395
(gdb) x/20i $pc-40
0xff2ad240 <allocate_vector_2+344>:     st  %g2, [ %o0 + -8 ]
0xff2ad244 <allocate_vector_2+348>:     st  %o5, [ %o0 + -4 ]
0xff2ad248 <allocate_vector_2+352>:     ld  [ %i1 ], %f2
0xff2ad24c <allocate_vector_2+356>:     add  %o0, -8, %o0
0xff2ad250 <allocate_vector_2+360>:     fitod  %f2, %f4
0xff2ad254 <allocate_vector_2+364>:     ld  [ %i0 ], %f6
0xff2ad258 <allocate_vector_2+368>:     st  %o0, [ %l1 ]
0xff2ad25c <allocate_vector_2+372>:     sethi  %hi(0xfffff400), %o0
0xff2ad260 <allocate_vector_2+376>:     fitod  %f6, %f2
0xff2ad264 <allocate_vector_2+380>:     fmuld  %f4, %f2, %f4
0xff2ad268 <allocate_vector_2+384>:     ldd  [ %o0 + 0xc0 ], %f2
0xff2ad26c <allocate_vector_2+388>:     fdivd  %f4, %f2, %f4
0xff2ad270 <allocate_vector_2+392>:     fdtoi  %f4, %f4
0xff2ad274 <allocate_vector_2+396>:     st  %f4, [ %fp + -20 ]
0xff2ad278 <allocate_vector_2+400>:     ld  [ %fp + -20 ], %o0
0xff2ad27c <allocate_vector_2+404>:     call  0xff370a24 <__DTOR_END__+1324>
0xff2ad280 <allocate_vector_2+408>:     add  %o0, %l0, %o0
0xff2ad284 <allocate_vector_2+412>:     ld  [ %l1 ], %o0
0xff2ad288 <allocate_vector_2+416>:     ld  [ %o0 ], %g2
0xff2ad28c <allocate_vector_2+420>:     ld  [ %l6 ], %o1
(gdb) 




reply via email to

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