[ 
https://issues.apache.org/jira/browse/GEODE-9431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382252#comment-17382252
 ] 

Blake Bender edited comment on GEODE-9431 at 7/16/21, 6:13 PM:
---------------------------------------------------------------

Things we have tried, in an attempt to work around or fix this:

 

i. Moved the {{regex}} variable declaration out of 
`HostStatSampler::forEachIndexStatFile` to see if it made any difference

ii. Simplified the `regex` to make sure it wasn't the string expression passed 
in that was blowing up

iii. Made `HostStatSampler::forEachIndexStatFile` a regular method taking an 
`std::function` parameter, rather than a template

iv. Turned off all compiler optimization (`-O0`), for the individual function, 
then file, then entire code base

v. Added the same `regex` variable to the test code, to see if it only blows up 
in library code, as opposed to app code.  Spoiler alert: no

 

We are now in the process of investigation the following potential fixes:

vi. Figure out what compiler/tool/library(ies) were updated when we last built 
our RHEL-8 image, and see if we can roll back

vii. Switch from `std::regex` to `boost::regex` to see if boost has the same 
problem

 


was (Author: bbender):
Things we have tried, in an attempt to work around or fix this:

 

i. Moved the `regex` variable declaration out of 
`HostStatSampler::forEachIndexStatFile` to see if it made any difference

ii. Simplified the `regex` to make sure it wasn't the string expression passed 
in that was blowing up

iii. Made `HostStatSampler::forEachIndexStatFile` a regular method taking an 
`std::function` parameter, rather than a template

iv. Turned off all compiler optimization (`-O0`), for the individual function, 
then file, then entire code base

v. Added the same `regex` variable to the test code, to see if it only blows up 
in library code, as opposed to app code.  Spoiler alert: no

 

We are now in the process of investigation the following potential fixes:

vi. Figure out what compiler/tool/library(ies) were updated when we last built 
our RHEL-8 image, and see if we can roll back

vii. Switch from `std::regex` to `boost::regex` to see if boost has the same 
problem

 

> CI Failure: SegFault in apache-geode_unittests
> ----------------------------------------------
>
>                 Key: GEODE-9431
>                 URL: https://issues.apache.org/jira/browse/GEODE-9431
>             Project: Geode
>          Issue Type: Bug
>          Components: native client
>            Reporter: Kamilla Aslami
>            Priority: Major
>
> {{Two consequent geode-native-develop/build-rhel-8-release runs failed with 
> segmentation fault: }}
> {noformat}
> selected worker: 3eb01fee-0959-4e2d-8c25-44a153962eaa
> Warning: Permanently added '34.67.7.72' (ECDSA) to the list of known hosts.
> Test project /home/build/build/cppcache/test
>     Start 1: apache-geode_unittests
> 1/1 Test #1: apache-geode_unittests ...........***Exception: SegFault  0.43 
> sec
> Running main() from 
> /home/build/build/dependencies/gtest/gtest-extern-prefix/src/gtest-extern/googletest/src/gtest_main.cc
> [==========] Running 374 tests from 42 test suites.
> [----------] Global test environment set-up.
> [----------] 6 tests from durationTest
> [ RUN      ] durationTest.ceil
> [       OK ] durationTest.ceil (0 ms)
> [ RUN      ] durationTest.toString
> [       OK ] durationTest.toString (0 ms)
> [ RUN      ] durationTest.fromString
> [       OK ] durationTest.fromString (0 ms)
> [ RUN      ] durationTest.fromStringWithCeil
> [       OK ] durationTest.fromStringWithCeil (0 ms)
> [ RUN      ] durationTest.fromStringException
> [       OK ] durationTest.fromStringException (0 ms)
> [ RUN      ] durationTest.assertBounds
> [       OK ] durationTest.assertBounds (1 ms)
> [----------] 6 tests from durationTest (1 ms total){noformat}
> ...
> {noformat}
> 0% tests passed, 1 tests failed out of 1
> Total Test time (real) =   0.91 sec
> The following tests FAILED:
>    1 - apache-geode_unittests (SEGFAULT)
> Errors while running CTest{noformat}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to