public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58366] New: thread_local class containing bound function leads to : "Illegal instruction: 4"
@ 2013-09-08 21:31 jbcoe at me dot com
  2013-09-08 22:23 ` [Bug c++/58366] invocation of " paolo.carlini at oracle dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jbcoe at me dot com @ 2013-09-08 21:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58366
           Summary: thread_local class containing bound function leads to
                    : "Illegal instruction: 4"
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbcoe at me dot com

Created attachment 30768
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30768&action=edit
small program illustrating crash

I've struggled to pare this bug down to a smaller example but noticed that 
invocation of a thread_local random number generating functor in GCC 4.8.1
caused a regular, though not always reproducible, crash that I did not see in
Clang 3.3.

Both thread_local and use of std::bind seem to be necessary to reproduce the
crash.

Code was compiled with -std=c++11


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

end of thread, other threads:[~2020-11-04 15:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-08 21:31 [Bug c++/58366] New: thread_local class containing bound function leads to : "Illegal instruction: 4" jbcoe at me dot com
2013-09-08 22:23 ` [Bug c++/58366] invocation of " paolo.carlini at oracle dot com
2013-09-09 19:36 ` jbcoe at me dot com
2013-09-09 19:39 ` paolo.carlini at oracle dot com
2013-09-09 19:41 ` jbcoe at me dot com
2013-09-09 19:59 ` dominiq at lps dot ens.fr
2013-09-09 20:31 ` paolo.carlini at oracle dot com
2013-09-09 20:35 ` dominiq at lps dot ens.fr
2013-09-09 22:05 ` jbcoe at me dot com
2013-09-09 22:07 ` jbcoe at me dot com
2013-09-09 22:07 ` jbcoe at me dot com
2013-09-09 22:31 ` redi at gcc dot gnu.org
2013-09-09 22:39 ` paolo.carlini at oracle dot com
2020-08-29 19:53 ` tobias.bruell at gmail dot com
2020-11-04 15:13 ` redi 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).