Open Alex-EEE opened 1 year ago
This is the same I saw in https://github.com/wlav/cppyy/issues/226#issuecomment-2041499781
I'm pretty sure it is related to static initialization issues. Could be some crazy hidden template missing, like for the string bug in https://github.com/wlav/cppyy/issues/175#issuecomment-1811035639
The above is one of those that works fine for me / can't reproduce. Maybe indeed very specific version combos of gcc / linux.
I had an issue where reading from the array from a vector declared globally, but inside a namespace, triggered a seg fault when trying to read the pointer returned by zi.data(). However, replacing the vector with a float array removed the issue. (Moreover, compiling the code manually also had no seg fault). I'm wondering if these headers are being processed correctly by cling?
This seg faults, only in cppyy, not when compiled manually:
Changing to this allows cppyy to function again: