(gdb) set pagination off 
(gdb) b xmlBufOverflowError
Breakpoint 1 at 0x7ffff2d47e53: file buf.c, line 108.
(gdb) r
Starting program: /home/zan/Dev/webkit/webkit/WebKitBuild/Release/Programs/DumpRenderTree http://localhost:8000/security/xss-DENIED-xsl-document-redirect.xml
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Gtk-Message: Failed to load module "overlay-scrollbar"
[New Thread 0x7fffe8f49700 (LWP 31536)]
[New Thread 0x7fffa862e700 (LWP 31537)]
[Thread 0x7fffa862e700 (LWP 31537) exited]
[New Thread 0x7fffa862e700 (LWP 31538)]
[New Thread 0x7fff9b1d8700 (LWP 31540)]
[New Thread 0x7fff9a9d7700 (LWP 31541)]
[New Thread 0x7fff9a1d6700 (LWP 31542)]
[New Thread 0x7fff999d5700 (LWP 31546)]

Breakpoint 1, xmlBufOverflowError (buf=0x794010, extra=0x7ffff2deb458 "Input reference outside of the buffer") at buf.c:108
108	    __xmlSimpleError(XML_FROM_BUFFER, XML_BUF_OVERFLOW, NULL, NULL, extra);
(gdb) bt full
#0  xmlBufOverflowError (buf=0x794010, extra=0x7ffff2deb458 "Input reference outside of the buffer") at buf.c:108
No locals.
#1  0x00007ffff2d4a6fe in xmlBufGetInputBase (buf=0x794010, input=0x7976f0) at buf.c:1273
        base = 140737260063765
#2  0x00007ffff2cba080 in xmlParseTryOrFinish (ctxt=0x796070, terminate=0) at parser.c:11128
        base = 0
        current = 39
        ret = 0
        avail = 131
        tlen = 32767
        cur = 60 '<'
        next = 63 '?'
        lastlt = 0x794103 "</xml>\n"
        lastgt = 0x794108 ">\n"
#3  0x00007ffff2cbd533 in xmlParseChunk__internal_alias (ctxt=0x796070, chunk=0x7fffe86a1b5a "s", size=250, terminate=0) at parser.c:12173
        end_in_lf = 0
        remain = 0
        old_avail = 45
        avail = 170
#4  0x00007ffff6a21753 in WebCore::XMLDocumentParser::doWrite(WTF::String const&) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#5  0x00007ffff6a1ecca in WebCore::XMLDocumentParser::append(WebCore::SegmentedString const&) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#6  0x00007ffff63bd2f8 in WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter*, char const*, unsigned long) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#7  0x00007ffff67513a5 in WebCore::DocumentLoader::commitData(char const*, unsigned long) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#8  0x00007ffff61921f6 in WebKit::FrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#9  0x00007ffff6750687 in WebCore::DocumentLoader::commitLoad(char const*, int) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#10 0x00007ffff6788b92 in WebCore::MainResourceLoader::dataReceived(WebCore::CachedResource*, char const*, int) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#11 0x00007ffff6737a0b in WebCore::CachedRawResource::data(WTF::PassRefPtr<WebCore::ResourceBuffer>, bool) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#12 0x00007ffff67a816e in WebCore::SubresourceLoader::sendDataToResource(char const*, int) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#13 0x00007ffff67a827e in WebCore::SubresourceLoader::didReceiveData(char const*, int, long long, bool) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#14 0x00007ffff679cc9c in WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char const*, int, int) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#15 0x00007ffff6ed8d6a in WebCore::readCallback(_GObject*, _GAsyncResult*, void*) () from /home/zan/Dev/webkit/webkit/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0
No symbol table info available.
#16 0x00007ffff542a444 in async_ready_callback_wrapper (source_object=0x593240, res=0x621ee0, user_data=0x7fffe86498a0) at ginputstream.c:529
        stream = 0x593240
#17 0x00007ffff543f22e in g_simple_async_result_complete (simple=0x621ee0) at gsimpleasyncresult.c:777
        current_source = <optimized out>
        current_context = <optimized out>
        __PRETTY_FUNCTION__ = "g_simple_async_result_complete"
#18 0x00007ffff543f35c in complete_in_idle_cb (data=0x621ee0) at gsimpleasyncresult.c:789
        simple = <optimized out>
#19 0x00007ffff7ec8575 in g_main_dispatch (context=0x4d9490) at gmain.c:2784
        dispatch = 0x7ffff7ec5830 <g_idle_dispatch>
        was_in_call = 0
        user_data = 0x621ee0
        callback = 0x7ffff543f340 <complete_in_idle_cb>
        cb_funcs = 0x7ffff7fa49a0 <g_source_callback_funcs>
        cb_data = 0x609710
        current_source_link = {data = 0x60ada0, next = 0x0}
        need_destroy = <optimized out>
        source = 0x60ada0
        current = 0x58fe80
        i = <optimized out>
#20 g_main_context_dispatch (context=context@entry=0x4d9490) at gmain.c:3288
No locals.
#21 0x00007ffff7ec88b8 in g_main_context_iterate (context=0x4d9490, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3359
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = <optimized out>
        fds = 0x55ac20
#22 0x00007ffff7ec8d22 in g_main_loop_run (loop=0x5245f0) at gmain.c:3553
        __PRETTY_FUNCTION__ = "g_main_loop_run"
#23 0x00007ffff5a309b5 in gtk_main () at gtkmain.c:1161
        loop = 0x5245f0
#24 0x000000000043a075 in runTest(std::string const&) ()
No symbol table info available.
#25 0x000000000043ab99 in main ()
No symbol table info available.
(gdb) p buf
$1 = (xmlBufPtr) 0x794010
(gdb) p buf->content
$2 = (xmlChar *) 0x794060 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"resources/xsl-using-document-redirect.xsl\"?>\n<xml>\nFAIL: XML stylesheet did not run.\n</xml>\n"
(gdb) p buf->use
$3 = 170
(gdb) p buf->size
$4 = 8194
(gdb) p buf->contentIO
$5 = (xmlChar *) 0x0
(gdb) frame 1
#1  0x00007ffff2d4a6fe in xmlBufGetInputBase (buf=0x794010, input=0x7976f0) at buf.c:1273
1273	        xmlBufOverflowError(buf, "Input reference outside of the buffer");
(gdb) p input
$6 = (xmlParserInputPtr) 0x7976f0
(gdb) p input->base
$7 = (const xmlChar *) 0x7ffff2ddcc75 ""
(gdb) p input->cur
$8 = (const xmlChar *) 0x7ffff2ddcc75 ""
(gdb) p input->end
$9 = (const xmlChar *) 0x79410a ""
(gdb) p input->length
$10 = 0
(gdb) p input->line
$11 = 2
(gdb) p input->col
$12 = 83
(gdb) p input->base@8
$13 = {0x7ffff2ddcc75 "", 0x7ffff2ddcc75 "", 0x79410a "", 0x200000000 <Address 0x200000000 out of bounds>, 0x53 <Address 0x53 out of bounds>, 0x0, 0x0, 0x0}
(gdb) p input->base[0]
$14 = 0 '\000'
(gdb) p input->base[1]
$15 = 0 '\000'
(gdb) p input->base[2]
$16 = 0 '\000'
(gdb) p input->buf
$17 = (xmlParserInputBufferPtr) 0x793fc0
(gdb) p input->buf->buffer
$18 = (xmlBufPtr) 0x794010
(gdb) p input->buf->raw
$19 = (xmlBufPtr) 0x797bb0
(gdb) p input->buf->raw->content
$20 = (xmlChar *) 0x797c00 ""
(gdb) p input->buf->raw->use
$21 = 0
(gdb) p input->buf->raw->size
$22 = 4096
