bug-gnulib
[Top][All Lists]
Advanced

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

os/2 c-stack [was: snapshot in preparation for m4 1.4.12]


From: Eric Blake
Subject: os/2 c-stack [was: snapshot in preparation for m4 1.4.12]
Date: Sun, 10 Aug 2008 22:23:56 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Elbert Pol on 8/7/2008 12:09 PM:
|
| But with the make -k check there are some errors.
|
| I attach the check.log
|
| This is with os/2

Thanks for the report.  Can you also send your config.log?  It looks like
three categories of errors; I'll reply with separately subject lines to
make tracking the distinct issues easier.

First, it looks like stack overflow detection is not working:

| Checking ./stackovf.test
| Can't reset stack limit - this may take a while...
| Failure - m4 did not abort
| Output from m4:
|
...
| FAIL: test-c-stack.sh

Are you in a position to help debug this?  The simplest test would be
capturing the output of:

$ u:/m4-1.4.11.34-9ecd/src/m4 --help | grep limit
$ echo 'define(a,a(a))a' | u:/m4-1.4.11.34-9ecd/src/m4
$ echo $?

checks/stackovf.test was supposed to do this, but it might still be buggy;
at any rate, the output from the test looks like m4 exited without any
output and with 0 exit status, even though it should have died from stack
overflow.  Maybe the process is being killed silently by the OS, similarly
to how mingw behaves without libsigsegv?  The --help output will show
whether m4 is even attempting stack overflow detection (--nesting-limit
default to 0) or giving up entirely due to no OS support (--nesting-limit
default to 1024, as it is on mingw without libsigsegv).

If you are familiar with gdb, it would also be nice to step through
test-c-stack.  It seems a bit odd that stack overflow failed
(test-c-stack.sh invokes test-c-stack without arguments) but a forced
SIGSEGV passed (test-c-stack2.sh invokes it with an argument).

Also, it looks like you built without libsigsegv installed.  Would you be
willing to download libsigsegv (2.5 is the latest release, although there
are some patches in CVS that have not yet been released, necessary for
correct operation on some platforms such as OpenBSD), report how it fares
with 'make check', and also try rebuilding m4 with libsigsegv?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkifvtwACgkQ84KuGfSFAYAX+wCgsoz5fki8hb2tBE7BPDfa0c5y
TsYAn1kEjo0Z4wZ7HICAAST9EGW7C4A/
=mpK1
-----END PGP SIGNATURE-----




reply via email to

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