I've hit a snag with my efforts porting WebKit to AROS and I really need
some help from someone who understands this code. This description will
probably be a little vague, because I'm not entirely sure what
information to provide, but I'll try.

My port is so far pretty much just stubs, but I appear to have done
enough to request a page. My *Client classes are nearly all stubs,
largely copied from the GTK and Wx ports. I'm using (roughly) the
following to intialize WebKit and make the request:

  Page* page = new Page(new WebKit::ChromeClient, new WebKit::ContextMenuClient,
                        new WebKit::EditorClient, new WebKit::DragClient,
                        new WebKit::InspectorClient);

  Frame* frame = new Frame(page, 0, new WebKit::FrameLoaderClient);

  frame->loader()->load(ResourceRequest(KURL("http://192.168.0.1/";)));

This is enough to trigger the assertion. Backtrace is attached. The page
returned is also attached, but I doubt it makes a difference - its dead
simple.

I have no idea where to look next. Obviously its something that I
haven't implemented yet, but I've been staring at this code on and off
for four days and I have no idea where to start with it. I'd really
appreciate a gentle nudge in the right direction.

If its any help (probably not), I have my code available here:

  http://cataclysm.cx/git/cgit.cgi?r=webkit

Its up to date with WebKit SVN r29197.

Thanks,
Rob.
#0  0xa8cd2ff9 in WebCore::FrameLoader::saveDocumentState (this=0xa87e308c)
    at ../../../WebCore/loader/FrameLoader.cpp:3940
#1  0xa8ce09f3 in WebCore::FrameLoader::closeURL (this=0xa87e308c)
    at ../../../WebCore/loader/FrameLoader.cpp:647
#2  0xa8ce19c7 in WebCore::FrameLoader::didOpenURL (this=0xa87e308c, [EMAIL 
PROTECTED])
    at ../../../WebCore/loader/FrameLoader.cpp:694
#3  0xa8ce2095 in WebCore::FrameLoader::commitProvisionalLoad (this=0xa87e308c, 
[EMAIL PROTECTED])
    at ../../../WebCore/loader/FrameLoader.cpp:2545
#4  0xa8f06a37 in WebCore::DocumentLoader::commitIfReady (this=0xa882e714)
    at ../../../WebCore/loader/DocumentLoader.cpp:309
#5  0xa8f07989 in WebCore::DocumentLoader::commitLoad (this=0xa882e714, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378) at 
../../../WebCore/loader/DocumentLoader.cpp:349
#6  0xa8f07a10 in WebCore::DocumentLoader::receivedData (this=0xa882e714, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378) at 
../../../WebCore/loader/DocumentLoader.cpp:363
#7  0xa8cd6e61 in WebCore::FrameLoader::receivedData (this=0xa87e308c, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378) at 
../../../WebCore/loader/FrameLoader.cpp:2184
#8  0xa8f10ec9 in WebCore::MainResourceLoader::addData (this=0xa88313dc, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378, allAtOnce=false) at 
../../../WebCore/loader/MainResourceLoader.cpp:125
#9  0xa8ce6e37 in WebCore::ResourceLoader::didReceiveData (this=0xa88313dc, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378, lengthReceived=0, allAtOnce=false)
    at ../../../WebCore/loader/ResourceLoader.cpp:226
#10 0xa8f104e1 in WebCore::MainResourceLoader::didReceiveData (this=0xa88313dc, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378, lengthReceived=0, allAtOnce=false)
    at ../../../WebCore/loader/MainResourceLoader.cpp:278
#11 0xa8ce6576 in WebCore::ResourceLoader::didReceiveData (this=0xa88313dc, 
    data=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., length=378, lengthReceived=0) at 
../../../WebCore/loader/ResourceLoader.cpp:357
---Type <return> to continue, or q <return> to quit---
#12 0xa8d820b0 in writeCallback (ptr=0xa883980f, size=1, nmemb=378, 
data=0xa883132c)
    at ../../../WebCore/platform/network/curl/ResourceHandleManager.cpp:120
#13 0xa9090f02 in Curl_client_write (conn=0xa8842274, type=<value optimized 
out>, 
    ptr=0xa883980f "<html><head><title>Index of ./</title></head>\n<body 
bgcolor=\"#99cc99\"><h4>Index of ./</h4>\n<pre>\n<a href=\".\">.", ' ' <repeats 
31 times>, "</a>    02Jan2008 12:46", ' ' <repeats 11 times>, "4096\n<a 
href=\"..\">..     "..., len=378) at sendf.c:423
#14 0xa90a3cd3 in Curl_readwrite (conn=0xa8842274, done=0xa87deb27) at 
transfer.c:1330
#15 0xa9093a58 in multi_runsingle (multi=0xa883277c, easy=0xa884206c) at 
multi.c:1260
#16 0xa9094c43 in curl_multi_perform (multi_handle=0xa883277c, 
running_handles=0xa87debac) at multi.c:1479
#17 0xa8d81c28 in WebCore::ResourceHandleManager::downloadTimerCallback 
(this=0xa8832634, timer=0xa8832634)
    at ../../../WebCore/platform/network/curl/ResourceHandleManager.cpp:235
Title: Index of ./

Index of ./

.                                   02Jan2008 12:46           4096
..                                  02Jan2008 12:46           4096

micro_httpd
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to