This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Regex testcase (was Re: more on cat-gets/tst-catgets)
- From: Kaoru Fukui <k_fukui at highway dot ne dot jp>
- To: k_fukui at highway dot ne dot jp
- Cc: Jakub Jelinek <jakub at redhat dot com>, Ulrich Drepper <drepper at redhat dot com>, Jack Howarth <howarth at bromo dot med dot uc dot edu>, libc-alpha at sources dot redhat dot com, Kaoru Fukui <k_fukui at highway dot ne dot jp>
- Date: Thu, 5 Sep 2002 02:54:32 +0900 (JST)
- Subject: Re: [PATCH] Regex testcase (was Re: more on cat-gets/tst-catgets)
On 5 Sep, To: roland@redhat.com wrote:
> On 4 Sep, Roland McGrath wrote:
>> I put the new test in, so everybody's make check should be catching the bug.
> HI!
>
> This is my make check result for posix,
> My system is powerpc linux.
> Then bug-regex11.out is empty
>
> Kaoru
> ----------------------------------------
> make -s -C posix tests
> make[2]: Entering directory `/usr/src/redhat/BUILD/libc/posix'
> /tmp/ccHoPcNH.o: In function `get_null_defines':
> /tmp/ccHoPcNH.o(.text+0x230): the use of `tmpnam' is dangerous, better use `mkstemp'
> /usr/src/redhat/BUILD/libc/build-ppc-linux/posix/wordexp-test.o: In function `main':
> /usr/src/redhat/BUILD/libc/posix/wordexp-test.c:243: the use of `tmpnam' is dangerous, better use `mkstemp'
> make[2]: *** [/usr/src/redhat/BUILD/libc/build-ppc-linux/posix/bug-regex11.out] Error 139
> make[2]: Target `tests' not remade because of errors.
> make[2]: Leaving directory `/usr/src/redhat/BUILD/libc/posix'
> make[1]: *** [posix/tests] Error 2
>
bug-regex11 gave me core
[root@g4mpkfukui posix]# GCONV_PATH=/usr/src/redhat/BUILD/libc/build-ppc-linux/iconvdata LC_ALL=C ./bug-regex11 >bug-regex11.out
Segmentation fault (core dumped)
[root@g4mpkfukui posix]# gdb bug-regex11 core.14362
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 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.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "ppc-redhat-linux"...
Core was generated by `./bug-regex11'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
#0 0x0ff6cd40 in proceed_next_node () from /lib/libc.so.6
(gdb) where
#0 0x0ff6cd40 in proceed_next_node () from /lib/libc.so.6
#1 0x0ff66068 in set_regs () from /lib/libc.so.6
#2 0x0ff65878 in re_search_internal () from /lib/libc.so.6
#3 0x0ff6bc60 in regexec () from /lib/libc.so.6
#4 0x100005b4 in main () at bug-regex11.c:45
#5 0x0fec1f6c in __libc_start_main () from /lib/libc.so.6
(gdb)