<?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>91065</bug_id>
          
          <creation_ts>2012-07-12 02:54:56 -0700</creation_ts>
          <short_desc>[EFL][WK2] Browser crashes running BatteryStatus tests.</short_desc>
          <delta_ts>2012-07-12 06:44:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit EFL</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></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="Sudarsana Nagineni (babu)">naginenis</reporter>
          <assigned_to name="Sudarsana Nagineni (babu)">naginenis</assigned_to>
          <cc>cdumez</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>667573</commentid>
    <comment_count>0</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-07-12 02:54:56 -0700</bug_when>
    <thetext>Here is the backtrace:

#0  0x00007f27acbfdd2e in WebCore::BatteryStatus::level (this=0x48535441e5894855) at WebKit/Source/WebCore/Modules/battery/BatteryStatus.h:38
38	    double level() const  { return m_level; }
(gdb) bt
#0  0x00007f27acbfdd2e in WebCore::BatteryStatus::level (this=0x48535441e5894855) at WebKit/Source/WebCore/Modules/battery/BatteryStatus.h:38
#1  0x00007f27acbfdbe5 in BatteryProvider::didChangeBatteryStatus (this=0x1030cd0, 
    eventType=&quot;䡕荈წ襈譈譈꼕⻙䠀劍䠐ႉ譈荈ダ襈≸￦譈荈ダ襈≸￦譈荈⣀襈≸￦譈荈\340\243\200襈≸￦¸\000茀Ǡ삄\340\261\264譈襈≰￦쏉䡕荈წ襈譈襈≦￦譈襈≊￦쏉䡕䡓䠘綉䣨疉뿠\302\220\000䷨䣿쎉譈襈䣆�䯨䣿䖋䣨�襈≌￦譈荈\341\243\204嵛郃䡕荈レ襈�襈큵譈�荈\340\243\200襈∰￦譈�襈∴￦譈�譈ꤕ⻘䠀劍䠐ႉ譈�赈⡐譈큅襈䣆힉\341\257\250䣿䖋䣘喋䣘슃䠰욉襈∔￦荈큽甀䠻ඍʡ\034赈꼕ᰃ븀C\000赈ꌽᰂ黎￡�黤￡궾잻\000\000렀\000\000&quot;..., status=...) at WebKit/Source/WebKit2/UIProcess/API/efl/BatteryProvider.cpp:90
#2  0x00007f27acbfd95b in startUpdatingCallback (batteryManager=0x102ff60, clientInfo=0x1030cd0) at WebKit/Source/WebKit2/UIProcess/API/efl/BatteryProvider.cpp:45
#3  0x00007f27acac4655 in WebKit::WebBatteryProvider::startUpdating (this=0x102ff78, batteryManager=0x102ff60) at WebKit/Source/WebKit2/UIProcess/WebBatteryProvider.cpp:41
#4  0x00007f27acac3ec5 in WebKit::WebBatteryManagerProxy::startUpdating (this=0x102ff60) at WebKit/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp:71
#5  0x00007f27acc1731f in CoreIPC::callMemberFunction&lt;WebKit::WebBatteryManagerProxy, void (WebKit::WebBatteryManagerProxy::*)()&gt; (object=0x102ff60, function=
    (void (WebKit::WebBatteryManagerProxy::*)(WebKit::WebBatteryManagerProxy * const)) 0x7f27acac3e96 &lt;WebKit::WebBatteryManagerProxy::startUpdating()&gt;)
    at WebKit/Source/WebKit2/Platform/CoreIPC/HandleMessage.h:13
#6  0x00007f27acc17276 in CoreIPC::handleMessage&lt;Messages::WebBatteryManagerProxy::StartUpdating, WebKit::WebBatteryManagerProxy, void (WebKit::WebBatteryManagerProxy::*)()&gt; (argumentDecoder=
    0x7f2748000970, object=0x102ff60, function=(void (WebKit::WebBatteryManagerProxy::*)(WebKit::WebBatteryManagerProxy * const)) 0x7f27acac3e96 &lt;WebKit::WebBatteryManagerProxy::startUpdating()&gt;)
    at WebKit/Source/WebKit2/Platform/CoreIPC/HandleMessage.h:302
#7  0x00007f27acc17155 in WebKit::WebBatteryManagerProxy::didReceiveWebBatteryManagerProxyMessage (this=0x102ff60, messageID=..., arguments=0x7f2748000970)
    at WebKit/WebKitBuild/Debug/DerivedSources/WebKit2/WebBatteryManagerProxyMessageReceiver.cpp:41
#8  0x00007f27acac3e94 in WebKit::WebBatteryManagerProxy::didReceiveMessage (this=0x102ff60, connection=0x100b060, messageID=..., arguments=0x7f2748000970)
    at WebKit/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp:63
#9  0x00007f27acacc73c in WebKit::WebContext::didReceiveMessage (this=0x102f3d0, connection=0x100b060, messageID=..., arguments=0x7f2748000970)
    at WebKit/Source/WebKit2/UIProcess/WebContext.cpp:766
#10 0x00007f27acb37224 in WebKit::WebProcessProxy::didReceiveMessage (this=0x1033390, connection=0x100b060, messageID=..., arguments=0x7f2748000970)
    at WebKit/Source/WebKit2/UIProcess/WebProcessProxy.cpp:327
#11 0x00007f27acac4acf in WebKit::WebConnectionToWebProcess::didReceiveMessage (this=0x100b010, connection=0x100b060, messageID=..., arguments=0x7f2748000970)
    at WebKit/Source/WebKit2/UIProcess/WebConnectionToWebProcess.cpp:92
#12 0x00007f27aca703ab in CoreIPC::Connection::dispatchMessage (this=0x100b060, message=...) at WebKit/Source/WebKit2/Platform/CoreIPC/Connection.cpp:691
#13 0x00007f27aca70549 in CoreIPC::Connection::dispatchOneMessage (this=0x100b060) at WebKit/Source/WebKit2/Platform/CoreIPC/Connection.cpp:717
#14 0x00007f27aca7a43c in WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;::operator() (this=0x7f2748000b10, c=0x100b060) at WebKit/Source/WTF/wtf/Functional.h:173
#15 0x00007f27aca7a242 in WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;, void (CoreIPC::Connection*)&gt;::operator()() (this=0x7f2748000b00)
    at WebKit/Source/WTF/wtf/Functional.h:405
#16 0x00007f27acbcac12 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7fff97ec9080) at WebKit/Source/WTF/wtf/Functional.h:613
#17 0x00007f27a7b44f63 in WebCore::RunLoop::performWork (this=0x1012120) at WebKit/Source/WebCore/platform/RunLoop.cpp:87
#18 0x00007f27a853368f in WebCore::RunLoop::wakeUpEvent (data=0x1012120) at WebKit/Source/WebCore/platform/efl/RunLoopEfl.cpp:100
#19 0x00007f27acff1061 in _ecore_pipe_read (data=0xfc3750, fd_handler=&lt;optimized out&gt;) at ecore_pipe.c:625
#20 0x00007f27acff0131 in _ecore_call_fd_cb (data=&lt;optimized out&gt;, func=&lt;optimized out&gt;, fd_handler=0xfc3e50) at ecore_private.h:343
#21 _ecore_main_fd_handlers_call () at ecore_main.c:1562
#22 _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:1809
#23 0x00007f27acff0677 in ecore_main_loop_begin () at ecore_main.c:931
#24 0x0000000000401db3 in main (argc=2, argv=0x7fff97ec92c8) at WebKit/Tools/MiniBrowser/efl/main.c:201</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>667640</commentid>
    <comment_count>1</comment_count>
      <attachid>151915</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-07-12 05:09:48 -0700</bug_when>
    <thetext>Created attachment 151915
Patch

Patch fixes incorrect casting of clientInfo to BatteryProviderEfl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>667650</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2012-07-12 05:18:26 -0700</bug_when>
    <thetext>LGTM. Thanks for the fix, this is high priority. Let&apos;s land it ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>667689</commentid>
    <comment_count>3</comment_count>
      <attachid>151915</attachid>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-07-12 06:03:54 -0700</bug_when>
    <thetext>Comment on attachment 151915
Patch

LGTM, mainly relying on Christophe&apos;s LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>667729</commentid>
    <comment_count>4</comment_count>
      <attachid>151915</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-07-12 06:44:39 -0700</bug_when>
    <thetext>Comment on attachment 151915
Patch

Clearing flags on attachment: 151915

Committed r122453: &lt;http://trac.webkit.org/changeset/122453&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>667730</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-07-12 06:44:44 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>151915</attachid>
            <date>2012-07-12 05:09:48 -0700</date>
            <delta_ts>2012-07-12 06:44:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>91065.patch</filename>
            <type>text/plain</type>
            <size>1508</size>
            <attacher name="Sudarsana Nagineni (babu)">naginenis</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCBlOTFiOTg5Li5hNTEyNzYzIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG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