{"action":"closed","issue":{"url":"https://api.github.com/repos/ADLINK-IST/opensplice/issues/52","repository_url":"https://api.github.com/repos/ADLINK-IST/opensplice","labels_url":"https://api.github.com/repos/ADLINK-IST/opensplice/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ADLINK-IST/opensplice/issues/52/comments","events_url":"https://api.github.com/repos/ADLINK-IST/opensplice/issues/52/events","html_url":"https://github.com/ADLINK-IST/opensplice/issues/52","id":320611591,"node_id":"MDU6SXNzdWUzMjA2MTE1OTE=","number":52,"title":"Assert 'header->confidence == (0x504F5448)' if QosProvider is garbage collected","user":{"login":"Gasper","id":713219,"node_id":"MDQ6VXNlcjcxMzIxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/713219?v=4","gravatar_id":"","url":"https://api.github.com/users/Gasper","html_url":"https://github.com/Gasper","followers_url":"https://api.github.com/users/Gasper/followers","following_url":"https://api.github.com/users/Gasper/following{/other_user}","gists_url":"https://api.github.com/users/Gasper/gists{/gist_id}","starred_url":"https://api.github.com/users/Gasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gasper/subscriptions","organizations_url":"https://api.github.com/users/Gasper/orgs","repos_url":"https://api.github.com/users/Gasper/repos","events_url":"https://api.github.com/users/Gasper/events{/privacy}","received_events_url":"https://api.github.com/users/Gasper/received_events","type":"User","site_admin":false},"labels":[{"id":4325606,"node_id":"MDU6TGFiZWw0MzI1NjA2","url":"https://api.github.com/repos/ADLINK-IST/opensplice/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"michielb-adlink","id":28301928,"node_id":"MDQ6VXNlcjI4MzAxOTI4","avatar_url":"https://avatars2.githubusercontent.com/u/28301928?v=4","gravatar_id":"","url":"https://api.github.com/users/michielb-adlink","html_url":"https://github.com/michielb-adlink","followers_url":"https://api.github.com/users/michielb-adlink/followers","following_url":"https://api.github.com/users/michielb-adlink/following{/other_user}","gists_url":"https://api.github.com/users/michielb-adlink/gists{/gist_id}","starred_url":"https://api.github.com/users/michielb-adlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michielb-adlink/subscriptions","organizations_url":"https://api.github.com/users/michielb-adlink/orgs","repos_url":"https://api.github.com/users/michielb-adlink/repos","events_url":"https://api.github.com/users/michielb-adlink/events{/privacy}","received_events_url":"https://api.github.com/users/michielb-adlink/received_events","type":"User","site_admin":false},"assignees":[{"login":"michielb-adlink","id":28301928,"node_id":"MDQ6VXNlcjI4MzAxOTI4","avatar_url":"https://avatars2.githubusercontent.com/u/28301928?v=4","gravatar_id":"","url":"https://api.github.com/users/michielb-adlink","html_url":"https://github.com/michielb-adlink","followers_url":"https://api.github.com/users/michielb-adlink/followers","following_url":"https://api.github.com/users/michielb-adlink/following{/other_user}","gists_url":"https://api.github.com/users/michielb-adlink/gists{/gist_id}","starred_url":"https://api.github.com/users/michielb-adlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michielb-adlink/subscriptions","organizations_url":"https://api.github.com/users/michielb-adlink/orgs","repos_url":"https://api.github.com/users/michielb-adlink/repos","events_url":"https://api.github.com/users/michielb-adlink/events{/privacy}","received_events_url":"https://api.github.com/users/michielb-adlink/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-05-06T17:34:49Z","updated_at":"2018-08-06T12:36:38Z","closed_at":"2018-08-06T12:36:38Z","author_association":"NONE","body":"Whenever QosProvider object is garbage collected program terminates with\r\n> /{path}/src/database/database/code/c_base.c:2407: c_free: Assertion `header->confidence == (0x504F5448)' failed.\r\n\r\nThe issue occurs on OSPL_V6_7_180404OSS_RELEASE release (built from source) on Centos 7.3, Java 1.8 update 144.\r\n\r\nBacktrace of the issue:\r\n> #0  0x00007f874c5dd1f7 in raise () from /lib64/libc.so.6\r\n> #1  0x00007f874c5de8e8 in abort () from /lib64/libc.so.6\r\n> #2  0x00007f874c5d6266 in __assert_fail_base () from /lib64/libc.so.6\r\n> #3  0x00007f874c5d6312 in __assert_fail () from /lib64/libc.so.6\r\n> #4  0x00007f86f4e688d0 in c_free (object=0x7f87448d45b0) at /{...}src/database/database/code/c_base.c:2407\r\n> #5  0x00007f86f4eb462c in sd_cdrInfoFree (ci=0x7f87448d9fd0) at /{...}src/database/serialization/code/sd_cdr.c:4435\r\n> #6  0x00007f86f52a9ae9 in saj_copyCacheFree (copyCache=0x7f87448d65b0) at /{...}src/api/dcps/java/common/c/code/saj_copyCache.c:382\r\n> #7  0x00007f86f52fbc92 in saj_qosProviderDeinitCopyCaches (_this=0x7f87448d7b50) at /{...}src/api/dcps/java/common/c/code/saj_qosProvider.c:136\r\n> #8  0x00007f86f52fbf2f in Java_DDS_QosProvider_jniQosProviderFree (env=0x7f87440849f8, jqosProvider=0x7f8730cd8720, qosProvider=140218947435344)\r\n>     at /{...}src/api/dcps/java/common/c/code/saj_qosProvider.c:234\r\n> #9  0x00007f8735017a34 in ?? ()\r\n> #10 0x00007f8730cd86f0 in ?? ()\r\n> ...\r\n\r\nThe issue can be replicated with:\r\n```\r\nSystem.setProperty(ServiceEnvironment.IMPLEMENTATION_CLASS_NAME_PROPERTY,\r\n\t\t\"org.opensplice.dds.core.OsplServiceEnvironment\");\r\n\t\t\r\nServiceEnvironment env = ServiceEnvironment.createInstance(QosProviderTest.class.getClassLoader());\r\nQosProvider provider = env.getSPI()\r\n\t\t.newQosProvider(\"file://path/to/qos.xml\", \"\");\r\n\r\n// Arbitrary call to prevent it from being removed as some optimization\r\nprovider.toString();\r\n\r\n// Set it to null and wait for it to be garbage collected\r\nprovider = null;\r\nSystem.gc();\r\n\r\nList<Object> objects = new LinkedList<>();\r\nfor (int i = 0; i < 20000000; i++) {\r\n\tobjects.add(new Object());\r\n}\r\n```\r\n\r\n"}}
{"actor":{"display_login":"michielb-adlink"}}