{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/rasterio/issues/679","repository_url":"https://api.github.com/repos/mapbox/rasterio","labels_url":"https://api.github.com/repos/mapbox/rasterio/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/rasterio/issues/679/comments","events_url":"https://api.github.com/repos/mapbox/rasterio/issues/679/events","html_url":"https://github.com/mapbox/rasterio/issues/679","id":151395313,"number":679,"title":"Segfault on decimated read","user":{"login":"perrygeo","id":1151287,"avatar_url":"https://avatars.githubusercontent.com/u/1151287?v=3","gravatar_id":"","url":"https://api.github.com/users/perrygeo","html_url":"https://github.com/perrygeo","followers_url":"https://api.github.com/users/perrygeo/followers","following_url":"https://api.github.com/users/perrygeo/following{/other_user}","gists_url":"https://api.github.com/users/perrygeo/gists{/gist_id}","starred_url":"https://api.github.com/users/perrygeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrygeo/subscriptions","organizations_url":"https://api.github.com/users/perrygeo/orgs","repos_url":"https://api.github.com/users/perrygeo/repos","events_url":"https://api.github.com/users/perrygeo/events{/privacy}","received_events_url":"https://api.github.com/users/perrygeo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/rasterio/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mapbox/rasterio/milestones/8","html_url":"https://github.com/mapbox/rasterio/milestones/1.0","labels_url":"https://api.github.com/repos/mapbox/rasterio/milestones/8/labels","id":686337,"number":8,"title":"1.0","description":null,"creator":{"login":"sgillies","id":33697,"avatar_url":"https://avatars.githubusercontent.com/u/33697?v=3","gravatar_id":"","url":"https://api.github.com/users/sgillies","html_url":"https://github.com/sgillies","followers_url":"https://api.github.com/users/sgillies/followers","following_url":"https://api.github.com/users/sgillies/following{/other_user}","gists_url":"https://api.github.com/users/sgillies/gists{/gist_id}","starred_url":"https://api.github.com/users/sgillies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgillies/subscriptions","organizations_url":"https://api.github.com/users/sgillies/orgs","repos_url":"https://api.github.com/users/sgillies/repos","events_url":"https://api.github.com/users/sgillies/events{/privacy}","received_events_url":"https://api.github.com/users/sgillies/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":31,"state":"open","created_at":"2014-06-10T00:10:13Z","updated_at":"2016-04-27T14:19:09Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-27T14:08:21Z","updated_at":"2016-04-27T17:19:46Z","closed_at":null,"body":"Using gdal 2.1 on OS X, I get a segfault when reading a single band into a smaller output array. \r\n\r\nLooks like it happened somewhere b/t 0.32 and 0.33\r\n\r\n* On rasterio-0.32.0.post1 --> works\r\n* On rasterio-0.33.0 --> Segmentation fault: 11\r\n* On rasterio-0.34.0 --> Segmentation fault: 11\r\n* On rasterio@master e7a6797 --> Segmentation fault: 11\r\n\r\nTo reproduce using the fixture from raster-tester\r\n```\r\nimport rasterio\r\nimport numpy as np\r\n\r\nwith rasterio.open('tests/expected/blobby.tif') as src:\r\n    out = np.zeros((19, 19)).astype('uint8')\r\n    assert src.width == 1223\r\n    assert src.height == 1223\r\n    assert src.count == 4\r\n\r\n    # attempt ~ 1/64 decimated read of alpha band\r\n    src.read(4, out=out, masked=False)\r\n```"},"comment":{"url":"https://api.github.com/repos/mapbox/rasterio/issues/comments/215156499","html_url":"https://github.com/mapbox/rasterio/issues/679#issuecomment-215156499","issue_url":"https://api.github.com/repos/mapbox/rasterio/issues/679","id":215156499,"user":{"login":"perrygeo","id":1151287,"avatar_url":"https://avatars.githubusercontent.com/u/1151287?v=3","gravatar_id":"","url":"https://api.github.com/users/perrygeo","html_url":"https://github.com/perrygeo","followers_url":"https://api.github.com/users/perrygeo/followers","following_url":"https://api.github.com/users/perrygeo/following{/other_user}","gists_url":"https://api.github.com/users/perrygeo/gists{/gist_id}","starred_url":"https://api.github.com/users/perrygeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrygeo/subscriptions","organizations_url":"https://api.github.com/users/perrygeo/orgs","repos_url":"https://api.github.com/users/perrygeo/repos","events_url":"https://api.github.com/users/perrygeo/events{/privacy}","received_events_url":"https://api.github.com/users/perrygeo/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T17:19:46Z","updated_at":"2016-04-27T17:19:46Z","body":"Added test and pushed a branch `issue-679` and here's the build matrix\r\n\r\n![screen shot 2016-04-27 at 1 17 34 pm](https://cloud.githubusercontent.com/assets/1151287/14861256/772845fc-0c7a-11e6-8108-5bad314971ff.png)\r\n\r\nLooks like the regression slipped in with GDAL 2. We didn't notice it until rasterio 0.33 because that's when we started bundling libgdal 2.1-dev.\r\n\r\n@sgillies does that sound right?\r\n"}}