{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/rust-snappy/issues/22","repository_url":"https://api.github.com/repos/BurntSushi/rust-snappy","labels_url":"https://api.github.com/repos/BurntSushi/rust-snappy/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/rust-snappy/issues/22/comments","events_url":"https://api.github.com/repos/BurntSushi/rust-snappy/issues/22/events","html_url":"https://github.com/BurntSushi/rust-snappy/issues/22","id":407133602,"node_id":"MDU6SXNzdWU0MDcxMzM2MDI=","number":22,"title":"Example decompressor fails against Mark Twin sample","user":{"login":"lespea","id":99605,"node_id":"MDQ6VXNlcjk5NjA1","avatar_url":"https://avatars0.githubusercontent.com/u/99605?v=4","gravatar_id":"","url":"https://api.github.com/users/lespea","html_url":"https://github.com/lespea","followers_url":"https://api.github.com/users/lespea/followers","following_url":"https://api.github.com/users/lespea/following{/other_user}","gists_url":"https://api.github.com/users/lespea/gists{/gist_id}","starred_url":"https://api.github.com/users/lespea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lespea/subscriptions","organizations_url":"https://api.github.com/users/lespea/orgs","repos_url":"https://api.github.com/users/lespea/repos","events_url":"https://api.github.com/users/lespea/events{/privacy}","received_events_url":"https://api.github.com/users/lespea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-02-06T08:54:42Z","updated_at":"2019-02-06T16:18:41Z","closed_at":null,"author_association":"NONE","body":"Maybe I'm doing something wrong but I get a StreamHeader panic when I try decompressing the test file.\r\n\r\n```\r\nadam@pc: ~/devel/rust-snappy master\r\n$ RUST_BACKTRACE=1 cargo run --release --example decompress <data/Mark.Twain-Tom.Sawyer.txt.rawsnappy\r\n   Compiling libc v0.2.48\r\n   Compiling byteorder v1.3.1\r\n   Compiling rand_core v0.4.0\r\n   Compiling lazy_static v1.2.0\r\n   Compiling rand_core v0.3.1\r\n   Compiling rand_core v0.2.2\r\n   Compiling snap v0.2.5 (/home/adam/devel/rust-snappy)\r\n   Compiling rand v0.5.6\r\n   Compiling quickcheck v0.7.2\r\n    Finished release [optimized + debuginfo] target(s) in 5.40s\r\n     Running `target/release/examples/decompress`\r\nthread 'main' panicked at 'I/O operation failed: Custom { kind: Other, error: StreamHeader { byte: 216 } }', src/libcore/result.rs:1009:5\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::_print\r\n             at src/libstd/sys_common/backtrace.rs:71\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at src/libstd/sys_common/backtrace.rs:59\r\n             at src/libstd/panicking.rs:211\r\n   3: std::panicking::default_hook\r\n             at src/libstd/panicking.rs:227\r\n   4: std::panicking::rust_panic_with_hook\r\n             at src/libstd/panicking.rs:491\r\n   5: std::panicking::continue_panic_fmt\r\n             at src/libstd/panicking.rs:398\r\n   6: rust_begin_unwind\r\n             at src/libstd/panicking.rs:325\r\n   7: core::panicking::panic_fmt\r\n             at src/libcore/panicking.rs:95\r\n   8: core::result::unwrap_failed\r\n             at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libcore/macros.rs:26\r\n   9: decompress::main\r\n             at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libcore/result.rs:835\r\n             at examples/decompress.rs:12\r\n  10: std::rt::lang_start::{{closure}}\r\n             at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libstd/rt.rs:74\r\n  11: std::panicking::try::do_call\r\n             at src/libstd/rt.rs:59\r\n             at src/libstd/panicking.rs:310\r\n  12: __rust_maybe_catch_panic\r\n             at src/libpanic_unwind/lib.rs:102\r\n  13: std::rt::lang_start_internal\r\n             at src/libstd/panicking.rs:289\r\n             at src/libstd/panic.rs:398\r\n             at src/libstd/rt.rs:58\r\n  14: main\r\n  15: __libc_start_main\r\n  16: _start\r\nFAIL: 101\r\n\r\nadam@pc: ~/devel/rust-snappy master\r\n$ cargo version\r\ncargo 1.32.0 (8610973aa 2019-01-02)\r\n```"},"comment":{"url":"https://api.github.com/repos/BurntSushi/rust-snappy/issues/comments/461084654","html_url":"https://github.com/BurntSushi/rust-snappy/issues/22#issuecomment-461084654","issue_url":"https://api.github.com/repos/BurntSushi/rust-snappy/issues/22","id":461084654,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MTA4NDY1NA==","user":{"login":"lespea","id":99605,"node_id":"MDQ6VXNlcjk5NjA1","avatar_url":"https://avatars0.githubusercontent.com/u/99605?v=4","gravatar_id":"","url":"https://api.github.com/users/lespea","html_url":"https://github.com/lespea","followers_url":"https://api.github.com/users/lespea/followers","following_url":"https://api.github.com/users/lespea/following{/other_user}","gists_url":"https://api.github.com/users/lespea/gists{/gist_id}","starred_url":"https://api.github.com/users/lespea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lespea/subscriptions","organizations_url":"https://api.github.com/users/lespea/orgs","repos_url":"https://api.github.com/users/lespea/repos","events_url":"https://api.github.com/users/lespea/events{/privacy}","received_events_url":"https://api.github.com/users/lespea/received_events","type":"User","site_admin":false},"created_at":"2019-02-06T16:18:41Z","updated_at":"2019-02-06T16:18:41Z","author_association":"NONE","body":"Np. I'll try to be more clear in future issues"}}
{"actor":{"display_login":"lespea"}}