Hi Ghee,

On Sep 25, 2008, at 5:13 PM, Ghee Teo wrote:

> Hi Ginn,
>
> Look like we are getting firefox crashes because of double free of  
> memory.
> What are the steps that we can isolate that it is a result or using
> jemalloc and
> narrowed it down to where the dup free is without having to compile  
> firefox?

If you have a malloc library which will crash immediately on double  
free of memory,
you can set LD_PRELOAD to that library.

You can compile a debug version of jemalloc for this purpose.
It only takes several minutes.
Get Firefox 3.0.x source tarball, expand it,
set CC, CXX to Sun Studio 12,
./configure --disable--optimize --enable-debug --enable- 
application=browser
run gmake under memory/jemalloc.
you should have a libjemalloc.so then.

Ginn

>
>
> One reason why the print dialog is most sensitive because it is a
> dynamic loadable backend and only Sun uses a PAPI backend and hence
> not well tried in the community.
>
> Thanks,
>
> -Ghee
>
> Ginn Chen wrote:
>> Bill,
>>
>> it seems it is a bug of cairo, when printing bitmap fonts.
>> We're looking into it.
>>
>> To workaround, you can add a file in your home directory.
>>
>> $cat ~/.fonts.conf
>> <?xml version="1.0"?>
>> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
>> <!-- ~/.fonts.conf file to configure system font access -->
>> <fontconfig>
>>      <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
>>      <selectfont>
>>              <rejectfont>
>>                      <pattern>
>>                              <patelt 
>> name="scalable"><bool>false</bool></patelt>
>>                      </pattern>
>>              </rejectfont>
>>      </selectfont>
>> </fontconfig>
>>
>> Thanks,
>>
>> Ginn
>>
>> On Sep 25, 2008, at 1:56 AM, Bill Shannon wrote:
>>
>>
>>> Ginn Chen wrote:
>>>
>>>> Firefox 3 uses jemalloc library instead of libc memory allocator.
>>>> jemalloc would crash the application if there's a double free.
>>>>
>>>> Try to set LD_PRELOAD=/usr/lib/libc.so, it may works.
>>>>
>>> Ok, that caused it to bring up the print dialog and actually print.
>>>
>>> Now the only problem is that the printout is completely wrong!
>>> It's using the wrong fonts with the wrong size and the wrong  
>>> spacing!
>>> Not just a little bit wrong, but *completely* wrong.  The header and
>>> footer titles are actually correct, but the font in the page is  
>>> either
>>> squished together so close that the character overlap each other, or
>>> it's half the size it should be and spaced twice as far apart as it
>>> should be so that it takes up the same amount of horizontal space.
>>>
>>> I'll send you a sample pdf file separately so you can see what I  
>>> mean.
>>>
>>> Any other ideas?
>>>
>>> _______________________________________________
>>> desktop-discuss mailing list
>>> desktop-discuss at opensolaris.org
>>>
>>
>> --------
>> Ginn Chen
>> Software Engineer, Browser Team
>> Sun Microsystems, Inc.
>> Phone: x82869 / +86-10-62673869
>> Fax: +86-10-62780969
>>
>>
>> _______________________________________________
>> desktop-discuss mailing list
>> desktop-discuss at opensolaris.org
>>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org

--------
Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: x82869 / +86-10-62673869
Fax: +86-10-62780969



Reply via email to