GNOME Bugzilla – Bug 591409
crash in firefox
Last modified: 2009-08-12 15:53:25 UTC
This is on Mandriva Cooker with pango 1.25.1 and firefox 3.0.13: # gdb firefox GNU gdb 6.8-6mdv2009.1 (Mandriva Linux release 2009.1) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu"... (no debugging symbols found) (gdb) run "http://docs.sun.com/app/docs/doc/816-5168/fdwalk-3c?a=view" Starting program: /usr/bin/firefox "http://docs.sun.com/app/docs/doc/816-5168/fdwalk-3c?a=view" [Thread debugging using libthread_db enabled] [New Thread 0xb7d9f8e0 (LWP 11290)] [New Thread 0xb5196b70 (LWP 11301)] [New Thread 0xb46e5b70 (LWP 11302)] [New Thread 0xb39bcb70 (LWP 11305)] [New Thread 0xb0d93b70 (LWP 11308)] [Thread 0xb0d93b70 (LWP 11308) exited] [New Thread 0xb0d93b70 (LWP 11309)] [New Thread 0xb0556b70 (LWP 11310)] [New Thread 0xafd55b70 (LWP 11311)] [New Thread 0xaf554b70 (LWP 11312)] Program received signal SIGSEGV, Segmentation fault. hb_face_create_for_data (blob=0x9e4b6b0, index=0) at hb-open-file-private.hh:208 208 switch (tag) { Current language: auto; currently c++ Missing debug package(s), you should install: firefox-debug-3.0.13-1mdv2010.0.i586 (gdb) bt
+ Trace 216874
Here is a complete backtrace: (gdb) bt full
+ Trace 216877
Ok, bug happens when FreeType doesn't mmap() font. I thought face->stream->base will be zero in that case, but apparently not. We can branch on face->stream->read being non-null instead. Fixing. Thanks to fcrozat for IRC debug service.
Well, stream->base *is* NULL, it's just that stream->length is not zero.
commit 954319c6eb2eb3dc74a3e271ee5ae6f1ce12ee32 Author: Behdad Esfahbod <behdad@behdad.org> Date: Tue Aug 11 10:09:19 2009 -0400 Bug 591409 – crash in firefox. Handle non-mmapped FT_Face
*** Bug 591574 has been marked as a duplicate of this bug. ***