Re: Bug gives no stack trace on segfault
On Sun, 17 Mar 2019, 00:21 nick, wrote: > Greetings, > > I've been busy so this probably has been fixed in since I last worked on > it: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 > > I was using these instructions to try and get a trace: > https://www.gnu.org/software/gcc/bugs/segfault.html > > But nothing seems to be outputted and don't known if that's normal. Here > is what I'm > running the program with and I've enabled --enable-checking: > > gdb --args ./bin/g++ -v -da -Q -fconcepts test.cpp > That is not what the instructions you linked to tell you to do. You need to run that command to find out how the g++ driver invokes the cc1plus compiler, and then debug cc1plus, not g++.
Re: Bug gives no stack trace on segfault
On 2019-03-17 6:50 a.m., Jonathan Wakely wrote: > On Sun, 17 Mar 2019, 00:21 nick, wrote: > >> Greetings, >> >> I've been busy so this probably has been fixed in since I last worked on >> it: >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 >> >> I was using these instructions to try and get a trace: >> https://www.gnu.org/software/gcc/bugs/segfault.html >> >> But nothing seems to be outputted and don't known if that's normal. Here >> is what I'm >> running the program with and I've enabled --enable-checking: >> >> gdb --args ./bin/g++ -v -da -Q -fconcepts test.cpp >> > > That is not what the instructions you linked to tell you to do. > > You need to run that command to find out how the g++ driver invokes the > cc1plus compiler, and then debug cc1plus, not g++. > Jonathan, Thanks I wasn't running them correctly it seems. I'm wondering after tracing it as this looks very odd to me but does this: if (tree prev = lookup_concept_satisfaction (tmpl, targs)) return prev; on line 2044 in gcc/cp/constraint.cc return a NULL_TREE if it's no found as that seems to be the case in the bug as it's the one place that is mostly after a very brief look at for the segfault. Nick
gcc-9-20190317 is now available
Snapshot gcc-9-20190317 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/9-20190317/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 9 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk revision 269746 You'll find: gcc-9-20190317.tar.xzComplete GCC SHA256=dcedeeacde5f1cb4a9b537a886b7f916c12a607bc31d1a8e431d457aa2877914 SHA1=0d8584fb04f29c4bf887bf283d899e9cb2a9feff Diffs from 9-20190310 are available in the diffs/ subdirectory. When a particular snapshot is ready for public consumption the LATEST-9 link is updated and a message is sent to the gcc list. Please do not use a snapshot before it has been announced that way.