This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/58822] Segfault when calling make_shared


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58822

--- Comment #25 from Michi Henning <michi at triodia dot com> ---
(In reply to Jonathan Wakely from comment #24)
> (In reply to Michi Henning from comment #20)
> > I'm pretty sure that I'm not using anything in shared_ptr that's outside the
> > standard, and the standard way to get access to shared_ptr is to include
> > <memory>. If I include something else, I end up in implementation territory,
> > don't I?
> 
> Yes, but you're trying to report a bug specific to this implementation, not
> in the standard.

Right. As best as I can tell, this is a code generation bug in gcc. Clang
generates code for the same thing that works fine.

> If you still haven't reduced this I'll do so, but it might have to wait a
> week or two.

I'm really time-limited at the moment. I tried creduce, but the latest version
requires an upgrade to Perl, and I haven't gotten around to installing that
yet.

One thing that is really taxing is the difficulty of whittling down the system
headers. I started out with over 25,000 lines of very convoluted template code,
which I have laboriously reduced to around 1300 lines. Of those, a good 800
lines or so are from type_traits, and its exceedingly difficult to reduce that
included code further.

I tried creduce, but it bombs on my machine. I'm told that I have to use the
latest Perl for it to work, but haven't gotten around to installing that yet.

If you care to have a look, I'd appreciate it very much! I'm under too much
pressure at the moment to find the extra cycles to work on this. It's not a
show-stopper right now for me, but it will be in another three weeks from. If
only there were more than 24 hours in a day :-(

Thanks,

Michi.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]