bug-gawk
[Top][All Lists]
Advanced

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

Re: Test failure (pma) with gawk-5.2.0 beta


From: arnold
Subject: Re: Test failure (pma) with gawk-5.2.0 beta
Date: Mon, 22 Aug 2022 08:38:59 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Sam,

Any info? I'd like to try to track this down.

Thanks,

Arnold

arnold@skeeve.com wrote:

> Hi.
>
> Thanks for the report. It looks like gawk is being built as a PIE
> executable, and it needs to be non-PIE. The code in configure (from
> m4/pma.m4) adds the -no-pie flag to the compile flags which should do
> the trick.
>
> When make runs, do you see the -no-pie flag on the GCC command lines?
>
> In any case, please send on:
>
> - CPU architecture
> - OS version
> - The output of config.guess on that system
> - The result of running `file gawk'
>
> If this is the only test that fails then all regular uses of gawk should
> be fine, and only the new persistent memory feature won't work, but
> I'd like to solve that issue as well.
>
> Thanks,
>
> Arnold
>
> Sam James <sam@gentoo.org> wrote:
>
> > Hi!
> >
> > Thanks for the new beta release.
> >
> > I get the following segfault when running the gawk-5.2.0 beta (5.1.65) test 
> > suite:
> > ```
> > Core was generated by `../gawk BEGIN { print ++i }'.
> > Program terminated with signal SIGSEGV, Segmentation fault.
> > #0  0x000055a9583867f2 in in_array (s=0x2ad8c002e810, a=0x2ad8c0006978) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/awk.h:1916
> > 1916            ret = a->aexists(a, s);
> > (gdb) bt
> > #0  0x000055a9583867f2 in in_array (s=0x2ad8c002e810, a=0x2ad8c0006978) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/awk.h:1916
> > #1  lookup (name=<optimized out>) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/symbol.c:162
> > #2  0x000055a958375c06 in err (isfatal=isfatal@entry=false, 
> > s=s@entry=0x55a9583aa659 "", emsg=0x55a9583aa302 "fatal error: internal 
> > error", argp=argp@entry=0x7ffc4587fdd0)
> >     at /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/msg.c:56
> > #3  0x000055a958376e51 in msg (mesg=<optimized out>) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/msg.c:122
> > #4  0x000055a958376f3b in catchsig (sig=11) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/main.c:1318
> > #5  <signal handler called>
> > #6  0x000055a9583867f2 in in_array (s=0x2ad8c002e7b8, a=0x2ad8c0006978) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/awk.h:1916
> > #7  lookup (name=<optimized out>) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/symbol.c:162
> > #8  0x000055a958318d6b in init_symbol_table () at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/symbol.c:114
> > #9  init_symbol_table () at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/symbol.c:75
> > #10 main (argc=2, argv=0x7ffc45880708) at 
> > /var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/main.c:324
> > ```
> >
> > ```
> > time
> > egrep: warning: egrep is obsolescent; using /bin/grep -E
> > make[3]: Leaving directory 
> > '/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/test'
> > make[3]: Entering directory 
> > '/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/test'
> > pma
> > make[3]: *** [Makefile:2215: pma] Segmentation fault (core dumped)
> > make[3]: Leaving directory 
> > '/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/test'
> > make[2]: *** [Makefile:2201: pma-tests] Error 2
> > make[2]: *** Waiting for unfinished jobs....
> > make[3]: Leaving directory 
> > '/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/test'
> > make[2]: Leaving directory 
> > '/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/test'
> > make[1]: *** [Makefile:804: check-recursive] Error 1
> > make[1]: Leaving directory 
> > '/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65'
> > make: *** [Makefile:1103: check] Error 2
> >  * ERROR: sys-apps/gawk-5.1.65::gentoo failed (test phase):
> >  *   Make check failed. See above for details.
> > ```
> >
> > Let me know if more information is needed. Built w/ gcc 12.2.0.
> >
> > Best,
> > sam



reply via email to

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