This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: more on cat-gets/tst-catgets


Ulrich,
    My mistake...not enough coffee yet this morning. I can indeed 
reproduce this on a stock sed 3.0.2 when building with 

./configure --with-regex=
make
make check

I get...

Patience, the dc.sed test is expected to take a while...
../sed/sed -n -f ../dc.sed < ./dc.inp >tmp.dc
make[2]: *** [dc] Error 139
make[2]: Leaving directory `/home/howarth/sed-3.02/testsuite'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/howarth/sed-3.02'
make: *** [check] Error 2

which yields a backtrace of...

howarth@bogus:~/sed-3.02/testsuite$ gdb ../sed/sed
GNU gdb 2002-08-18-cvs
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 "powerpc-linux"...
(gdb) run  -n -f ../dc.sed < ./dc.inp >tmp.dc
Starting program: /home/howarth/sed-3.02/sed/sed -n -f ../dc.sed < ./dc.inp >tmp.dc

Program received signal SIGSEGV, Segmentation fault.
0x0ff67804 in re_exec () from /lib/libc.so.6
(gdb) bt
#0  0x0ff67804 in re_exec () from /lib/libc.so.6
#1  0x0ff677dc in re_exec () from /lib/libc.so.6
#2  0x0ff66d3c in re_exec () from /lib/libc.so.6
#3  0x0ff66140 in regexec () from /lib/libc.so.6
#4  0x10003974 in do_subst (sub=0x1008a838) at execute.c:755
#5  0x10004094 in execute_program (vec=0x7fffffff, input=0x7ffffae8)
    at execute.c:932
#6  0x10002ba0 in process_files (the_program=0x10016370, argv=0x4)
    at execute.c:208
#7  0x10000e0c in main (argc=4, argv=0x10010000) at sed.c:184
#8  0x0fec4d0c in __libc_start_main () from /lib/libc.so.6
(gdb) 

Since I have reports of this on debian i386 as well it appears
that this is a cross-platform problem.
                            Jack


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]