<?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>48908</bug_id>
          
          <creation_ts>2010-11-03 05:49:05 -0700</creation_ts>
          <short_desc>crash in px_proxy_factory_get_proxies</short_desc>
          <delta_ts>2011-01-10 06:22:12 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/660455</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>brian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>a9016009</cc>
    
    <cc>kevin.campbell</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>303989</commentid>
    <comment_count>0</comment_count>
    <who name="">brian</who>
    <bug_when>2010-11-03 05:49:05 -0700</bug_when>
    <thetext>Per the downstream bug report at Ubuntu&apos;s Launchpad (see URL: tag for link to downstream bug report) webkit is crashing in the proxy PAC parser:

#0 __strcmp_ia32 () at ../sysdeps/i386/i686/multiarch/../strcmp.S:39
#1 0x04c2f252 in _run (self=0x98e5788, pac=0x983f2f0, url=0x990e988)
    at pacrunner_webkit.c:197
#2 0x00dafb52 in px_proxy_factory_get_proxies (self=0x984ee80,
    url=0x98e82d8 &quot;http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=CYGK&quot;)
    at proxy.c:401
#3 0x00a9fdb2 in ?? () from /usr/lib/libsoup-gnome-2.4.so.1
#4 0x00aa0199 in ?? () from /usr/lib/libsoup-gnome-2.4.so.1
#5 0x007633d4 in g_thread_pool_thread_proxy (data=0x9854df8)
    at /build/buildd/glib2.0-2.26.0/glib/gthreadpool.c:319
#6 0x0076148f in g_thread_create_proxy (data=0x9906bb0)
    at /build/buildd/glib2.0-2.26.0/glib/gthread.c:1897
#7 0x00e39cc9 in start_thread (arg=0xb2fbeb70) at pthread_create.c:304
#8 0x009d56ae in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>312022</commentid>
    <comment_count>1</comment_count>
    <who name="Andre Klapper">a9016009</who>
    <bug_when>2010-11-20 18:29:28 -0800</bug_when>
    <thetext>The trace is missing libsoup symbols.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>312121</commentid>
    <comment_count>2</comment_count>
    <who name="">brian</who>
    <bug_when>2010-11-21 09:27:22 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; The trace is missing libsoup symbols.

Indeed, but seriously, is it really unclear about what is failing in px_proxy_factory_get_proxies() without the libsoup symbols?  It&apos;s not like the call to px_proxy_factory_get_proxies() is all that complicated.

In any case, I have installed the libsoup debug symbols.  It shouldn&apos;t take very long to get another crash (it happens dozens of times a day) and get another stack trace for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>312198</commentid>
    <comment_count>3</comment_count>
    <who name="">brian</who>
    <bug_when>2010-11-21 18:54:27 -0800</bug_when>
    <thetext>So here&apos;s the stack trace with libsoup symbols:

#0  __strcmp_ia32 () at ../sysdeps/i386/i686/multiarch/../strcmp.S:39
#1  0x00ed5252 in _run (self=0x933e7e0, pac=0x933e7f0, url=0x9424fd8)
    at pacrunner_webkit.c:197
#2  0x00c36b52 in px_proxy_factory_get_proxies (self=0x9314340, 
    url=0x9488838 &quot;http://weather.noaa.gov/mgetmetar.php?cccc=CYYZ&quot;)
    at proxy.c:401
#3  0x00a9cdb2 in get_proxy_for_uri_via_libproxy (
    proxy_uri_resolver=0x9318650, uri=0x93d4240, cancellable=0x9447d40, 
    proxy_uri=0x945ab08) at soup-proxy-resolver-gnome.c:453
#4  get_proxy_uri_sync (proxy_uri_resolver=0x9318650, uri=0x93d4240, 
    cancellable=0x9447d40, proxy_uri=0x945ab08)
    at soup-proxy-resolver-gnome.c:570
#5  0x00a9d199 in libproxy_threadpool_func (user_data=0x945ab00, 
    thread_data=0x0) at soup-proxy-resolver-gnome.c:525
#6  0x002e13d4 in g_thread_pool_thread_proxy (data=0x931a1a8)
    at /build/buildd/glib2.0-2.26.0/glib/gthreadpool.c:319
#7  0x002df48f in g_thread_create_proxy (data=0x939fff8)
    at /build/buildd/glib2.0-2.26.0/glib/gthread.c:1897
#8  0x0047acc9 in start_thread (arg=0xb4c75b70) at pthread_create.c:304
#9  0x0093f69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

And what I hope is some useful data:

(gdb) frame 2
#2  0x00c36b52 in px_proxy_factory_get_proxies (self=0x9314340, 
    url=0x9488838 &quot;http://weather.noaa.gov/mgetmetar.php?cccc=CYYZ&quot;)
    at proxy.c:401
401	proxy.c: No such file or directory.
	in proxy.c
(gdb) print self
$1 = (pxProxyFactory *) 0x9314340
(gdb) print *self
$2 = {mutex = {__data = {__lock = 1, __count = 0, __owner = 10518, __kind = 0, 
      __nusers = 1, {__spins = 0, __list = {__next = 0x0}}}, 
    __size = &quot;\001\000\000\000\000\000\000\000\026)\000\000\000\000\000\000\001\000\000\000\000\000\000&quot;, __align = 1}, mm = 0x931acb8, pac = 0x933e7f0, 
  wpad = false}
(gdb) print *self-&gt;pac
$3 = {url = 0x933e780, 
  cache = 0x93cdd88 &quot;function FindProxyForURL(url, host) {\n    if (isPlainHostName(host) ||\n\tisInNet(host, \&quot;10.75.22.0\&quot;, \&quot;255.255.254.0\&quot;) ||\n\tisInNet(host, \&quot;10.23.104.0\&quot;, \&quot;255.255.248.0\&quot;) ||\n\tisInNet(host, \&quot;192.168.0.0\&quot;, &quot;..., expires = 0}

Cheers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313228</commentid>
    <comment_count>4</comment_count>
    <who name="">brian</who>
    <bug_when>2010-11-24 04:40:31 -0800</bug_when>
    <thetext>Was the last stacktrace any more useful?

I&apos;m increasing the priority of this bug since it is causing both the gnome-panel&apos;s clock and rhythmbox to crash dozens of times a day.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324106</commentid>
    <comment_count>5</comment_count>
    <who name="">brian</who>
    <bug_when>2010-12-18 07:18:26 -0800</bug_when>
    <thetext>Any ideas on this with the new stack trace?

This bug is very annoying as it&apos;s crashing multiple programs here many times a day as they try to use libproxy to determine how to access the Internet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331594</commentid>
    <comment_count>6</comment_count>
    <who name="">brian</who>
    <bug_when>2011-01-10 06:03:53 -0800</bug_when>
    <thetext>You asked for a stack trace with symbols and I have attached it, a long time ago.

Is this component of webkit ignored and not maintained?  Please let me know so that I can file a bug with my distro to remove functionality that is depending on it (and buggy/not working as a result of this bug).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331598</commentid>
    <comment_count>7</comment_count>
    <who name="">brian</who>
    <bug_when>2011-01-10 06:22:12 -0800</bug_when>
    <thetext>On second (or third or is it forty-eleventh now?) look, perhaps this is a bug in libproxy and not webkit.  I will close it until know better.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>