-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runner.getPastStepValuesForMeasure can cause segfault #5192
Comments
I think it's an encoding issue when converting from Json::Value to a string to be used as a key I can reproduce using this Python: it works
Ruby
|
I try to make it a symbol... and that's the issue OpenStudio/src/utilities/core/jsoncpp.i Line 111 in 53c1d69
rb_intern uses us_ascii encoding. There's a rb_intern3 that takes an encoding, but that isn't public by default and I can't get swig to find it yet I don't know how to fix it. |
``` The following tests FAILED: 3705 - RubyTest-SwigJson_Test-swig_json_special_chars (Failed) 3870 - CLITest-SwigJson_Test-swig_json_special_chars (Failed) ```
``` The following tests FAILED: 3705 - RubyTest-SwigJson_Test-swig_json_special_chars (Failed) 3870 - CLITest-SwigJson_Test-swig_json_special_chars (Failed) ```
#5192 - Fix runner.getPastStepValuesForMeasure can cause segfault
Issue overview
I believe that certain values (i.e., containing special characters?) stored in "value" of a workflow step can cause a segfault. I have not investigated/narrowed this down, however.
Current Behavior
Expected Behavior
Steps to Reproduce
Execute
runner.getPastStepValuesForMeasure('apply_upgrade')
from resstock's UpgradeCosts measure. Values can contain "(", "|", etc.Possible Solution
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
The text was updated successfully, but these errors were encountered: