bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3846750b2dac7603ac7bf9f0ae742b6b483490e4
commit 3846750b2dac7603ac7bf9f0ae742b6b483490e4 Author: Marcel Hollerbach <[email protected]> Date: Mon Jun 18 12:45:12 2018 +0200 ecore_con: fix possible segfault with -O3 i get a segfault in this test. (with gcc and clang) It looks like the compilers are doing constant folding because we declared the struct as constant, however, due to using the address of the fild the keyword const is simply not true, thus we are getting a segfault because the address returned by &desc is not correct anymore, due to the fact the constants are rolled out. Differential Revision: https://phab.enlightenment.org/D6309 --- src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c index bc4fa980a5..11ed3d7c97 100644 --- a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c +++ b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c @@ -206,7 +206,7 @@ static Eina_Value _resolve_done(void *data, const Eina_Value v, const Eina_Future *dead_future EINA_UNUSED) { struct resolve_ctx *ctx = data; - const Eina_Value_Array desc = { 0 }; + Eina_Value_Array desc = { 0 }; mark_point(); --
