{"action":"created","issue":{"url":"https://api.github.com/repos/HandBrake/HandBrake/issues/1351","repository_url":"https://api.github.com/repos/HandBrake/HandBrake","labels_url":"https://api.github.com/repos/HandBrake/HandBrake/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/HandBrake/HandBrake/issues/1351/comments","events_url":"https://api.github.com/repos/HandBrake/HandBrake/issues/1351/events","html_url":"https://github.com/HandBrake/HandBrake/issues/1351","id":325605826,"node_id":"MDU6SXNzdWUzMjU2MDU4MjY=","number":1351,"title":"Building with -march=native leads to segfaults","user":{"login":"ilovezfs","id":5268928,"node_id":"MDQ6VXNlcjUyNjg5Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5268928?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"labels":[{"id":304975556,"node_id":"MDU6TGFiZWwzMDQ5NzU1NTY=","url":"https://api.github.com/repos/HandBrake/HandBrake/labels/Upstream%20Bug","name":"Upstream Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"bradleysepos","id":70239,"node_id":"MDQ6VXNlcjcwMjM5","avatar_url":"https://avatars1.githubusercontent.com/u/70239?v=4","gravatar_id":"","url":"https://api.github.com/users/bradleysepos","html_url":"https://github.com/bradleysepos","followers_url":"https://api.github.com/users/bradleysepos/followers","following_url":"https://api.github.com/users/bradleysepos/following{/other_user}","gists_url":"https://api.github.com/users/bradleysepos/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleysepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleysepos/subscriptions","organizations_url":"https://api.github.com/users/bradleysepos/orgs","repos_url":"https://api.github.com/users/bradleysepos/repos","events_url":"https://api.github.com/users/bradleysepos/events{/privacy}","received_events_url":"https://api.github.com/users/bradleysepos/received_events","type":"User","site_admin":false},"assignees":[{"login":"bradleysepos","id":70239,"node_id":"MDQ6VXNlcjcwMjM5","avatar_url":"https://avatars1.githubusercontent.com/u/70239?v=4","gravatar_id":"","url":"https://api.github.com/users/bradleysepos","html_url":"https://github.com/bradleysepos","followers_url":"https://api.github.com/users/bradleysepos/followers","following_url":"https://api.github.com/users/bradleysepos/following{/other_user}","gists_url":"https://api.github.com/users/bradleysepos/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleysepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleysepos/subscriptions","organizations_url":"https://api.github.com/users/bradleysepos/orgs","repos_url":"https://api.github.com/users/bradleysepos/repos","events_url":"https://api.github.com/users/bradleysepos/events{/privacy}","received_events_url":"https://api.github.com/users/bradleysepos/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/HandBrake/HandBrake/milestones/11","html_url":"https://github.com/HandBrake/HandBrake/milestone/11","labels_url":"https://api.github.com/repos/HandBrake/HandBrake/milestones/11/labels","id":3250361,"node_id":"MDk6TWlsZXN0b25lMzI1MDM2MQ==","number":11,"title":"1.1.1","description":"Bug fixes for 1.1.0.","creator":{"login":"sr55","id":628593,"node_id":"MDQ6VXNlcjYyODU5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/628593?v=4","gravatar_id":"","url":"https://api.github.com/users/sr55","html_url":"https://github.com/sr55","followers_url":"https://api.github.com/users/sr55/followers","following_url":"https://api.github.com/users/sr55/following{/other_user}","gists_url":"https://api.github.com/users/sr55/gists{/gist_id}","starred_url":"https://api.github.com/users/sr55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sr55/subscriptions","organizations_url":"https://api.github.com/users/sr55/orgs","repos_url":"https://api.github.com/users/sr55/repos","events_url":"https://api.github.com/users/sr55/events{/privacy}","received_events_url":"https://api.github.com/users/sr55/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":18,"state":"open","created_at":"2018-04-08T12:40:41Z","updated_at":"2018-06-06T10:39:20Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2018-05-23T08:43:11Z","updated_at":"2018-06-08T05:31:24Z","closed_at":null,"author_association":"NONE","body":"Originally reported to\r\nhttps://github.com/donmelton/video_transcoding/issues/209\r\n\r\nand then to Homebrew\r\nhttps://github.com/Homebrew/homebrew-core/issues/28139\r\n\r\nand now to you!\r\n\r\n### Description of problem or feature request\r\nHandBrake built with -march=native on macOS leads to segfaults.\r\n\r\n### Steps to reproduce the problem\r\n(prior to https://github.com/Homebrew/homebrew-core/pull/28176 which forces `-march=core2` instead of `-march=native`)\r\n```\r\nbrew install --build-from-source handbrake\r\ncurl -OL https://sample-videos.com/video/mkv/720/big_buck_bunny_720p_1mb.mkv\r\n/usr/local/Cellar/handbrake/1.1.0/bin/HandBrakeCLI --input=big_buck_bunny_720p_1mb.mkv --output=SampleVideo_1280x720_1mb.mp4\r\n```\r\n\r\n```\r\n$ /usr/local/Cellar/handbrake/1.1.0/bin/HandBrakeCLI --input=big_buck_bunny_720p_1mb.mkv --output=SampleVideo_1280x720_1mb.mp4\r\n[22:55:00] hb_init: starting libhb thread\r\n[22:55:00] thread 700004b49000 started (\"libhb\")\r\nHandBrake 1.1.0 (2018052300) - Darwin x86_64 - https://handbrake.fr\r\n4 CPUs detected\r\nOpening big_buck_bunny_720p_1mb.mkv...\r\n[22:55:00] CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz\r\n[22:55:00]  - Intel microarchitecture Ivy Bridge\r\n[22:55:00]  - logical processor count: 4\r\n[22:55:00] hb_scan: path=big_buck_bunny_720p_1mb.mkv, title_index=1\r\nudfread ERROR: ECMA 167 Volume Recognition failed\r\ndisc.c:323: failed opening UDF image big_buck_bunny_720p_1mb.mkv\r\ndisc.c:424: error opening file BDMV/index.bdmv\r\ndisc.c:424: error opening file BDMV/BACKUP/index.bdmv\r\n[22:55:00] bd: not a bd - trying as a stream/file instead\r\nlibdvdnav: Using dvdnav version 5.0.3\r\nlibdvdread: Encrypted DVD support unavailable.\r\nlibdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed\r\nlibdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed\r\nlibdvdread: Can't open file VIDEO_TS.IFO.\r\nlibdvdnav: vm: failed to read VIDEO_TS.IFO\r\n[22:55:00] dvd: not a dvd - trying as a stream/file instead\r\nInput #0, matroska,webm, from 'big_buck_bunny_720p_1mb.mkv':\r\n  Metadata:\r\n    ENCODER         : Lavf53.24.2\r\n  Duration: 00:00:03.60, start: 0.000000, bitrate: N/A\r\n    Stream #0:0: Video: mpeg4 (Simple Profile)\r\n      yuv420p, 1280x720 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9\r\n      25 fps, 1k tbn (default)\r\n    Stream #0:1: Audio: aac (LC)\r\n      48000 Hz, 5.1, fltp (default)\r\n[22:55:00] scan: decoding previews for title 1\r\n[22:55:00] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Unknown (AAC) (5.1 ch)\r\n[22:55:00] Warning: Could not read data for preview 3, skipped\r\n[22:55:00] scan: 2 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1\r\n[22:55:00] libhb: scan thread found 1 valid title(s)\r\n+ Using preset: CLI Default\r\n+ title 1:\r\n  + stream: big_buck_bunny_720p_1mb.mkv\r\n  + duration: 00:00:03\r\n  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps\r\n  + autocrop: 0/0/0/0\r\n  + chapters:\r\n    + 1: cells 0->0, 0 blocks, duration 00:00:03\r\n  + audio tracks:\r\n    + 1, Unknown (AAC) (5.1 ch) (iso639-2: und)\r\n  + subtitle tracks:\r\n[22:55:01] 1 job(s) to process\r\n[22:55:01] json job:\r\n{\r\n    \"Audio\": {\r\n        \"AudioList\": [\r\n            {\r\n                \"Bitrate\": 128,\r\n                \"CompressionLevel\": -1.0,\r\n                \"DRC\": 0.0,\r\n                \"DitherMethod\": \"auto\",\r\n                \"Encoder\": \"ca_aac\",\r\n                \"Gain\": 0.0,\r\n                \"Mixdown\": \"dpl2\",\r\n                \"NormalizeMixLevel\": false,\r\n                \"PresetEncoder\": \"ca_aac\",\r\n                \"Quality\": -3.0,\r\n                \"Samplerate\": 0,\r\n                \"Track\": 0\r\n            }\r\n        ],\r\n        \"CopyMask\": [\r\n            \"copy:aac\",\r\n            \"copy:ac3\",\r\n            \"copy:eac3\",\r\n            \"copy:dtshd\",\r\n            \"copy:dts\",\r\n            \"copy:mp3\",\r\n            \"copy:truehd\",\r\n            \"copy:flac\"\r\n        ],\r\n        \"FallbackEncoder\": \"ca_aac\"\r\n    },\r\n    \"Destination\": {\r\n        \"AlignAVStart\": false,\r\n        \"ChapterList\": [\r\n            {\r\n                \"Name\": \"\"\r\n            }\r\n        ],\r\n        \"ChapterMarkers\": false,\r\n        \"File\": \"SampleVideo_1280x720_1mb.mp4\",\r\n        \"InlineParameterSets\": false,\r\n        \"Mp4Options\": {\r\n            \"IpodAtom\": false,\r\n            \"Mp4Optimize\": false\r\n        },\r\n        \"Mux\": \"m4v\"\r\n    },\r\n    \"Filters\": {\r\n        \"FilterList\": [\r\n            {\r\n                \"ID\": 6,\r\n                \"Settings\": {\r\n                    \"mode\": 0\r\n                }\r\n            },\r\n            {\r\n                \"ID\": 11,\r\n                \"Settings\": {\r\n                    \"crop-bottom\": 0,\r\n                    \"crop-left\": 0,\r\n                    \"crop-right\": 0,\r\n                    \"crop-top\": 0,\r\n                    \"height\": 720,\r\n                    \"width\": 1280\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"Metadata\": {},\r\n    \"PAR\": {\r\n        \"Den\": 1,\r\n        \"Num\": 1\r\n    },\r\n    \"SequenceID\": 0,\r\n    \"Source\": {\r\n        \"Angle\": 0,\r\n        \"Path\": \"big_buck_bunny_720p_1mb.mkv\",\r\n        \"Range\": {\r\n            \"End\": 1,\r\n            \"Start\": 1,\r\n            \"Type\": \"chapter\"\r\n        },\r\n        \"Title\": 1\r\n    },\r\n    \"Subtitle\": {\r\n        \"Search\": {\r\n            \"Burn\": true,\r\n            \"Default\": false,\r\n            \"Enable\": false,\r\n            \"Forced\": false\r\n        },\r\n        \"SubtitleList\": []\r\n    },\r\n    \"Video\": {\r\n        \"ColorMatrixCode\": 0,\r\n        \"Encoder\": \"x264\",\r\n        \"Level\": \"auto\",\r\n        \"Options\": \"\",\r\n        \"Preset\": \"medium\",\r\n        \"Profile\": \"auto\",\r\n        \"QSV\": {\r\n            \"AsyncDepth\": 4,\r\n            \"Decode\": false\r\n        },\r\n        \"Quality\": 22.0,\r\n        \"Tune\": \"\",\r\n        \"Turbo\": false,\r\n        \"TwoPass\": false\r\n    }\r\n}\r\n[22:55:01] starting job\r\n[22:55:01] job configuration:\r\n[22:55:01]  * source\r\n[22:55:01]    + big_buck_bunny_720p_1mb.mkv\r\n[22:55:01]    + title 1, chapter(s) 1 to 1\r\n[22:55:01]    + container: matroska,webm\r\n[22:55:01]  * destination\r\n[22:55:01]    + SampleVideo_1280x720_1mb.mp4\r\n[22:55:01]    + container: MPEG-4 (libavformat)\r\n[22:55:01]  * video track\r\n[22:55:01]    + decoder: mpeg4\r\n[22:55:01]    + filters\r\n[22:55:01]      + Framerate Shaper (mode=0)\r\n[22:55:01]        + frame rate: same as source (around 25.000 fps)\r\n[22:55:01]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)\r\n[22:55:01]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720\r\n[22:55:01]    + Output geometry\r\n[22:55:01]      + storage dimensions: 1280 x 720\r\n[22:55:01]      + pixel aspect ratio: 1 : 1\r\n[22:55:01]      + display dimensions: 1280 x 720\r\n[22:55:01]    + encoder: H.264 (libx264)\r\n[22:55:01]      + preset:  medium\r\n[22:55:01]      + profile: auto\r\n[22:55:01]      + level:   auto\r\n[22:55:01]      + quality: 22.00 (RF)\r\n[22:55:01]  * audio track 1\r\n[22:55:01]    + decoder: Unknown (AAC) (5.1 ch) (track 1, id 0x1)\r\n[22:55:01]      + samplerate: 48000 Hz\r\n[22:55:01]    + mixdown: Dolby Pro Logic II\r\n[22:55:01]    + encoder: AAC (Apple AudioToolbox)\r\n[22:55:01]      + bitrate: 128 kbps, samplerate: 48000 Hz\r\n[22:55:01] sync: expecting 90 video frames\r\n[22:55:01] encx264: encoding at constant RF 22.000000\r\nx264 [info]: using SAR=1/1\r\nx264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX\r\nx264 [info]: profile High, level 3.1\r\n[22:55:01] sync: first pts video is 0\r\n[22:55:01] sync: Chapter 1 at frame 1 time 0\r\n[22:55:01] sync: video time went backwards 80 ms, dropped 2 frames. PTS 0\r\n[22:55:01] sync: video time went backwards 160 ms, dropped 4 frames. PTS 7200\r\n[22:55:01] sync: video time went backwards 240 ms, dropped 6 frames. PTS 21600\r\n[22:55:01] sync: first pts audio 0x1 is 450\r\n[22:55:01] sync: video time went backwards 320 ms, dropped 8 frames. PTS 43200\r\n[22:55:01] reader: done. 1 scr changes\r\n[22:55:01] sync: video time went backwards 1480 ms, dropped 37 frames. PTS 72000\r\nEncoding: task 1 of 1, 65.56 %Segmentation fault: 11\r\n```\r\n### HandBrake version (e.g., 1.0.0)\r\n\r\n1.1.0\r\n\r\n### Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)\r\n\r\nTested on macOS 10.13.4 and 10.13.5\r\n\r\nBacktrace with lldb:\r\nhttps://gist.github.com/ilovezfs/2e9b16a84b354212a73eec8a119ff1db\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/HandBrake/HandBrake/issues/comments/395652167","html_url":"https://github.com/HandBrake/HandBrake/issues/1351#issuecomment-395652167","issue_url":"https://api.github.com/repos/HandBrake/HandBrake/issues/1351","id":395652167,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTY1MjE2Nw==","user":{"login":"ilovezfs","id":5268928,"node_id":"MDQ6VXNlcjUyNjg5Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5268928?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T05:31:23Z","updated_at":"2018-06-08T05:31:23Z","author_association":"NONE","body":"libopus failure log https://gist.github.com/ilovezfs/3fa0e1de4fda7925ec5e3b2f5f7f9b69"}}
{"actor":{"display_login":"ilovezfs"}}