{"action":"created","issue":{"url":"https://api.github.com/repos/mz-automation/lib60870/issues/25","repository_url":"https://api.github.com/repos/mz-automation/lib60870","labels_url":"https://api.github.com/repos/mz-automation/lib60870/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/mz-automation/lib60870/issues/25/comments","events_url":"https://api.github.com/repos/mz-automation/lib60870/issues/25/events","html_url":"https://github.com/mz-automation/lib60870/issues/25","id":294816278,"number":25,"title":"SegFault in cs104_server","user":{"login":"Nanahara","id":12445990,"avatar_url":"https://avatars3.githubusercontent.com/u/12445990?v=4","gravatar_id":"","url":"https://api.github.com/users/Nanahara","html_url":"https://github.com/Nanahara","followers_url":"https://api.github.com/users/Nanahara/followers","following_url":"https://api.github.com/users/Nanahara/following{/other_user}","gists_url":"https://api.github.com/users/Nanahara/gists{/gist_id}","starred_url":"https://api.github.com/users/Nanahara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nanahara/subscriptions","organizations_url":"https://api.github.com/users/Nanahara/orgs","repos_url":"https://api.github.com/users/Nanahara/repos","events_url":"https://api.github.com/users/Nanahara/events{/privacy}","received_events_url":"https://api.github.com/users/Nanahara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-06T16:08:06Z","updated_at":"2018-02-06T19:17:19Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI have a Segmentation fault when I execute cs104_server example with cs104_client example (version 2.0.0, it works in 0.9.7)\r\n\r\nhere it is the valgrind result :\r\n==30968== Memcheck, a memory error detector\r\n==30968== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.\r\n==30968== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info\r\n==30968== Command: ./cs104_server\r\n==30968== \r\nNew connection from 127.0.0.1\r\n==30968== Thread 3:\r\n==30968== Invalid read of size 8\r\n==30968==    at 0x41A746: HighPriorityASDUQueue_resetConnectionQueue (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x41B9AD: handleMessage (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x41BFB8: connectionHandlingThread (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x41D6B5: destroyAutomaticThread (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x4E3D063: start_thread (pthread_create.c:309)\r\n==30968==  Address 0x18 is not stack'd, malloc'd or (recently) free'd\r\n==30968== \r\n==30968== \r\n==30968== Process terminating with default action of signal 11 (SIGSEGV)\r\n==30968==  Access not within mapped region at address 0x18\r\n==30968==    at 0x41A746: HighPriorityASDUQueue_resetConnectionQueue (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x41B9AD: handleMessage (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x41BFB8: connectionHandlingThread (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x41D6B5: destroyAutomaticThread (in /home/doerra/HbsSystemTools/lib60870-2.0.0/lib60870-C/_build_/examples/cs104_server/cs104_server)\r\n==30968==    by 0x4E3D063: start_thread (pthread_create.c:309)\r\n==30968==  If you believe this happened as a result of a stack\r\n==30968==  overflow in your program's main thread (unlikely but\r\n==30968==  possible), you can try to increase the size of the\r\n==30968==  main thread stack using the --main-stacksize= flag.\r\n==30968==  The main thread stack size used in this run was 8388608.\r\n==30968== \r\n==30968== HEAP SUMMARY:\r\n==30968==     in use at exit: 1,624 bytes in 15 blocks\r\n==30968==   total heap usage: 76 allocs, 61 frees, 11,328 bytes allocated\r\n==30968== \r\n==30968== LEAK SUMMARY:\r\n==30968==    definitely lost: 0 bytes in 0 blocks\r\n==30968==    indirectly lost: 0 bytes in 0 blocks\r\n==30968==      possibly lost: 544 bytes in 2 blocks\r\n==30968==    still reachable: 1,080 bytes in 13 blocks\r\n==30968==         suppressed: 0 bytes in 0 blocks\r\n==30968== Rerun with --leak-check=full to see details of leaked memory\r\n==30968== \r\n==30968== For counts of detected and suppressed errors, rerun with: -v\r\n==30968== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)\r\nKilled\r\n"},"comment":{"url":"https://api.github.com/repos/mz-automation/lib60870/issues/comments/363533676","html_url":"https://github.com/mz-automation/lib60870/issues/25#issuecomment-363533676","issue_url":"https://api.github.com/repos/mz-automation/lib60870/issues/25","id":363533676,"user":{"login":"mzillgith","id":25686324,"avatar_url":"https://avatars3.githubusercontent.com/u/25686324?v=4","gravatar_id":"","url":"https://api.github.com/users/mzillgith","html_url":"https://github.com/mzillgith","followers_url":"https://api.github.com/users/mzillgith/followers","following_url":"https://api.github.com/users/mzillgith/following{/other_user}","gists_url":"https://api.github.com/users/mzillgith/gists{/gist_id}","starred_url":"https://api.github.com/users/mzillgith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzillgith/subscriptions","organizations_url":"https://api.github.com/users/mzillgith/orgs","repos_url":"https://api.github.com/users/mzillgith/repos","events_url":"https://api.github.com/users/mzillgith/events{/privacy}","received_events_url":"https://api.github.com/users/mzillgith/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T19:17:19Z","updated_at":"2018-02-06T19:17:19Z","author_association":"CONTRIBUTOR","body":"Hello,\r\nWhat did you do to provoke this error? I was not able to reproduce it. The cs104_server and cs104_client example seem to work fine together."}}
{"actor":{"display_login":"mzillgith"}}