Thanks Evan! I will look into both options you suggested.

Nidhi

On Apr 27, 3:16 pm, Evan Martin <[email protected]> wrote:
> 1) The dynamic libraries build of chromium is very experimental (I
> believe it was just turned on last week), and while it seems to work I
> wouldn't be surprised if there were still bugs to be shaken out.
>
> 2) Nobody but you appears to be using chromium on Linux outside of
> test_shell and our chromium binary.  So I think it's up to you to
> debug this.  You might want to look at CEF
> (http://code.google.com/p/chromiumembedded/) to see if they've done
> any tricks to make it work on Windows.  Otherwise, I recommend the
> normal set of tools: gdb and valgrind.
>
> On Mon, Apr 27, 2009 at 11:53 AM, nshah <[email protected]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to