Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Segmentation fatal in quick_send_bits #8

Description

@skypexu

(gdb) run -l1 c enwik8.pmd tmp1
Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
Mode: c, Level: 1
Input File: "enwik8.pmd"
Output File: "tmp1"
Input file size: 21388296

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
91 *(unsigned *)(s->pending_buf + s->pending) = out;
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

(gdb) print s
$1 = {strm = 0x7fffffffe320, status = 113,
pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
"..., pending_buf_size = 65536,
pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
depth = '\000' <repeats 572 times>,
l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

sample source code is here:
https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
data file to test:
http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    , 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
     blocks
    (function() {
    function addCopyButtons() {
    document.querySelectorAll('pre code').forEach(function(codeBlock) {
    if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
    codeBlock.parentElement.setAttribute('data-copy-added', 'true');
    var btn = document.createElement('button');
    btn.textContent = 'Copy';
    btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
    btn.onmouseover = function() { this.style.opacity = '1'; };
    btn.onmouseout = function() { this.style.opacity = '0.7'; };
    btn.onclick = function() {
    navigator.clipboard.writeText(codeBlock.textContent).then(function() {
    btn.textContent = 'Copied!';
    setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
    });
    };
    codeBlock.parentElement.style.position = 'relative';
    codeBlock.parentElement.appendChild(btn);
    });
    }
    addCopyButtons();
    // Re-run on dynamic content
    var observer = new MutationObserver(addCopyButtons);
    observer.observe(document.body, { childList: true, subtree: true });
    })();
    }
    } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
    })();
    (function(){
    try {
    var __m = "github.com";
    var __re = new RegExp('^' + "github\\.com" + '
    Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
    Skip to content
    This repository was archived by the owner on Mar 1, 2024. It is now read-only.
    This repository was archived by the owner on Mar 1, 2024. It is now read-only.

    Segmentation fatal in quick_send_bits #8

    Description

    @skypexu

    (gdb) run -l1 c enwik8.pmd tmp1
    Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
    Mode: c, Level: 1
    Input File: "enwik8.pmd"
    Output File: "tmp1"
    Input file size: 21388296

    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
    91 *(unsigned *)(s->pending_buf + s->pending) = out;
    Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

    (gdb) print s
    $1 = {strm = 0x7fffffffe320, status = 113,
    pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
    "..., pending_buf_size = 65536,
    pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
    0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
    window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
    head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
    match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
    strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
    dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
    len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
    max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
    max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
    depth = '\000' <repeats 572 times>,
    l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
    matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

    sample source code is here:
    https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

    replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
    data file to test:
    http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

    Metadata

    Metadata

    Assignees

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      , 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
      Skip to content
      This repository was archived by the owner on Mar 1, 2024. It is now read-only.
      This repository was archived by the owner on Mar 1, 2024. It is now read-only.

      Segmentation fatal in quick_send_bits #8

      Description

      @skypexu

      (gdb) run -l1 c enwik8.pmd tmp1
      Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
      Mode: c, Level: 1
      Input File: "enwik8.pmd"
      Output File: "tmp1"
      Input file size: 21388296

      Program received signal SIGSEGV, Segmentation fault.
      0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
      91 *(unsigned *)(s->pending_buf + s->pending) = out;
      Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

      (gdb) print s
      $1 = {strm = 0x7fffffffe320, status = 113,
      pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
      "..., pending_buf_size = 65536,
      pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
      0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
      window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
      head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
      match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
      strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
      dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
      len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
      max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
      max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
      depth = '\000' <repeats 572 times>,
      l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
      matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

      sample source code is here:
      https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

      replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
      data file to test:
      http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

      Metadata

      Metadata

      Assignees

      Labels

      Type

      No type

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        , 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
        Skip to content
        This repository was archived by the owner on Mar 1, 2024. It is now read-only.
        This repository was archived by the owner on Mar 1, 2024. It is now read-only.

        Segmentation fatal in quick_send_bits #8

        Description

        @skypexu

        (gdb) run -l1 c enwik8.pmd tmp1
        Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
        Mode: c, Level: 1
        Input File: "enwik8.pmd"
        Output File: "tmp1"
        Input file size: 21388296

        Program received signal SIGSEGV, Segmentation fault.
        0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
        91 *(unsigned *)(s->pending_buf + s->pending) = out;
        Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

        (gdb) print s
        $1 = {strm = 0x7fffffffe320, status = 113,
        pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
        "..., pending_buf_size = 65536,
        pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
        0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
        window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
        head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
        match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
        strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
        dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
        len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
        max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
        max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
        depth = '\000' <repeats 572 times>,
        l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
        matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

        sample source code is here:
        https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

        replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
        data file to test:
        http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

        Metadata

        Metadata

        Assignees

        Labels

        Type

        No type

        Projects

        No projects

          Milestone

          No milestone

          Relationships

          None yet

          Development

          No branches or pull requests

          Issue actions

          , 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
          Skip to content
          This repository was archived by the owner on Mar 1, 2024. It is now read-only.
          This repository was archived by the owner on Mar 1, 2024. It is now read-only.

          Segmentation fatal in quick_send_bits #8

          Description

          @skypexu

          (gdb) run -l1 c enwik8.pmd tmp1
          Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
          Mode: c, Level: 1
          Input File: "enwik8.pmd"
          Output File: "tmp1"
          Input file size: 21388296

          Program received signal SIGSEGV, Segmentation fault.
          0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
          91 *(unsigned *)(s->pending_buf + s->pending) = out;
          Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

          (gdb) print s
          $1 = {strm = 0x7fffffffe320, status = 113,
          pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
          "..., pending_buf_size = 65536,
          pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
          0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
          window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
          head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
          match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
          strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
          dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
          len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
          max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
          max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
          depth = '\000' <repeats 572 times>,
          l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
          matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

          sample source code is here:
          https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

          replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
          data file to test:
          http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

          Metadata

          Metadata

          Assignees

          Labels

          Type

          No type

          Projects

          No projects

            Milestone

            No milestone

            Relationships

            None yet

            Development

            No branches or pull requests

            Issue actions

            , 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
            Skip to content
            This repository was archived by the owner on Mar 1, 2024. It is now read-only.
            This repository was archived by the owner on Mar 1, 2024. It is now read-only.

            Segmentation fatal in quick_send_bits #8

            Description

            @skypexu

            (gdb) run -l1 c enwik8.pmd tmp1
            Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
            Mode: c, Level: 1
            Input File: "enwik8.pmd"
            Output File: "tmp1"
            Input file size: 21388296

            Program received signal SIGSEGV, Segmentation fault.
            0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
            91 *(unsigned *)(s->pending_buf + s->pending) = out;
            Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

            (gdb) print s
            $1 = {strm = 0x7fffffffe320, status = 113,
            pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
            "..., pending_buf_size = 65536,
            pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
            0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
            window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
            head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
            match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
            strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
            dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
            len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
            max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
            max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
            depth = '\000' <repeats 572 times>,
            l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
            matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

            sample source code is here:
            https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

            replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
            data file to test:
            http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

            Metadata

            Metadata

            Assignees

            Labels

            Type

            No type

            Projects

            No projects

              Milestone

              No milestone

              Relationships

              None yet

              Development

              No branches or pull requests

              Issue actions

              , 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
              Skip to content
              This repository was archived by the owner on Mar 1, 2024. It is now read-only.
              This repository was archived by the owner on Mar 1, 2024. It is now read-only.

              Segmentation fatal in quick_send_bits #8

              Description

              @skypexu

              (gdb) run -l1 c enwik8.pmd tmp1
              Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
              Mode: c, Level: 1
              Input File: "enwik8.pmd"
              Output File: "tmp1"
              Input file size: 21388296

              Program received signal SIGSEGV, Segmentation fault.
              0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
              91 *(unsigned *)(s->pending_buf + s->pending) = out;
              Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

              (gdb) print s
              $1 = {strm = 0x7fffffffe320, status = 113,
              pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
              "..., pending_buf_size = 65536,
              pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
              0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
              window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
              head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
              match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
              strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
              dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
              len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
              max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
              max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
              depth = '\000' <repeats 572 times>,
              l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
              matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

              sample source code is here:
              https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

              replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
              data file to test:
              http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

              Metadata

              Metadata

              Assignees

              Labels

              Type

              No type

              Projects

              No projects

                Milestone

                No milestone

                Relationships

                None yet

                Development

                No branches or pull requests

                Issue actions

                , 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); Segmentation fatal in quick_send_bits · Issue #8 · intel/zlib · GitHub
                Skip to content
                This repository was archived by the owner on Mar 1, 2024. It is now read-only.
                This repository was archived by the owner on Mar 1, 2024. It is now read-only.

                Segmentation fatal in quick_send_bits #8

                Description

                @skypexu

                (gdb) run -l1 c enwik8.pmd tmp1
                Starting program: /home/yifeng.xyf/example31 -l1 c enwik8.pmd tmp1
                Mode: c, Level: 1
                Input File: "enwik8.pmd"
                Output File: "tmp1"
                Input file size: 21388296

                Program received signal SIGSEGV, Segmentation fault.
                0x00007ffff7bdf069 in quick_send_bits (s=0x802490, flush=0) at deflate_quick.c:91
                91 *(unsigned *)(s->pending_buf + s->pending) = out;
                Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64

                (gdb) print s
                $1 = {strm = 0x7fffffffe320, status = 113,
                pending_buf = 0x81bc70 ";\321\025NU\266z\327O\035MZ\223\242\262\264X\353j\307k\211놉\233\026(O\340\333|\356\330/\211\354{\177;\317\324^\330t\177\303E\t[\301\216O\034\033;\037n\224\372Q\266fW\364\257)U\242\237w\355\373\277b\347\325\334w\277\n\267\266\237\336:\263\201O=\323\352Lg\221\261\201\324\253\311\002Wj\375J\223\071\035\342Φ\250[\374\367I\377\377\341vȅ\326C=?\216\230\273\233\027>\262\022\371\067\301\361A\353C\265S\315\001\267\027\032\nl\234\261\357\343\352e\261k\267\256\374(\261jI\273\301\236\267\261\241{\256\037\310a\026\277\221\261\344\345\332w\271\276z\356\276fsfN?l\030+\256e
                "..., pending_buf_size = 65536,
                pending_out = 0x821a05 "\276\207G\365=\357<y\367\216k\301\245e\376\256+zrh\354\023\273\070\327um\272{[\263l\364\304\031\031\263\257]\370\303s\300\362\254J\313\306X\237\206ɓ/\236\233$\244\370y>#[\243\200\224c\327\371\237\306Y\246\027\236\v\277o\377"\331\341zKL\341\354\364\245\232%W\312N/2bS,\334\377\371C\345f\teǾ_\232\307K\n&-\t!?u\257\350\034\225\203:;5\323\032\255>\253{<\177\024ﲮo\037\313\333o\332\034\261\027N+\204\070\375\063Y(\272@]\351\350k1}\375\260\245\375lq\327\312\032\217\345t<\350n\376\310 \271\250\346\263X\307f\261\345z2I-\217"..., pending = 197518, wrap = 1, gzhead = 0x0, gzindex = 0, method = 8 '\b', last_flush = 0, crc0 = {
                0 <repeats 20 times>}, w_size = 8192, w_bits = 13, w_mask = 8191,
                window = 0x803c30 "H\377\334\tK\262%\202\344?mԶ]\023\246\210\177\340Z\217n\250\217\314\330.\a48\366\237\030C_j\315=\232&", window_size = 16384, prev = 0x807c50,
                head = 0x80bc60, ins_h = 24445, hash_size = 32768, hash_bits = 15, hash_mask = 32767, hash_shift = 5, block_start = -1007877, match_length = 2, prev_match = 0,
                match_available = 0, strstart = 9685, match_start = 4290813952, lookahead = 6699, prev_length = 2, max_chain_length = 4, max_lazy_match = 4, level = 1,
                strategy = 0, good_match = 4, nice_match = 8, dyn_ltree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 256 times>, {fc = {freq = 1, code = 1},
                dl = {dad = 0, len = 0}}, {fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 316 times>}, dyn_dtree = {{fc = {freq = 0, code = 0}, dl = {dad = 0,
                len = 0}} <repeats 61 times>}, bl_tree = {{fc = {freq = 0, code = 0}, dl = {dad = 0, len = 0}} <repeats 39 times>}, l_desc = {dyn_tree = 0x8025b4,
                max_code = 0, stat_desc = 0x7ffff7df9bc0}, d_desc = {dyn_tree = 0x802ea8, max_code = 0, stat_desc = 0x7ffff7df9be0}, bl_desc = {dyn_tree = 0x802f9c,
                max_code = 0, stat_desc = 0x7ffff7df9c00}, bl_count = {0 <repeats 16 times>}, heap = {0 <repeats 573 times>}, heap_len = 0, heap_max = 0,
                depth = '\000' <repeats 572 times>,
                l_buf = 0x827c70 "g\027_Tx'\230z\255w\266\211\263\273U\331\304"\373\254\314Jd\377\255Ow\205\177>}\236{\234\241t\207\366\277]?\312v\371M^\374o\375\331]\242\334,K$L\343\nͧ|;\020\022\366\342Ζ\344,\215\031\241Ƭ;΅\262\361\027\365\234|\273\244\360\205\344;\226\264\210\025\365\226\025\231\342\314q{\362\237\204\177\315\323g\337\367H\342\324\352\306\022w\355\362ٷOOT\236\331_\371u_p\360\273\365\065Kn+\257w\332\340\335\373\246\325O1(\372\330\003\071\265\345a\335\362s\266M\371R\024\177\350\376>]\376\253\353\217\316l\272"\306\362*\356M̛\306\315\317Z?ש\025X.\237\351\374\376"..., lit_bufsize = 16384, last_lit = 0, d_buf = 0x81fc70, opt_len = 0, static_len = 0,
                matches = 0, insert = 0, bi_buf = 0, bi_valid = 0, high_water = 16384}

                sample source code is here:
                https://code.google.com/p/miniz/source/browse/trunk/example3.c?r=45

                replace #include "miniz.c" with #include <zlib.h> and fix some minor compiling errors.
                data file to test:
                http://cs.fit.edu/~mmahoney/compression/enwik8.pmd

                Metadata

                Metadata

                Assignees

                Labels

                Type

                No type

                Projects

                No projects

                  Milestone

                  No milestone

                  Relationships

                  None yet

                  Development

                  No branches or pull requests

                  Issue actions