public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/111315] New: libstdc++ stacktrace testsuite failures with --enable-default-pie
@ 2023-09-07  3:49 rimvydas.jas at gmail dot com
  2023-09-07  3:58 ` [Bug libstdc++/111315] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rimvydas.jas at gmail dot com @ 2023-09-07  3:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111315

            Bug ID: 111315
           Summary: libstdc++ stacktrace testsuite failures with
                    --enable-default-pie
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rimvydas.jas at gmail dot com
  Target Milestone: ---

The GCC configured with --enable-default-pie gives:

                === libstdc++ tests ===

Running target unix
FAIL: 19_diagnostics/stacktrace/entry.cc execution test
FAIL: 19_diagnostics/stacktrace/stacktrace.cc execution test

libstdc++-v3/testsuite/19_diagnostics/stacktrace/entry.cc:39: void
test_members(): Assertion 'e1.source_line() == (__LINE__ - 5)' failed.
libstdc++-v3/testsuite/19_diagnostics/stacktrace/stacktrace.cc:132: void
test_assign(): Assertion 's0.at(0).source_line() == (__LINE__ - 4)' failed.

In both cases source_line() methods return 0.

Also, the -fno-pie option cannot be used when linking these tescases:
/usr/bin/ld: /tmp/ccv2BTff.o: relocation R_X86_64_32 against symbol
`_ZNSt16stacktrace_entry14_S_err_handlerEPvPKci' can not be used when making a
PIE object; recompile with -fPIE

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-11-06 23:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07  3:49 [Bug libstdc++/111315] New: libstdc++ stacktrace testsuite failures with --enable-default-pie rimvydas.jas at gmail dot com
2023-09-07  3:58 ` [Bug libstdc++/111315] " pinskia at gcc dot gnu.org
2023-09-07 10:34 ` xry111 at gcc dot gnu.org
2023-09-07 10:38 ` xry111 at gcc dot gnu.org
2023-10-31 20:06 ` [Bug libbacktrace/111315] " pinskia at gcc dot gnu.org
2023-11-03 10:03 ` xry111 at gcc dot gnu.org
2023-11-03 16:26 ` rimvydas.jas at gmail dot com
2023-11-03 16:32 ` redi at gcc dot gnu.org
2023-11-06 23:11 ` cvs-commit at gcc dot gnu.org
2023-11-06 23:12 ` cvs-commit at gcc dot gnu.org
2023-11-06 23:13 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).