Opened 10 years ago

Last modified 9 years ago

#7438 closed bug

WebPositive crashes in WebCore::ResourceHandle::didReceiveAuthenticationChallenge — at Version 5

Reported by: js Owned by: leavengood
Priority: normal Milestone: R1
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by diver)

This happens on a page using HTTPS and HTTP Auth:

#0  0x00a6b508 in WebCore::ResourceHandle::didReceiveAuthenticationChallenge ()
   from /boot/apps/WebPositive/lib/libwebcore.so
#1  0x00a72d83 in _ZN7WebCoreL24handleHTTPAuthenticationEPNS_14ResourceHandleE
    () from /boot/apps/WebPositive/lib/libwebcore.so
#2  0x00a737bd in WebCore::ResourceHandleManager::downloadTimerCallback ()
   from /boot/apps/WebPositive/lib/libwebcore.so
#3  0x00a73920 in WebCore::Timer<WebCore::ResourceHandleManager>::fired ()
   from /boot/apps/WebPositive/lib/libwebcore.so
#4  0x00a1075b in WebCore::ThreadTimers::sharedTimerFiredInternal ()
   from /boot/apps/WebPositive/lib/libwebcore.so
#5  0x00a107b9 in WebCore::ThreadTimers::sharedTimerFired ()
   from /boot/apps/WebPositive/lib/libwebcore.so
#6  0x00a4d1d8 in WebCore::SharedTimerHaiku::MessageReceived ()
   from /boot/apps/WebPositive/lib/libwebcore.so
#7  0x027acb78 in BLooper::DispatchMessage ()
   from /boot/system/lib/gcc4/libbe.so
#8  0x027a39e3 in BApplication::DispatchMessage ()
   from /boot/system/lib/gcc4/libbe.so
#9  0x027ae6b4 in BLooper::task_looper () from /boot/system/lib/gcc4/libbe.so
#10 0x027a42a4 in BApplication::Run () from /boot/system/lib/gcc4/libbe.so
#11 0x0023b253 in main ()

Unfortunately, I can't give away my login data to others for testing.

Change History (5)

comment:1 by scottmc, 10 years ago

What is the haiku revision you are using that this happened on? (r4xxxx)? Also was it a gcc4 only or was it a hybrid? Self built or downloaded from the nightly builds?

comment:2 by js, 10 years ago

gcc2 hybrid, nightly build, hrev41194, also happend a few revs before, dunno when the bug started happening, never had a Haiku installation where it did not happen.

comment:3 by phoudoin, 10 years ago

Could you give us the whole debug output and not just the stack crawl?

I suspect a segfault issue here, due to a possible race:

void ResourceHandle::didReceiveAuthenticationChallenge():
{
  if (client())
     client()->didReceiveAuthenticationChallenge(this, challenge);
}

comment:4 by js, 10 years ago

Output before typing bt:

[tcsetpgrp failed in terminal_inferior: Invalid Argument]
Thread 184 caused an exception: Segment violation
Reading symbols from /boot/system/runtime_loader...done.
Loaded symbols for /boot/system/runtime_loader
Reading symbols from /boot/apps/WebPositive/lib/libjavascriptcore.so...done.
Loaded symbols for /boot/apps/WebPositive/lib/libjavascriptcore.so
Reading symbols from /boot/apps/WebPositive/lib/libwebcore.so...done.
Loaded symbols for /boot/apps/WebPositive/lib/libwebcore.so
Reading symbols from /boot/apps/WebPositive/lib/libwebkit.so...done.
Loaded symbols for /boot/apps/WebPositive/lib/libwebkit.so
Reading symbols from /boot/common/lib/libcurl.so.4.2.0...done.
Loaded symbols for /boot/common/lib/libcurl.so.4.2.0
Reading symbols from /boot/system/lib/gcc4/libicuuc.so.44...done.
Loaded symbols for /boot/system/lib/gcc4/libicuuc.so.44
Reading symbols from /boot/system/lib/gcc4/libicudata.so.44...
warning: Lowest section in /boot/system/lib/gcc4/libicudata.so.44 is .hash at 00000094
done.
Loaded symbols for /boot/system/lib/gcc4/libicudata.so.44
Reading symbols from /boot/system/lib/gcc4/libpng.so.1.4...done.
Loaded symbols for /boot/system/lib/gcc4/libpng.so.1.4
Reading symbols from /boot/common/lib/libsqlite3.so.0.8.6...done.
Loaded symbols for /boot/common/lib/libsqlite3.so.0.8.6
Reading symbols from /boot/common/lib/libxml2.so.2.7.8...done.
Loaded symbols for /boot/common/lib/libxml2.so.2.7.8
Reading symbols from /boot/system/lib/gcc4/libz.so.1...done.
Loaded symbols for /boot/system/lib/gcc4/libz.so.1
Reading symbols from /boot/system/lib/gcc4/libbe.so...done.
Loaded symbols for /boot/system/lib/gcc4/libbe.so
Reading symbols from /boot/system/lib/gcc4/libbsd.so...done.
Loaded symbols for /boot/system/lib/gcc4/libbsd.so
Reading symbols from /boot/system/lib/gcc4/liblocale.so...done.
Loaded symbols for /boot/system/lib/gcc4/liblocale.so
Reading symbols from /boot/system/lib/gcc4/libnetwork.so...done.
Loaded symbols for /boot/system/lib/gcc4/libnetwork.so
Reading symbols from /boot/system/lib/gcc4/libstdc++.so...done.
Loaded symbols for /boot/system/lib/gcc4/libstdc++.so
Reading symbols from /boot/system/lib/gcc4/libtracker.so...done.
Loaded symbols for /boot/system/lib/gcc4/libtracker.so
Reading symbols from /boot/system/lib/gcc4/libtranslation.so...done.
Loaded symbols for /boot/system/lib/gcc4/libtranslation.so
Reading symbols from /boot/system/lib/gcc4/libroot.so...done.
Loaded symbols for /boot/system/lib/gcc4/libroot.so
Reading symbols from /boot/system/lib/gcc4/libicui18n.so.44...done.
Loaded symbols for /boot/system/lib/gcc4/libicui18n.so.44
Reading symbols from /boot/system/lib/gcc4/libjpeg.so.8.0...done.
Loaded symbols for /boot/system/lib/gcc4/libjpeg.so.8.0
Reading symbols from /boot/system/lib/gcc4/libtextencoding.so...done.
Loaded symbols for /boot/system/lib/gcc4/libtextencoding.so
Reading symbols from /boot/common/lib/libssl.so.1.0.0...done.
Loaded symbols for /boot/common/lib/libssl.so.1.0.0
Reading symbols from /boot/common/lib/libcrypto.so.1.0.0...done.
Loaded symbols for /boot/common/lib/libcrypto.so.1.0.0
Reading symbols from /boot/common/lib/libiconv.so.2.5.0...done.
Loaded symbols for /boot/common/lib/libiconv.so.2.5.0
Reading symbols from /boot/system/lib/gcc4/libicuio.so.44...done.
Loaded symbols for /boot/system/lib/gcc4/libicuio.so.44
Reading symbols from /boot/system/lib/gcc4/libicule.so.44...done.
Loaded symbols for /boot/system/lib/gcc4/libicule.so.44
Reading symbols from /boot/system/lib/gcc4/libiculx.so.44...done.
Loaded symbols for /boot/system/lib/gcc4/libiculx.so.44
Reading symbols from /boot/system/lib/gcc4/libicutu.so.44...done.
Loaded symbols for /boot/system/lib/gcc4/libicutu.so.44
Reading symbols from /boot/system/lib/gcc4/libsupc++.so...done.
Loaded symbols for /boot/system/lib/gcc4/libsupc++.so
Reading symbols from /boot/system/lib/gcc4/libroot-addon-icu.so...done.
Loaded symbols for /boot/system/lib/gcc4/libroot-addon-icu.so
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /boot/apps/WebPositive/WebPositive (184) thread WebPositive (184)]
0x00a6b508 in WebCore::ResourceHandle::didReceiveAuthenticationChallenge ()
   from /boot/apps/WebPositive/lib/libwebcore.so
(gdb) 

Btw, on this page, it works, interestingly, although this is also HTTPS + HTTP Auth. A race condition is perfectly possible, as the page starts to render and then the crash happens.

comment:5 by diver, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.