https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86861
Bug ID: 86861 Summary: 18_support/new_aligned.cc FAILs Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: redi at gcc dot gnu.org Target Milestone: --- Host: *-*-solaris2.10 Target: *-*-solaris2.10 Build: *-*-solaris2.10 Thew new 18_support/new_aligned.cc test FAILs on Solaris 10 (sparc and x86), which lacks aligned_alloc in libc: +FAIL: 18_support/new_aligned.cc execution test terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc [New Thread 1 (LWP 1)] Thread 2 received signal SIGABRT, Aborted. [Switching to Thread 1 (LWP 1)] 0xfec5c9b5 in _lwp_kill () from /lib/libc.so.1 (gdb) where #0 0xfec5c9b5 in _lwp_kill () from /lib/libc.so.1 #1 0xfec5782c in thr_kill () from /lib/libc.so.1 #2 0xfec037db in raise () from /lib/libc.so.1 #3 0xfebe29f5 in abort () from /lib/libc.so.1 #4 0xfeedddad in __gnu_cxx::__verbose_terminate_handler () at /vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++/vterminate.cc:95 #5 0xfeeda727 in __cxxabiv1::__terminate(void (*)()) () at /vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++/eh_terminate.cc:47 #6 0xfeeda7a0 in std::terminate () at /vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++/eh_terminate.cc:57 #7 0xfeedaaa8 in __cxxabiv1::__cxa_throw (obj=0x8066ab8, tinfo=0xfef763ac <typeinfo for std::bad_alloc>, dest=0xfeed8380 <std::bad_alloc::~bad_alloc()>) at /vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++/eh_throw.cc:95 #8 0xfeedc257 in operator new (sz=1, al=(unknown: 1)) at /vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++/new_opa.cc:113 #9 0x0805104d in Test::Test (this=0x8047494, size=1, a=1) at /vol/gcc/src/hg/trunk/local/libstdc++-v3/testsuite/18_support/new_aligned.cc:29 #10 0x080511ad in test01 () at /vol/gcc/src/hg/trunk/local/libstdc++-v3/testsuite/18_support/new_aligned.cc:64 #11 0x080519fe in main () at /vol/gcc/src/hg/trunk/local/libstdc++-v3/testsuite/18_support/new_aligned.cc:118