{"action":"created","issue":{"url":"https://api.github.com/repos/shlomimatichin/Voodoo-Mock/issues/17","labels_url":"https://api.github.com/repos/shlomimatichin/Voodoo-Mock/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/shlomimatichin/Voodoo-Mock/issues/17/comments","events_url":"https://api.github.com/repos/shlomimatichin/Voodoo-Mock/issues/17/events","html_url":"https://github.com/shlomimatichin/Voodoo-Mock/issues/17","id":78058798,"number":17,"title":"Unable to show stack trace, mkstemp failed 3","user":{"login":"Phyks","id":3856586,"avatar_url":"https://avatars.githubusercontent.com/u/3856586?v=3","gravatar_id":"","url":"https://api.github.com/users/Phyks","html_url":"https://github.com/Phyks","followers_url":"https://api.github.com/users/Phyks/followers","following_url":"https://api.github.com/users/Phyks/following{/other_user}","gists_url":"https://api.github.com/users/Phyks/gists{/gist_id}","starred_url":"https://api.github.com/users/Phyks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phyks/subscriptions","organizations_url":"https://api.github.com/users/Phyks/orgs","repos_url":"https://api.github.com/users/Phyks/repos","events_url":"https://api.github.com/users/Phyks/events{/privacy}","received_events_url":"https://api.github.com/users/Phyks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-19T11:58:41Z","updated_at":"2015-05-19T12:28:29Z","closed_at":null,"body":"I am not sure whether this should occur or not, but here is what I got when modifying the first available example (not passing, but this is expected).\r\n\r\n```\r\nRunning all tests\r\nRunning 1 fresh suites (total 1)\r\n.\r\nSuite 'build_unittest/tests_Test_Map.bin' failed:\r\n\r\nCOUNT 2\r\n\r\nSUITE 'Test'\r\n\r\nTEST 'test_Read'\r\n1\r\n\r\nIn Test::test_Read:\r\n../../voodoo/VoodooCommon/Scenario.h:277: Error: Test failed: Scenario DEFAULT expected 5 events, but only 4 happened. Next waiting: '\r\n./tests/Test_Map.h:29: Expected Call to bidule2, but found nothing happened'\r\nbuild_unittest/tests_Test_Map.bin[0x414ad5]\r\nbuild_unittest/tests_Test_Map.bin[0x41cb89]\r\nbuild_unittest/tests_Test_Map.bin[0x409622]\r\nbuild_unittest/tests_Test_Map.bin[0x404f38]\r\nbuild_unittest/tests_Test_Map.bin[0x40cbf8]\r\nbuild_unittest/tests_Test_Map.bin[0x40c91c]\r\nbuild_unittest/tests_Test_Map.bin[0x40c596]\r\nbuild_unittest/tests_Test_Map.bin[0x40c1fb]\r\nbuild_unittest/tests_Test_Map.bin[0x40d12c]\r\nbuild_unittest/tests_Test_Map.bin[0x409a02]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x2aaf6b7c2ec5]\r\nbuild_unittest/tests_Test_Map.bin[0x402559]\r\nUnable to show stack trace, mkstemp failed 3\r\n\r\nTEST 'test_Write'\r\n\r\nFAILED!\r\n```\r\n\r\nI am using a fresh git clone and just modifying the example1, with some error in the scenario. What worries me is the `Unable to show stack trace, mkstemp failed 3` line."},"comment":{"url":"https://api.github.com/repos/shlomimatichin/Voodoo-Mock/issues/comments/103467790","html_url":"https://github.com/shlomimatichin/Voodoo-Mock/issues/17#issuecomment-103467790","issue_url":"https://api.github.com/repos/shlomimatichin/Voodoo-Mock/issues/17","id":103467790,"user":{"login":"Phyks","id":3856586,"avatar_url":"https://avatars.githubusercontent.com/u/3856586?v=3","gravatar_id":"","url":"https://api.github.com/users/Phyks","html_url":"https://github.com/Phyks","followers_url":"https://api.github.com/users/Phyks/followers","following_url":"https://api.github.com/users/Phyks/following{/other_user}","gists_url":"https://api.github.com/users/Phyks/gists{/gist_id}","starred_url":"https://api.github.com/users/Phyks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phyks/subscriptions","organizations_url":"https://api.github.com/users/Phyks/orgs","repos_url":"https://api.github.com/users/Phyks/repos","events_url":"https://api.github.com/users/Phyks/events{/privacy}","received_events_url":"https://api.github.com/users/Phyks/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T12:28:29Z","updated_at":"2015-05-19T12:28:29Z","body":"@shlomimatichin I think I found the problem, from `man mkstemp`:\r\n```\r\nRETURN VALUE\r\n       On success, these functions return the file descriptor of the temporary file.  On error, -1 is returned, and errno is set appropriately.\r\n```\r\n\r\nThen, test on line 93 and following should be, if I did not miss anything,\r\n```\r\nif (result == -1) {\r\n    printf( \"Unable to show stack trace, mkstemp failed %d\\n\", errno );\r\n    return;\r\n}\r\n```"}}