[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2020-02-03 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Ian Lance Taylor  ---
Thanks for looking into it.  This is probably fixed on GCC trunk.

[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2020-02-03 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

--- Comment #6 from CVS Commits  ---
The master branch has been updated by Ian Lance Taylor :

https://gcc.gnu.org/g:628ee3c2f339da37e7570bcce0ebc6eb12bc33ae

commit r10-6422-g628ee3c2f339da37e7570bcce0ebc6eb12bc33ae
Author: Ian Lance Taylor 
Date:   Mon Feb 3 16:44:33 2020 -0800

libbacktrace: always pass -g when compiling test code

This approach required adding a few casts to ztest.c, as it is now
compiled with -Wall.

Fixes PR libbacktrace/90636

[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2020-02-03 Thread thomas.or...@uni-hamburg.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

--- Comment #5 from Dr. Thomas Orgis  ---
I traced it down to the gcc build process not applying the -g flag
consistently.

In my build log, I see the respective objects being built two times (not sure
in which directory the second one happens, as the build is parallel and needs
enough time as it is …). On the second time, the build includes '-g -O2'. On
the first time not (only my own CFLAGS in case I had some set).

Same for ttest and ttest_alloc. When I enter the build tree and remove the
object files, remaking them does include the correct flags including -g and the
testsuite of libbacktrace passes.

I bet there is a number of people more intimate with the gcc build system,
hopefully able to discern why an intermediate build with missing -g happens. I
issue a default bootstrap build with 'make -j8'.

[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2020-02-03 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

--- Comment #4 from Ian Lance Taylor  ---
It's odd, in that we're not seeing the same problem.  It's serious if you
absolutely rely on getting good information from libbacktrace in all
circumstances.  It doesn't indicate a problem deeper than an inability to find
the function name in some cases.

[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2020-02-03 Thread thomas.or...@uni-hamburg.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

Dr. Thomas Orgis  changed:

   What|Removed |Added

 CC||thomas.or...@uni-hamburg.de

--- Comment #3 from Dr. Thomas Orgis  ---
As I already mentioned in the mirrored bug on github
(https://github.com/ianlancetaylor/libbacktrace/issues/30), I added those two
noclone attributes to edtest and it changed nothing:

user@host:/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/libbacktrace$ make
edtest
/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./prev-gcc/xgcc
-B/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./prev-gcc/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/bin/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/bin/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/lib/ -isystem
/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/include -isystem
/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/sys-include
-L/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./ld   -fchecking=1
-DHAVE_CONFIG_H -I. -I../../gcc-9.2.0/libbacktrace  -I
../../gcc-9.2.0/libbacktrace/../include -I
../../gcc-9.2.0/libbacktrace/../libgcc -I ../libgcc  -funwind-tables
-frandom-seed=edtest.o -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-Wcast-qual  -g -O2 -fchecking=1 -c -o edtest.o
../../gcc-9.2.0/libbacktrace/edtest.c
/bin/bash ./libtool  --tag=CC   --mode=link
/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./prev-gcc/xgcc
-B/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./prev-gcc/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/bin/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/bin/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/lib/ -isystem
/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/include -isystem
/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/sys-include
-L/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./ld   -fchecking=1
-funwind-tables -frandom-seed=edtest -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -Wcast-qual  -g -O2 -fchecking=1  -static-libstdc++
-static-libgcc  -o edtest edtest.o edtest2_build.o testlib.o libbacktrace.la 
libtool: link:
/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./prev-gcc/xgcc
-B/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./prev-gcc/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/bin/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/bin/
-B/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/lib/ -isystem
/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/include -isystem
/sw/env/system-gcc/gcc/9.2.0-testing/x86_64-pc-linux-gnu/sys-include
-fchecking=1 -funwind-tables -frandom-seed=edtest -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -Wcast-qual -g -O2 -fchecking=1 -static-libstdc++
-static-libgcc -o edtest edtest.o edtest2_build.o testlib.o 
-L/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/./ld
./.libs/libbacktrace.a
user@host:/dev/shm/sw/env/system-gcc/gcc/9.2.0-testing/build/libbacktrace$
./edtest
test1: [1]: missing file name or function name
FAIL: backtrace_full alloc stress

So … is this something serious?

[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2019-06-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

--- Comment #2 from Tom de Vries  ---
Romain,

For commit "[libbacktrace] Add btest_lto", I added the noclone attribute next
to each noinline attribute in btest.c.

Perhaps this is needed as well in edtest.c and ttest.c.

Can you try this and see if this fixes the problem you're seeing?

[Bug libbacktrace/90636] [libbacktrace] Tests edtest/edtest_alloc/ttest/ttest_alloc are failing on x64 Linux

2019-05-26 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90636

--- Comment #1 from Ian Lance Taylor  ---
Try changing to the libbacktrace build directory, removing edtest.o, and
running "make edtest".  Presumably then running "./edtest" will fail with the
"missing file name or function name" error.  Paste the make output here.