{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1818","repository_url":"https://api.github.com/repos/Microsoft/LightGBM","labels_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1818/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1818/comments","events_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1818/events","html_url":"https://github.com/Microsoft/LightGBM/issues/1818","id":376927565,"node_id":"MDU6SXNzdWUzNzY5Mjc1NjU=","number":1818,"title":"MinGW fails with access violation writing error","user":{"login":"StrikerRUS","id":25141164,"node_id":"MDQ6VXNlcjI1MTQxMTY0","avatar_url":"https://avatars0.githubusercontent.com/u/25141164?v=4","gravatar_id":"","url":"https://api.github.com/users/StrikerRUS","html_url":"https://github.com/StrikerRUS","followers_url":"https://api.github.com/users/StrikerRUS/followers","following_url":"https://api.github.com/users/StrikerRUS/following{/other_user}","gists_url":"https://api.github.com/users/StrikerRUS/gists{/gist_id}","starred_url":"https://api.github.com/users/StrikerRUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrikerRUS/subscriptions","organizations_url":"https://api.github.com/users/StrikerRUS/orgs","repos_url":"https://api.github.com/users/StrikerRUS/repos","events_url":"https://api.github.com/users/StrikerRUS/events{/privacy}","received_events_url":"https://api.github.com/users/StrikerRUS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-02T18:48:10Z","updated_at":"2018-11-09T15:07:11Z","closed_at":null,"author_association":"COLLABORATOR","body":"Just moving my [comment](https://github.com/Microsoft/LightGBM/pull/1660#issue-214413278) from old PR to a separate issue for the discussion and easier searching for users.\r\n\r\n\r\nWhile working on that PR, I found weird bug under MinGW. The same symptoms were described in #1475. When I tried to run **all** examples by `pytest %APPVEYOR_BUILD_FOLDER%\\tests` instead of `pytest %APPVEYOR_BUILD_FOLDER%\\tests\\python_package_test`, two C_API tests were passed succesfully, but all other tests failed with `OSError: exception: access violation writing 0xFFFFFFFF93400000`. At present this bug is avoided by running only Python tests (without C_API). I suppose, it's somehow connected to that the same `lib_lightgbm.dll` is loaded twice from different places (from installation directory for C_API tests and from python-package directory for Python tests). \r\n\r\n\r\n## Environment info\r\n\r\nOperating System: Windows\r\n\r\nCompiler: any MinGW-w64\r\n\r\n## Error message\r\n\r\n```\r\nE       OSError: exception: access violation writing 0xFFFFFFFF93160000\r\n```\r\n\r\nFull log: https://ci.appveyor.com/project/guolinke/lightgbm/builds/20010549/job/ewn044xw9dja8g9y\r\n\r\n## Steps to reproduce\r\n\r\n1. Modify `.appveyor.yml` file:\r\n```diff\r\ntest_script:\r\n- - pytest %APPVEYOR_BUILD_FOLDER%\\tests\\python_package_test\r\n+ - pytest %APPVEYOR_BUILD_FOLDER%\\tests\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/LightGBM/issues/comments/437387208","html_url":"https://github.com/Microsoft/LightGBM/issues/1818#issuecomment-437387208","issue_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1818","id":437387208,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzM4NzIwOA==","user":{"login":"StrikerRUS","id":25141164,"node_id":"MDQ6VXNlcjI1MTQxMTY0","avatar_url":"https://avatars0.githubusercontent.com/u/25141164?v=4","gravatar_id":"","url":"https://api.github.com/users/StrikerRUS","html_url":"https://github.com/StrikerRUS","followers_url":"https://api.github.com/users/StrikerRUS/followers","following_url":"https://api.github.com/users/StrikerRUS/following{/other_user}","gists_url":"https://api.github.com/users/StrikerRUS/gists{/gist_id}","starred_url":"https://api.github.com/users/StrikerRUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrikerRUS/subscriptions","organizations_url":"https://api.github.com/users/StrikerRUS/orgs","repos_url":"https://api.github.com/users/StrikerRUS/repos","events_url":"https://api.github.com/users/StrikerRUS/events{/privacy}","received_events_url":"https://api.github.com/users/StrikerRUS/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T15:07:11Z","updated_at":"2018-11-09T15:07:11Z","author_association":"COLLABORATOR","body":"Linking #1588."}}
{"actor":{"display_login":"StrikerRUS"}}