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

dipak kumar mail.dipak at gmail.com
Mon Dec 24 00:28:46 PST 2012


Thanks a lot Zoltan. It has worked and saved my life :)

On Sat, Oct 20, 2012 at 12:10 AM, Zoltan Horvath <zoltan at webkit.org> wrote:

> 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/20121224/6fc4549c/attachment.html>


More information about the webkit-dev mailing list