Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#38833 closed defect (duplicate)

gcc4* (gcc47/gcc48 at least) - future/promise code always fails with segmentation fault 11

Reported by: wuyongwei@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), cooljeanius (Eric Gallager), akimd (Akim Demaille)
Port: gcc48

Description

It seems any code using std::future or std::promise will fail with a segmentation fault. My searching for answers led to the question on StackOverflow. It seems many people have this problem.

http://stackoverflow.com/questions/15778085/is-stdpromise-broken-on-my-machine-using-g-mp

As far as I know, such code does not even compile on Windows (w/ MinGW). On Linux, such code works very well. On Mac, it compiles but then fails.

I do not think the OS/Xcode version matters. Just for the record, the info is as below:

OS: OS X 10.7.5
Xcode: 10.6.1

Change History (4)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… added
Keywords: gcc removed
Owner: changed from macports-tickets@… to mww@…

In the future, please Cc the port maintainer(s).

comment:2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 11 years ago by akimd (Akim Demaille)

Cc: akim.demaille@… added

Cc Me!

Note: See TracTickets for help on using tickets.