[Ecls-list] error building ecl from latest cvs

Jeronimo Pellegrini jpn at aleph0.info
Sun Oct 5 11:05:18 UTC 2008


Hello!

On Sun, Oct 05, 2008 at 11:41:49AM +0200, Juan Jose Garcia-Ripoll wrote:
> On Sun, Oct 5, 2008 at 11:22 AM, Pedro Kröger <kroger.lists at gmail.com> wrote:
> >
> > it works, but then I get the error I reported before:
>
> Hmmm? This was fixed before Josh' patches :-/ Did you clean completely
> your ecl/build directory, reconfiguring and building again after you
> last downloaded the sources? The stack overflow check implied deep
> changes, which affect both the configuration and build process, and
> thus it requires a clean rebuild.

> It is also in order to ask, does anybody else in the maling list still
> get this stack overflow error during build? Please speak up, unless
> errors are reported I cannot do anything to fix them :-)

I see an error, probably in the same point in compilation, but it's not
a stack overflow; it's a segfault!

$ make clean
...
$ rm -rf build
$ ./configure
...
$ make
...
make[2]: Leaving directory `/home/jeronimo/pkg/ecl/build/c'
if [ -f CROSS-COMPILER ]; then \
                touch ecl_min; \
        else \
                gcc  -o ecl_min cinit.o c/all_symbols.o -L./ libeclmin.a -leclgc  -lpthread -ldl  -lm  -lgmp;\
        fi
sed -e 's, at ecldir\\@,/usr/local/lib/ecl-8.10.0/,g' \
            -e 's, at libdir\\@,/usr/local/lib/,g' < compile.pre > compile.lsp
ln -s /home/jeronimo/pkg/ecl/src/cmp/sysfun.lsp ./
echo "#" `uname -a` > BUILD-STAMP
head -8 config.log | tail -6 >> BUILD-STAMP
if [ -f CROSS-COMPILER ]; then \
                ./CROSS-COMPILER compile; \
        else \
                ./ecl_min compile; \
        fi
/bin/sh: line 4: 20396 Segmentation fault      ./ecl_min compile
make[1]: *** [bin/ecl] Error 139
make[1]: Leaving directory `/home/jeronimo/pkg/ecl/build'
make: *** [all] Error 2

However,


$ build/ecl_min

Internal or unrecoverable error in:
Frame stack overflow, cannot grow larger.
Aborted


Aha! It's still a stack overflow!
This is what gdb finds:


$ gdb build/ecl_min
...
(gdb) run compile
Starting program: /home/jeronimo/pkg/ecl/build/ecl_min compile
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff0c9be66e0 (LWP 6021)]


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ff0c9be66e0 (LWP 6021)]
ecl_find_package_nolock (name=0x0) at /home/jeronimo/pkg/ecl/src/c/package.d:267
267             if (type_of(name) == t_package)
(gdb) where
#0  ecl_find_package_nolock (name=0x0) at /home/jeronimo/pkg/ecl/src/c/package.d:267
#1  0x0000000000407eb6 in si_coerce_to_package (p=0x0) at /home/jeronimo/pkg/ecl/src/c/package.d:294
#2  0x00000000004096d9 in ecl_find_symbol (n=0x6ee078, p=0x0, intern_flag=0x7fffd1c0df84) at /home/jeronimo/pkg/ecl/src/c/package.d:428
#3  0x0000000000404cd9 in init_all_symbols () at /home/jeronimo/pkg/ecl/src/c/all_symbols.d:212
#4  0x0000000000405ce0 in cl_boot (argc=<value optimized out>, argv=<value optimized out>) at /home/jeronimo/pkg/ecl/src/c/main.d:340
#5  0x000000000040480a in main (argc=0, args=0x0) at /home/jeronimo/pkg/ecl/src/c/cinit.d:106


These are teh two latest commits I have pulled with git (it's the
output of git log):

commit a11903a1fec520410fbe168004c308606376a4a4
Author: Juan Jose Garcia Ripoll <jjgarcia at jjgr.(none)>
Date:   Sun Oct 5 10:16:38 2008 +0200

    Fixed problem with argument of WEXITSTATUS

commit 3f1419fe3544d1b3eb5cf1aa38f8c445da0cb43b
Author: Juan Jose Garcia Ripoll <jjgarcia at jjgr.(none)>
Date:   Sun Oct 5 00:04:15 2008 +0200

    New flag --with-signed-zero (Juanjo). RUN-PROGRAM now returns exit code of program (Josh Elsasser).
...


J.





More information about the ecl-devel mailing list