[webkit-dev] Client application links to JavaScriptCore instead of std lib

Zoltan Horvath zoltan at webkit.org
Fri Oct 19 11:40:42 PDT 2012


Hi Dipak,

You should try a clean build with build-webkit --system-malloc to force
WebKit to use the system's allocator.

Let me know if it solves your problem.

Cheers,
<Zoltan>

On Fri, Oct 19, 2012 at 5:21 AM, dipak kumar <mail.dipak at gmail.com> wrote:

> Dear All,
>
> I have built Webkit (Process model) for Win32. I have developed a client
> application to use this webkit.
> My client application has a number of new/delete calls. Now when I run the
> client application it crashes
> at the location where memory is being freed. Call stack shows the crash
> point at free of JavaScriptCore.
> This free is inside fastmalloc.cpp.
>
>
> #if
>
> ENABLE(WTF_MALLOC_VALIDATION)
>
> if (!ptr)
>
> return;
>
> fastMallocValidate(ptr);
>
> Internal::ValidationHeader* header =
> Internal::fastMallocValidationHeader(ptr);
>
> memset(ptr, 0xCC, header->m_size);
>
> do_free(header);
>
> #else
>
> *do_free(ptr);
> ----------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> CRASH POINT*
>
> #endif
>
>
>
> Please let me know how can I stop my client application to get linked to
> JavaScriptCore memory functions.
>
>
>
> Awaiting reply.
>
>
>
> Many Thanks,
>
> Dipak
>
>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121019/b5995f89/attachment.html>


More information about the webkit-dev mailing list