Wes McKinney created ARROW-9500:
-----------------------------------
Summary: [C++] Fix segfault with std::to_string in -O3 builds on
gcc 7.5.0
Key: ARROW-9500
URL: https://issues.apache.org/jira/browse/ARROW-9500
Project: Apache Arrow
Issue Type: Bug
Components: C++
Reporter: Wes McKinney
Assignee: Wes McKinney
Fix For: 1.0.0
There seems to be a gcc bug related to {{std::to_string}} that only appears in
{{-O3}} builds. It can be seen in something innocuous like
{code}
return Status::Invalid("Float value ", std::to_string(val), " was truncated
converting to",
*output.type());
{code}
where val is NaN. I haven't found a canonical reference but using something
other than to_string for the formatting (here just letting
{{std::ostringstream}} take care of it) makes the problem go away
I wasn't able to reproduce the issue with gcc-8
--
This message was sent by Atlassian Jira
(v8.3.4#803005)