<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>72883</bug_id>
          
          <creation_ts>2011-11-21 07:30:32 -0800</creation_ts>
          <short_desc>[GTK] SIGSEV when a WebKitDownload fails</short_desc>
          <delta_ts>2011-11-29 12:35:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://technorati.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Sergio Villar Senin">svillar</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>j</cc>
    
    <cc>mrobinson</cc>
    
    <cc>ossy</cc>
    
    <cc>svillar</cc>
    
    <cc>wingo</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>506948</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-21 07:30:32 -0800</bug_when>
    <thetext>This is what I got from valgrind

==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0xACB4EF9: JSC::NumericStrings::add(int) (NumericStrings.h:52)
==4981==    by 0xAEBE0C0: JSC::JSValue::toPrimitiveString(JSC::ExecState*) const (JSValue.cpp:212)
==4981==    by 0xADE6B9B: cti_op_add (JITStubs.cpp:1327)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981==    by 0x7FEFFDB5F: ???
==4981==    by 0x420CF9F: ???
==4981==    by 0xFFFF00000000003F: ???
==4981==    by 0x420D01F: ???
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0xACB4EF9: JSC::NumericStrings::add(int) (NumericStrings.h:52)
==4981==    by 0xAEBE0C0: JSC::JSValue::toPrimitiveString(JSC::ExecState*) const (JSValue.cpp:212)
==4981==    by 0xAD5CE08: JSC::jsAdd(JSC::ExecState*, JSC::JSValue, JSC::JSValue) (Operations.h:308)
==4981==    by 0xAD570A2: operationValueAdd (DFGOperations.cpp:232)
==4981==    by 0x79519334: ???
==4981==    by 0xADC09DD: JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*) (JITCode.h:115)
==4981==    by 0xADBD715: JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::ScopeChainNode*, JSC::JSObject*) (Interpreter.cpp:1002)
==4981==    by 0xAE702D3: JSC::evaluate(JSC::ExecState*, JSC::ScopeChainNode*, JSC::SourceCode const&amp;, JSC::JSValue, JSC::JSValue*) (Completion.cpp:70)
==4981==    by 0x718BA2C: WebCore::JSMainThreadExecState::evaluate(JSC::ExecState*, JSC::ScopeChainNode*, JSC::SourceCode const&amp;, JSC::JSValue, JSC::JSValue*) (JSMainThreadExecState.h:58)
==4981==    by 0x71C1935: WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld*) (ScriptController.cpp:146)
==4981==    by 0x71C1A39: WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&amp;) (ScriptController.cpp:163)
==4981==    by 0x73F4CD9: WebCore::ScriptElement::executeScript(WebCore::ScriptSourceCode const&amp;) (ScriptElement.cpp:301)
==4981== 
ASSERTION FAILED: !callLinkInfo-&gt;isLinked()
../../Source/JavaScriptCore/jit/JIT.cpp(717) : static void JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::AbstractMacroAssembler&lt;JSC::X86Assembler&gt;::CodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind)
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0x134E119C: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981==    by 0x7FEFFDB5F: ???
==4981==    by 0x2728951F: ???
==4981==    by 0x420DE1F: ???
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0x134E35F7: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA982E5: dl_iterate_phdr (dl-iteratephdr.c:75)
==4981==    by 0x134E3CE5: _Unwind_Find_FDE (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E11BF: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0x134E35FC: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA982E5: dl_iterate_phdr (dl-iteratephdr.c:75)
==4981==    by 0x134E3CE5: _Unwind_Find_FDE (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E11BF: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0x134E3505: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA982E5: dl_iterate_phdr (dl-iteratephdr.c:75)
==4981==    by 0x134E3CE5: _Unwind_Find_FDE (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E11BF: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0x134E3533: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA982E5: dl_iterate_phdr (dl-iteratephdr.c:75)
==4981==    by 0x134E3CE5: _Unwind_Find_FDE (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E11BF: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981== 
==4981== Use of uninitialised value of size 8
==4981==    at 0x134E14B6: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981==    by 0x7FEFFDB5F: ???
==4981==    by 0x2728951F: ???
==4981==    by 0x420DE1F: ???
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0x134E14B9: ??? (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0x134E21CC: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981==    by 0x7FEFFDB5F: ???
==4981==    by 0x2728951F: ???
==4981==    by 0x420DE1F: ???
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0xEA76B61: backtrace_helper (backtrace.c:68)
==4981==    by 0x134E219C: _Unwind_Backtrace (in /lib/x86_64-linux-gnu/libgcc_s.so.1)
==4981==    by 0xEA76C3D: backtrace (backtrace.c:91)
==4981==    by 0xAEF8F7B: WTFGetBacktrace (Assertions.cpp:168)
==4981==    by 0xAEF8FAB: WTFReportBacktrace (Assertions.cpp:197)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981==    by 0x7FEFFDB5F: ???
==4981==    by 0x2728951F: ???
==4981==    by 0x420DE1F: ???
==4981== 
==4981== Conditional jump or move depends on uninitialised value(s)
==4981==    at 0xAEF906A: WTFReportBacktrace (Assertions.cpp:199)
==4981==    by 0xADD30A1: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:717)
==4981==    by 0xADF4380: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2304)
==4981==    by 0xADEADC4: cti_vm_lazyLinkCall (JITStubs.cpp:2314)
==4981==    by 0xADE6603: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&amp;, JSC::PropertySlot const&amp;, JSC::StructureStubInfo*) (JITStubs.cpp:952)
==4981==    by 0x7FEFFDB5F: ???
==4981==    by 0x2728951F: ???
==4981==    by 0x420DE1F: ???
==4981==    by 0x2729959F: ???</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507086</commentid>
    <comment_count>1</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-21 11:06:06 -0800</bug_when>
    <thetext>Are you saying that you&apos;re getting this assertion whilst running with valgrind?  Or are you getting this assertion even when not running with valgrind?

Also, what are the steps to reproduce?  I visited the attached URL in a debug build of trunk (r100935) and could not see this assertion.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507487</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-22 03:17:51 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Are you saying that you&apos;re getting this assertion whilst running with valgrind?  Or are you getting this assertion even when not running with valgrind?

I&apos;m always getting the assertion (with debug builds obviously). I just used valgrind to get the trace.

&gt; Also, what are the steps to reproduce?  I visited the attached URL in a debug build of trunk (r100935) and could not see this assertion.

I&apos;m using WebKitGtk+ which recently got DFG JIT enabled, may be related?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507573</commentid>
    <comment_count>3</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-22 06:35:26 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Are you saying that you&apos;re getting this assertion whilst running with valgrind?  Or are you getting this assertion even when not running with valgrind?
&gt; 
&gt; I&apos;m always getting the assertion (with debug builds obviously). I just used valgrind to get the trace.

It seems that my above sentence does not properly answer your question. When visiting technorati.com with WebKitGtk+ I always get a SIGSEV, the trace is quite weird as all the pointers seem to be correct (and that code has not been recently changed also). That&apos;s why I decided to run it under valgrind, and under those conditions, I always get the assertion mentioned in the title.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507576</commentid>
    <comment_count>4</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-22 06:36:25 -0800</bug_when>
    <thetext>This is the trace of the SIGSEV BTW:
(gdb) bt
#0  0x0000000000000031 in ?? ()
#1  0x00007ffff5956640 in WebCore::gotChunkCallback (msg=0x2121020, chunk=0x217d6d0, data=0x21fab60)
    at ../../Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:364
#2  0x00007ffff350b671 in g_cclosure_marshal_VOID__BOXED (closure=0x21fbb20, return_value=0x0, n_param_values=2, param_values=0x1e5a810, 
    invocation_hint=0x7fffffffad80, marshal_data=0x0) at gmarshal.c:574
#3  0x00007ffff3508dc2 in g_closure_invoke (closure=0x21fbb20, return_value=0x0, n_param_values=2, param_values=0x1e5a810, 
    invocation_hint=0x7fffffffad80) at gclosure.c:774
#4  0x00007ffff3522397 in signal_emit_unlocked_R (node=0x1cb1a40, detail=0, instance=0x2121020, emission_return=0x0, 
    instance_and_params=0x1e5a810) at gsignal.c:3302
#5  0x00007ffff3521591 in g_signal_emit_valist (instance=0x2121020, signal_id=453, detail=0, var_args=0x7fffffffb008) at gsignal.c:3033
#6  0x00007ffff3521ae9 in g_signal_emit (instance=0x2121020, signal_id=453, detail=0) at gsignal.c:3090
#7  0x00007ffff3763d8b in soup_message_got_chunk (msg=0x2121020, chunk=0x217d6d0) at soup-message.c:1046
#8  0x00007ffff376983d in read_body_chunk (msg=0x2121020) at soup-message-io.c:516
#9  0x00007ffff376a8a7 in io_read (sock=0x1f978c0, msg=0x2121020) at soup-message-io.c:989
#10 0x00007ffff350aba4 in g_cclosure_marshal_VOID__VOID (closure=0x2139110, return_value=0x0, n_param_values=1, param_values=0x1d400c0, 
    invocation_hint=0x7fffffffd370, marshal_data=0x0) at gmarshal.c:85
#11 0x00007ffff3508dc2 in g_closure_invoke (closure=0x2139110, return_value=0x0, n_param_values=1, param_values=0x1d400c0, 
    invocation_hint=0x7fffffffd370) at gclosure.c:774
#12 0x00007ffff3522397 in signal_emit_unlocked_R (node=0x1ceec30, detail=0, instance=0x1f978c0, emission_return=0x0, 
    instance_and_params=0x1d400c0) at gsignal.c:3302
#13 0x00007ffff3521591 in g_signal_emit_valist (instance=0x1f978c0, signal_id=466, detail=0, var_args=0x7fffffffd5f8) at gsignal.c:3033
#14 0x00007ffff3521ae9 in g_signal_emit (instance=0x1f978c0, signal_id=466, detail=0) at gsignal.c:3090
#15 0x00007ffff377e0f8 in socket_read_watch (pollable=0x1d61d00, user_data=0x1f978c0) at soup-socket.c:1265
#16 0x00007ffff35c0b8a in pollable_source_dispatch (source=0x1ef1e40, callback=0x7ffff377e09b &lt;socket_read_watch&gt;, user_data=0x1f978c0)
    at gpollableinputstream.c:232
#17 0x00007ffff33fef42 in g_main_dispatch (context=0x544f00) at gmain.c:2513
#18 0x00007ffff33ffc03 in g_main_context_dispatch (context=0x544f00) at gmain.c:3050
#19 0x00007ffff33ffde6 in g_main_context_iterate (context=0x544f00, block=1, dispatch=1, self=0x573d30) at gmain.c:3121
#20 0x00007ffff33ffeaa in g_main_context_iteration (context=0x544f00, may_block=1) at gmain.c:3182
#21 0x00007ffff3601346 in g_application_run (application=0x617000, argc=1, argv=0x7fffffffda88) at gapplication.c:1320
#22 0x0000000000430ca2 in main (argc=1, argv=0x7fffffffda88) at ../../src/ephy-main.c:472</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507578</commentid>
    <comment_count>5</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-22 06:37:03 -0800</bug_when>
    <thetext>*** Bug 72912 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507796</commentid>
    <comment_count>6</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-22 13:38:04 -0800</bug_when>
    <thetext>This trace looks like the JIT emitted a jump to an invalid location (0x0000000000000031) and we&apos;re faulting because that pointer contains no executable (or readable, or writable, even) memory.

I&apos;m not sure if the assertion you&apos;re seeing is informative; it might just be valgrind interacting strangely with JSC&apos;s code patching logic.

I visited the technorati.com site on the Mac port and did not get any crashes.  Does yours crash upon visiting the site, or only after you navigate around for a bit?


(In reply to comment #4)
&gt; This is the trace of the SIGSEV BTW:
&gt; (gdb) bt
&gt; #0  0x0000000000000031 in ?? ()
&gt; #1  0x00007ffff5956640 in WebCore::gotChunkCallback (msg=0x2121020, chunk=0x217d6d0, data=0x21fab60)
&gt;     at ../../Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:364
&gt; #2  0x00007ffff350b671 in g_cclosure_marshal_VOID__BOXED (closure=0x21fbb20, return_value=0x0, n_param_values=2, param_values=0x1e5a810, 
&gt;     invocation_hint=0x7fffffffad80, marshal_data=0x0) at gmarshal.c:574
&gt; #3  0x00007ffff3508dc2 in g_closure_invoke (closure=0x21fbb20, return_value=0x0, n_param_values=2, param_values=0x1e5a810, 
&gt;     invocation_hint=0x7fffffffad80) at gclosure.c:774
&gt; #4  0x00007ffff3522397 in signal_emit_unlocked_R (node=0x1cb1a40, detail=0, instance=0x2121020, emission_return=0x0, 
&gt;     instance_and_params=0x1e5a810) at gsignal.c:3302
&gt; #5  0x00007ffff3521591 in g_signal_emit_valist (instance=0x2121020, signal_id=453, detail=0, var_args=0x7fffffffb008) at gsignal.c:3033
&gt; #6  0x00007ffff3521ae9 in g_signal_emit (instance=0x2121020, signal_id=453, detail=0) at gsignal.c:3090
&gt; #7  0x00007ffff3763d8b in soup_message_got_chunk (msg=0x2121020, chunk=0x217d6d0) at soup-message.c:1046
&gt; #8  0x00007ffff376983d in read_body_chunk (msg=0x2121020) at soup-message-io.c:516
&gt; #9  0x00007ffff376a8a7 in io_read (sock=0x1f978c0, msg=0x2121020) at soup-message-io.c:989
&gt; #10 0x00007ffff350aba4 in g_cclosure_marshal_VOID__VOID (closure=0x2139110, return_value=0x0, n_param_values=1, param_values=0x1d400c0, 
&gt;     invocation_hint=0x7fffffffd370, marshal_data=0x0) at gmarshal.c:85
&gt; #11 0x00007ffff3508dc2 in g_closure_invoke (closure=0x2139110, return_value=0x0, n_param_values=1, param_values=0x1d400c0, 
&gt;     invocation_hint=0x7fffffffd370) at gclosure.c:774
&gt; #12 0x00007ffff3522397 in signal_emit_unlocked_R (node=0x1ceec30, detail=0, instance=0x1f978c0, emission_return=0x0, 
&gt;     instance_and_params=0x1d400c0) at gsignal.c:3302
&gt; #13 0x00007ffff3521591 in g_signal_emit_valist (instance=0x1f978c0, signal_id=466, detail=0, var_args=0x7fffffffd5f8) at gsignal.c:3033
&gt; #14 0x00007ffff3521ae9 in g_signal_emit (instance=0x1f978c0, signal_id=466, detail=0) at gsignal.c:3090
&gt; #15 0x00007ffff377e0f8 in socket_read_watch (pollable=0x1d61d00, user_data=0x1f978c0) at soup-socket.c:1265
&gt; #16 0x00007ffff35c0b8a in pollable_source_dispatch (source=0x1ef1e40, callback=0x7ffff377e09b &lt;socket_read_watch&gt;, user_data=0x1f978c0)
&gt;     at gpollableinputstream.c:232
&gt; #17 0x00007ffff33fef42 in g_main_dispatch (context=0x544f00) at gmain.c:2513
&gt; #18 0x00007ffff33ffc03 in g_main_context_dispatch (context=0x544f00) at gmain.c:3050
&gt; #19 0x00007ffff33ffde6 in g_main_context_iterate (context=0x544f00, block=1, dispatch=1, self=0x573d30) at gmain.c:3121
&gt; #20 0x00007ffff33ffeaa in g_main_context_iteration (context=0x544f00, may_block=1) at gmain.c:3182
&gt; #21 0x00007ffff3601346 in g_application_run (application=0x617000, argc=1, argv=0x7fffffffda88) at gapplication.c:1320
&gt; #22 0x0000000000430ca2 in main (argc=1, argv=0x7fffffffda88) at ../../src/ephy-main.c:472</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507996</commentid>
    <comment_count>7</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-23 01:14:20 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; This trace looks like the JIT emitted a jump to an invalid location (0x0000000000000031) and we&apos;re faulting because that pointer contains no executable (or readable, or writable, even) memory.
&gt; 
&gt; I&apos;m not sure if the assertion you&apos;re seeing is informative; it might just be valgrind interacting strangely with JSC&apos;s code patching logic.

Yeah it might be the case, because I never hit the assertion running it only with the debugger, just when it&apos;s run under valgrind.

&gt; I visited the technorati.com site on the Mac port and did not get any crashes.  Does yours crash upon visiting the site, or only after you navigate around for a bit?

Just visiting the site, looks like at the very end of the loading process. But it is not the unique case, for example a colleague of mine got it here http://javierparra.eu/?p=721 (bug 72912).

Just ping me on IRC (svillar) and I&apos;d be glad to help debugging the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507998</commentid>
    <comment_count>8</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-23 01:20:18 -0800</bug_when>
    <thetext>&gt; 
&gt; Just visiting the site, looks like at the very end of the loading process. But it is not the unique case, for example a colleague of mine got it here http://javierparra.eu/?p=721 (bug 72912).
&gt; 
&gt; Just ping me on IRC (svillar) and I&apos;d be glad to help debugging the issue.

I will look into this.  But apologies if I don&apos;t get around to it until Monday, since I am technically on holiday. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508007</commentid>
    <comment_count>9</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-23 01:31:22 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; &gt; 
&gt; &gt; Just visiting the site, looks like at the very end of the loading process. But it is not the unique case, for example a colleague of mine got it here http://javierparra.eu/?p=721 (bug 72912).
&gt; &gt; 
&gt; &gt; Just ping me on IRC (svillar) and I&apos;d be glad to help debugging the issue.
&gt; 
&gt; I will look into this.  But apologies if I don&apos;t get around to it until Monday, since I am technically on holiday. :-)

Heh don&apos;t worry, enjoy your holidays!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508914</commentid>
    <comment_count>10</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-11-24 15:37:09 -0800</bug_when>
    <thetext>The crash also happens 100% of the time in this (even simpler) page: http://cscs.umich.edu/~crshalizi/weblog/841.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508915</commentid>
    <comment_count>11</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-24 16:16:06 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; The crash also happens 100% of the time in this (even simpler) page: http://cscs.umich.edu/~crshalizi/weblog/841.html

This is good to know - thanks for your help in reducing this bug! :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509890</commentid>
    <comment_count>12</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-28 09:42:49 -0800</bug_when>
    <thetext>I looked into this using r101263 and the Mac port.  I cannot get a crash on any of the three sites mentioned: technorati.com, http://javierparra.eu/?p=721, or http://cscs.umich.edu/~crshalizi/weblog/841.html.

Perhaps this is a GTK+ issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509892</commentid>
    <comment_count>13</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-11-28 09:46:09 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; I looked into this using r101263 and the Mac port.  I cannot get a crash on any of the three sites mentioned: technorati.com, http://javierparra.eu/?p=721, or http://cscs.umich.edu/~crshalizi/weblog/841.html.
&gt; 
&gt; Perhaps this is a GTK+ issue?

From what I understand it didn&apos;t appear until we turned on the DFG JIT. If it would be helpful we can arrange an interactive debugging session over the IRC channel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509899</commentid>
    <comment_count>14</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-28 09:49:17 -0800</bug_when>
    <thetext>(In reply to comment #13)
&gt; (In reply to comment #12)
&gt; &gt; I looked into this using r101263 and the Mac port.  I cannot get a crash on any of the three sites mentioned: technorati.com, http://javierparra.eu/?p=721, or http://cscs.umich.edu/~crshalizi/weblog/841.html.
&gt; &gt; 
&gt; &gt; Perhaps this is a GTK+ issue?
&gt; 
&gt; From what I understand it didn&apos;t appear until we turned on the DFG JIT. If it would be helpful we can arrange an interactive debugging session over the IRC channel.

Yup, I&apos;d be happy to help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510321</commentid>
    <comment_count>15</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-28 16:34:38 -0800</bug_when>
    <thetext>Note, I&apos;ve now also tested this in 32-bit mode, and still, no crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510356</commentid>
    <comment_count>16</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-28 17:28:43 -0800</bug_when>
    <thetext>(In reply to comment #15)
&gt; Note, I&apos;ve now also tested this in 32-bit mode, and still, no crash.

hmm I tried disabling DFG and the crash is still here, so maybe you&apos;re right and there is something Gtk specific</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510828</commentid>
    <comment_count>17</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-29 09:09:37 -0800</bug_when>
    <thetext>(In reply to comment #15)
&gt; Note, I&apos;ve now also tested this in 32-bit mode, and still, no crash.

Sorry for the noise Filip, at the end it was indeed a GTK issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510848</commentid>
    <comment_count>18</comment_count>
      <attachid>116983</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-29 09:18:16 -0800</bug_when>
    <thetext>Created attachment 116983
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510849</commentid>
    <comment_count>19</comment_count>
      <attachid>116983</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-11-29 09:20:49 -0800</bug_when>
    <thetext>Comment on attachment 116983
Patch

LGTM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510853</commentid>
    <comment_count>20</comment_count>
      <attachid>116983</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-11-29 09:28:46 -0800</bug_when>
    <thetext>Comment on attachment 116983
Patch

OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510857</commentid>
    <comment_count>21</comment_count>
      <attachid>116983</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-29 09:36:59 -0800</bug_when>
    <thetext>Comment on attachment 116983
Patch

Clearing flags on attachment: 116983

Committed r101393: &lt;http://trac.webkit.org/changeset/101393&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>510858</commentid>
    <comment_count>22</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2011-11-29 09:37:13 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>511009</commentid>
    <comment_count>23</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-29 12:35:47 -0800</bug_when>
    <thetext>(In reply to comment #17)
&gt; (In reply to comment #15)
&gt; &gt; Note, I&apos;ve now also tested this in 32-bit mode, and still, no crash.
&gt; 
&gt; Sorry for the noise Filip, at the end it was indeed a GTK issue

No worries!  Glad that this is now resolved.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>116983</attachid>
            <date>2011-11-29 09:18:16 -0800</date>
            <delta_ts>2011-11-29 09:36:59 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-72883-20111129181814.patch</filename>
            <type>text/plain</type>
            <size>1685</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTAxMjYzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L2d0
ay9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0L2d0ay9DaGFuZ2VMb2cKaW5kZXggNmVlNzFjOWQw
YjQ0NjI4NTg4MGY3YzE5NDA2OGUyNzdkZjE4NWZjYS4uZTBjMWYzMTljNjBlMzgyNzcwMmRkYmE1
ZDU4MjYzZjk0MjUxMjhjYyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdC9ndGsvQ2hhbmdlTG9n
CisrKyBiL1NvdXJjZS9XZWJLaXQvZ3RrL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3IEBACisyMDEx
LTExLTI5ICBTZXJnaW8gVmlsbGFyIFNlbmluICA8c3ZpbGxhckBpZ2FsaWEuY29tPgorCisgICAg
ICAgIFtHVEtdIFNJR1NFViB3aGVuIGEgV2ViS2l0RG93bmxvYWQgZmFpbHMKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTcyODgzCisKKyAgICAgICAgUmV2
aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQWZ0ZXIgcjEwMDc2OSBodHRwIHN0
YXR1cyBjb2RlcyA+PSA0MDAgdHJpZ2dlciBkb3dubG9hZAorICAgICAgICBmYWlsdXJlcy4gV2Ug
bXVzdCBlbnN1cmUgdGhhdCB0aGUgZG93bmxvYWQgaXMgcHJvcGVybHkgY2FuY2VsbGVkCisgICAg
ICAgIGJlZm9yZSBjbGVhcmluZyB0aGUgUmVzb3VyY2VIYW5kbGUgY2xpZW50IHRvIGF2b2lkIGNy
YXNoZXMuCisKKyAgICAgICAgKiB3ZWJraXQvd2Via2l0ZG93bmxvYWQuY3BwOgorICAgICAgICAo
RG93bmxvYWRDbGllbnQ6OmRpZFJlY2VpdmVSZXNwb25zZSk6CisKIDIwMTEtMTEtMjYgIFBhdmVs
IEZlbGRtYW4gIDxwZmVsZG1hbkBnb29nbGUuY29tPgogCiAgICAgICAgIFdlYiBJbnNwZWN0b3I6
IHJlbW92ZSBkaXNjb25uZWN0RnJvbUJhY2tlbmQgZnJvbSB0aGUgcHJvdG9jb2wuCmRpZmYgLS1n
aXQgYS9Tb3VyY2UvV2ViS2l0L2d0ay93ZWJraXQvd2Via2l0ZG93bmxvYWQuY3BwIGIvU291cmNl
L1dlYktpdC9ndGsvd2Via2l0L3dlYmtpdGRvd25sb2FkLmNwcAppbmRleCBjZjRjNTljMmExNzgw
MGVkODU2MGI2OTEyOGRmYjAxMWJjOTY1NmJhLi43NWNiY2JiNTgzOWMxZmFhN2QyNGUwMzlkYzg0
NDJjMjhjMTVkM2QwIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0L2d0ay93ZWJraXQvd2Via2l0
ZG93bmxvYWQuY3BwCisrKyBiL1NvdXJjZS9XZWJLaXQvZ3RrL3dlYmtpdC93ZWJraXRkb3dubG9h
ZC5jcHAKQEAgLTk0MSw2ICs5NDEsNyBAQCB2b2lkIERvd25sb2FkQ2xpZW50OjpkaWRSZWNlaXZl
UmVzcG9uc2UoUmVzb3VyY2VIYW5kbGUqLCBjb25zdCBSZXNvdXJjZVJlc3BvbnNlJgogewogICAg
IHdlYmtpdF9kb3dubG9hZF9zZXRfcmVzcG9uc2UobV9kb3dubG9hZCwgcmVzcG9uc2UpOwogICAg
IGlmIChyZXNwb25zZS5odHRwU3RhdHVzQ29kZSgpID49IDQwMCkgeworICAgICAgICBtX2Rvd25s
b2FkLT5wcml2LT5yZXNvdXJjZUhhbmRsZS0+Y2FuY2VsKCk7CiAgICAgICAgIHdlYmtpdF9kb3du
bG9hZF9lcnJvcihtX2Rvd25sb2FkLCBSZXNvdXJjZUVycm9yKGVycm9yRG9tYWluRG93bmxvYWQs
IHJlc3BvbnNlLmh0dHBTdGF0dXNDb2RlKCksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc3BvbnNlLnVybCgpLnN0cmluZygpLCByZXNw
b25zZS5odHRwU3RhdHVzVGV4dCgpKSk7CiAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>