{"action":"created","issue":{"url":"https://api.github.com/repos/hercules-team/augeas/issues/395","repository_url":"https://api.github.com/repos/hercules-team/augeas","labels_url":"https://api.github.com/repos/hercules-team/augeas/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/hercules-team/augeas/issues/395/comments","events_url":"https://api.github.com/repos/hercules-team/augeas/issues/395/events","html_url":"https://github.com/hercules-team/augeas/issues/395","id":169893345,"number":395,"title":"Segmentation fault in RtlEnterCriticalSection with some lenses under Windows MSYS2.","user":{"login":"allisterb","id":11426372,"avatar_url":"https://avatars.githubusercontent.com/u/11426372?v=3","gravatar_id":"","url":"https://api.github.com/users/allisterb","html_url":"https://github.com/allisterb","followers_url":"https://api.github.com/users/allisterb/followers","following_url":"https://api.github.com/users/allisterb/following{/other_user}","gists_url":"https://api.github.com/users/allisterb/gists{/gist_id}","starred_url":"https://api.github.com/users/allisterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisterb/subscriptions","organizations_url":"https://api.github.com/users/allisterb/orgs","repos_url":"https://api.github.com/users/allisterb/repos","events_url":"https://api.github.com/users/allisterb/events{/privacy}","received_events_url":"https://api.github.com/users/allisterb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-08T10:41:47Z","updated_at":"2016-08-09T16:51:52Z","closed_at":null,"body":"I'm using the Windows fork Mikael Smith did at https://github.com/MikaelSmith/augeas/tree/windows. It works for a few lenses but on certain lenses there is a segfault in a Windows threading function.\r\n\r\n#0  0x00007ff956c0e909 in ntdll!RtlEnterCriticalSection ()\r\n   from C:\\WINDOWS\\SYSTEM32\\ntdll.dll\r\n#1  0x000000000044d815 in __mingw_vfprintf (stream=0x0,\r\n    fmt=fmt@entry=0x458edc <SIZE_T_SYM+1470> \"%s\",\r\n    argv=argv@entry=0x80f620 \"@▒\\030\\003\")\r\n    at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53\r\n#2  0x00000000004250c4 in fprintf (__stream=<optimized out>,\r\n    __format=0x458edc <SIZE_T_SYM+1470> \"%s\",\r\n    __format=0x458edc <SIZE_T_SYM+1470> \"%s\")\r\n    at C:/msys2/mingw64/x86_64-w64-mingw32/include/stdio.h:289\r\n#3  0x0000000000425c46 in put_lens (state=0x80f910, lens=<optimized out>)\r\n    at put.c:512\r\n\r\nI see there is a configure option for different threading APIs. Would it make a difference if I used a different threading API like posix?\r\n \r\n[backtrace.txt](https://github.com/hercules-team/augeas/files/406568/backtrace.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/hercules-team/augeas/issues/comments/238616328","html_url":"https://github.com/hercules-team/augeas/issues/395#issuecomment-238616328","issue_url":"https://api.github.com/repos/hercules-team/augeas/issues/395","id":238616328,"user":{"login":"lutter","id":23697,"avatar_url":"https://avatars.githubusercontent.com/u/23697?v=3","gravatar_id":"","url":"https://api.github.com/users/lutter","html_url":"https://github.com/lutter","followers_url":"https://api.github.com/users/lutter/followers","following_url":"https://api.github.com/users/lutter/following{/other_user}","gists_url":"https://api.github.com/users/lutter/gists{/gist_id}","starred_url":"https://api.github.com/users/lutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lutter/subscriptions","organizations_url":"https://api.github.com/users/lutter/orgs","repos_url":"https://api.github.com/users/lutter/repos","events_url":"https://api.github.com/users/lutter/events{/privacy}","received_events_url":"https://api.github.com/users/lutter/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T16:51:52Z","updated_at":"2016-08-09T16:51:52Z","body":"I bet it's not really a threading problem (augeas doesn't use threads) and more an artifact of how errors are reported on Windows, though it's not clear to me what exactly is going wrong there.\r\n\r\nIt might be good to rebase the Windows branch to the latest Augeas source - the branch is about a year old and there have been quite a few bugfixes in Augeas itself. \r\n\r\n@MikaelSmith do you have any idea what's going wrong there ?"}}
{"actor":{"display_login":"lutter"}}