Re: [pcre-dev] [PCRE 8.20-RC1] Failures on PPC

Kezdőlap
Üzenet törlése
Szerző: Petr Pisar
Dátum:  
Címzett: pcre-dev
Régi témák: [pcre-dev] PCRE 8.20-RC1 is available - Please Test
Tárgy: Re: [pcre-dev] [PCRE 8.20-RC1] Failures on PPC
On Mon, Sep 12, 2011 at 02:25:23PM +0100, Philip Hazel wrote:
> I have just made available the tarballs for the Release Candidate
> 8.20-RC1:
>

I get test failures on PPC when JIT enabled. We have 64-bit kernel and 32-bit
userspace (-m32 GCC option) and some hardening options enabled (CFLAGS=-O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32):

Running JIT regression tests:
............................................................................................................................................................................................................................................/bin/sh:
line 5:  7940 Segmentation fault      ${dir}$tst
FAIL: pcre_jit_test


and later then:

PASS: pcre_stringpiece_unittest
PCRE C library tests
PCRE version 8.20-RC1 2011-09-12
Test 1: main functionality (Compatible with Perl >= 5.8)
  OK
  OK with study
*** stack smashing detected ***: /builddir/build/BUILD/pcre-8.20-RC1/.libs/lt-pcretest terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x58)[0xfe2dba8]
/lib/libc.so.6(+0x11db48)[0xfe2db48]
/builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0(+0x3f6a4)[0xff8f6a4]
/builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0(+0x25948)[0xff75948]
/builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0(+0x25914)[0xff75914]
/builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0(_pcre_jit_exec+0x13c)[0xff75a8c]
/builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0(pcre_exec+0x234)[0xff733b4]
/builddir/build/BUILD/pcre-8.20-RC1/.libs/lt-pcretest[0x100044f8]
/lib/libc.so.6(+0x1e25c)[0xfd2e25c]
/lib/libc.so.6(+0x1e400)[0xfd2e400]
======= Memory map: ========
00100000-00120000 r-xp 00100000 00:00 0                                  [vdso]
0fcd0000-0fcf0000 r-xp 00000000 fd:01 3409592                            /lib/libtinfo.so.5.7
0fcf0000-0fd00000 rw-p 00010000 fd:01 3409592                            /lib/libtinfo.so.5.7
0fd10000-0feb0000 r-xp 00000000 fd:01 3409549                            /lib/libc-2.12.so
0feb0000-0fec0000 r--p 001a0000 fd:01 3409549                            /lib/libc-2.12.so
0fec0000-0fed0000 rw-p 001b0000 fd:01 3409549                            /lib/libc-2.12.so
0fee0000-0ff30000 r-xp 00000000 fd:01 3409637                            /lib/libreadline.so.6.0
0ff30000-0ff40000 rw-p 00040000 fd:01 3409637                            /lib/libreadline.so.6.0
0ff50000-0ffb0000 r-xp 00000000 fd:01 3802595                            /builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0.0.1
0ffb0000-0ffc0000 rw-p 00050000 fd:01 3802595                            /builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcre.so.0.0.1
0ffd0000-0ffe0000 r-xp 00000000 fd:01 3802712                            /builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcreposix.so.0.0.0
0ffe0000-0fff0000 rw-p 00000000 fd:01 3802712                            /builddir/build/BUILD/pcre-8.20-RC1/.libs/libpcreposix.so.0.0.0
10000000-10010000 r-xp 00000000 fd:01 3802747                            /builddir/build/BUILD/pcre-8.20-RC1/.libs/lt-pcretest
10010000-10020000 rw-p 00000000 fd:01 3802747                            /builddir/build/BUILD/pcre-8.20-RC1/.libs/lt-pcretest
10020000-10050000 rwxp 10020000 00:00 0                                  [heap]
f7f60000-f7f70000 rw-p f7f60000 00:00 0 
f7f70000-f7f80000 rwxp f7f70000 00:00 0 
f7f80000-f7fa0000 rw-p f7f80000 00:00 0 
f7fa0000-f7fd0000 r-xp 00000000 fd:01 3409542                            /lib/ld-2.12.so
f7fd0000-f7fe0000 r--p 00020000 fd:01 3409542                            /lib/ld-2.12.so
f7fe0000-f7ff0000 rw-p 00030000 fd:01 3409542                            /lib/ld-2.12.so
ff7a0000-ff8f0000 rw-p fffffea0000 00:00 0                               [stack]
./RunTest: line 199:  8210 Aborted                 $sim $valgrind ./pcretest -q $opt $testdata/testinput1 testtry
FAIL: RunTest



I will try to get interractive access to some PPC to see what happens.

Also I will check this code on n32 MIPS64 today evening. pcrejit(3) says
MIPS32. Does it mean pure 32-bit system, or are n32/o32 ABIs supported too?

-- Petr