Re: [Grep-devel] regex and grep severely broken on HP-UX

2018-12-16 Thread Bruno Haible
Hi Paul, > Some HP-UX versions have a broken 'calloc' that could explain the bug. The > broken 'calloc' returns memory that isn't properly zeroed. Can you > investigate > whether zeroing the calloc memory fixes the bug? Perhaps something like the > attached Gnulib patch? This patch does not h

Re: [Grep-devel] regex and grep severely broken on HP-UX

2018-12-16 Thread Paul Eggert
Some HP-UX versions have a broken 'calloc' that could explain the bug. The broken 'calloc' returns memory that isn't properly zeroed. Can you investigate whether zeroing the calloc memory fixes the bug? Perhaps something like the attached Gnulib patch? Thanks. diff --git a/lib/calloc.c b/lib/cal

Re: [Grep-devel] regex and grep severely broken on HP-UX

2018-12-16 Thread Jim Meyering
On Sun, Dec 16, 2018 at 11:34 AM Bruno Haible wrote: > > So grep worked on HP-UX before because it was using the system regex code? > > I don't know. Maybe GNU grep never worked on HP-UX hppa? Or maybe it worked > only when compiled by gcc? Or maybe the machine I have access to has a > particularl

Re: [Grep-devel] regex and grep severely broken on HP-UX

2018-12-16 Thread Bruno Haible
Hi Jim, > So grep worked on HP-UX before because it was using the system regex code? I don't know. Maybe GNU grep never worked on HP-UX hppa? Or maybe it worked only when compiled by gcc? Or maybe the machine I have access to has a particularly buggy cc compiler? Or maybe GNU grep worked as long

Re: [Grep-devel] regex and grep severely broken on HP-UX

2018-12-16 Thread Jim Meyering
On Sun, Dec 16, 2018 at 9:16 AM Bruno Haible wrote: > > More on this: > > On HP-UX hppa (both 32-bit and 64-bit mode), regex and grep are broken. > > The result in different gnulib versions is the same (HP-UX hppa, 32-bit): > > Version Result > - > 20

Re: regex and grep severely broken on HP-UX

2018-12-16 Thread Bruno Haible
More on this: > On HP-UX hppa (both 32-bit and 64-bit mode), regex and grep are broken. The result in different gnulib versions is the same (HP-UX hppa, 32-bit): Version Result - 20140101crash in regexec.c, line 1123 20150101crash in regexec

Re: regex and grep severely broken on HP-UX

2018-12-16 Thread Bruno Haible
More on this: > On HP-UX 11.31, hppa, in 32-bit mode, with cc, I observe the following > test failures: On HP-UX hppa (both 32-bit and 64-bit mode), regex and grep are broken. On HP-UX ia64 (both 32-bit and 64-bit mode), regex and grep both work fine. Bruno

regex and grep severely broken on HP-UX

2018-12-16 Thread Bruno Haible
On HP-UX 11.31, hppa, in 32-bit mode, with cc, I observe the following test failures: 1) Among the gnulib tests (both from the 'grep' snapshot, as well as from a gnulib testdir): FAIL: test-regex $ ./test-regex Assertion failed: err == REG_ESPACE, file ../../lib/regexec.c, line 1077 ABORT instr