hi there,
I am using libraries from dynamic libraries build of the chrome.
Here is the code that segfaults on LoadHTMLString() function :
========================
WebFrame* frame = new WebFrameImpl();
cout << 1 <<endl;
GURL url("http://localhost/foo.html");
cout << 2 <<endl;
const char simple_source[] = "<div>Foo bar</div><div></div>baz";
cout << 3 <<endl;
frame->LoadHTMLString(simple_source, url);
cout << 4 <<endl;
==========================
I tried using the LoadRequest function also:
===========================
WebFrame* frame = new WebFrameImpl();
GURL url("http://localhost/foo.html");
WebRequestImpl* request = new WebRequestImpl();
frame->LoadRequest(request->Create(url));
============================
but this one has free() error:
*** glibc detected *** ./WebKitTest: free(): invalid next size (fast):
0x0804fd40 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb3f77a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb3f7b4f0]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libwtf.so(_ZN3WTF8fastFreeEPv+0x62)[0xb684ad9c]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libwebcore.so(_ZN7WebCore10StringImpldlEPv+0x1d)
[0xb536a50b]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libwebkit.so
(_ZN3WTF10RefCountedIN7WebCore10StringImplEE5derefEv+0x3e)[0xb5ccb6c8]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libwebkit.so
(_ZN3WTF6RefPtrIN7WebCore10StringImplEED1Ev+0x2b)[0xb5ccb783]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libwebkit.so(_ZN7WebCore6StringD1Ev+0x1d)
[0xb5ccb7a7]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libglue.so
(_ZN12WebFrameImpl19InternalLoadRequestEPK10WebRequestRKN7WebCore14SubstituteDataEb
+0xb0)[0xb432a5f8]
/home/dev/ProgramFiles/v8/home/chrome-svn/tarball/chromium/src/
sconsbuild/Debug/lib/libglue.so
(_ZN12WebFrameImpl11LoadRequestEP10WebRequest+0x47)[0xb432ac9f]
./WebKitTest[0x8048daf]
./WebKitTest(main+0x44)[0x804906c]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb3f22450]
./WebKitTest[0x8048b91]
======= Memory map: ========
Please let me know if you have any idea what might be happening here.
Also my main objective is just to load the given url with some
javascript and dom manipulation content init and see how much time it
takes. However, I do not want it to pop any ui, more like a headless
browser simulation if that is at all possible.
thanks ,
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---