Project

General

Profile

Actions

Bug #179

closed

Bug #77: SCons build system bug fixes

SCons build on Linux breaks interpreter?

Added by Ole Hansen almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
Start date:
06/22/2017
Due date:
% Done:

100%

Estimated time:
16.00 h
Spent time:
Responsible:
Ed Brash

Description

How to reproduce:

Build with SCons on Linux (tested both CentOS 7 with gcc 4.8.5 and Arch Linux with gcc 7.1)
Run analyzer
Do some C++11:

analyzer [0] vector<double> dvars {3.45, 1.5, 9.91, 6.28, -2.718}
(std::vector<double> &) { 3.45000, 1.50000, 9.91000, 6.28000, -2.71800 }
analyzer [1] for( auto x : dvars ) cout << x << ", "; cout << endl;

Often (but not always), the for loop results in a segfault. This even happens for different forms of the loop, e.g. (for int i=...), or different loop bodies.

When building with make, or on MacOS X, no such problem.

I noticed that SCons adds the "-rdynamic" compilation flag, which make doesn't.

Actions

Also available in: Atom PDF