bugGnash - The GNU Flash player - Bugs: bug #23345, Segfault from...

 
 

bug #23345: Segfault from FreetypeGlyphsProvider::getFontFilename()

Submitted by:  Bastiaan Jacques <bjacques>
Submitted on:  Sat 24 May 2008 04:26:23 PM UTC  
 
Category: coreSeverity: 5 - Blocker
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 29 May 2008 03:23:57 PM UTC, comment #11:

Yes, the new segfault seems unrelated. I have a strong suspicion it's a bug in GTK, also.

Bastiaan Jacques <bjacques>
Project Member
Thu 29 May 2008 02:52:40 PM UTC, comment #10:

Yes, we rely on the assumption that GTK runs in a single
thread. Should we close this one so you open a new one
when you figure out the multithreaded GTK thing ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed 28 May 2008 12:49:48 AM UTC, comment #9:

I note that there are two threads in the stack trace. And both of them are running GTK functions. But as far as I know, GTK is supposed to be run in a single thread for Gnash.

Bastiaan Jacques <bjacques>
Project Member
Tue 27 May 2008 08:45:56 PM UTC, comment #8:

I only have one glib on my system so I would guess not. It is possible, though, that this is not a bug in Gnash. It might be a bug in one of the other libraries. It's hard to say.

Bastiaan Jacques <bjacques>
Project Member
Tue 27 May 2008 12:14:01 PM UTC, comment #7:

hard to read that backtrace...
could it be you have mixed glib linked in ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 27 May 2008 05:16:37 AM UTC, comment #6:

The segfault is now much less frequent and the stacktrace is quite different. See attached.

(file #15739)

Bastiaan Jacques <bjacques>
Project Member
Mon 26 May 2008 09:42:01 PM UTC, comment #5:

I committed the patch, seems sane anyway (in a threaded environment)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 26 May 2008 08:48:55 AM UTC, comment #4:

Bastiaan, could you try the attached patch please ?
(re-enabling threaded loading)

(file #15733)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sun 25 May 2008 03:09:16 AM UTC, comment #3:

I disabled threaded loading and it hasn't crashed since.

Bastiaan Jacques <bjacques>
Project Member
Sat 24 May 2008 10:21:47 PM UTC, comment #2:

forget it, can't really be as execptions are handled
from inside the FreeFontGlyphProvider itself...
Could you try disabling threading (from movie_def_impl.cpp) ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 24 May 2008 10:20:00 PM UTC, comment #1:

Is this just an uncought exception ?
ie: does wrapping line 153 of server/font.cpp
in a try/catch block (catching std::exception) fixes it ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 24 May 2008 04:26:23 PM UTC, original submission:

See attached stacktrace (you'll want thread 2). This segfault occurs fairly randomly when the plugin first loads Gnash to show the "click to play" button (and Gnash immediately crashes).

I'm running the release branch.

Bastiaan Jacques <bjacques>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #15739:  stacktrace.txt added by bjacques (83KiB - text/plain)
file #15733:  FreetypeGlyphsProvider.patch added by strk (2KiB - application/octet-stream)
file #15722:  -bugreport.txt added by bjacques (56KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by bjacques (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 May 2008 03:23:57 PM UTCbjacquesStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Thu 29 May 2008 02:52:40 PM UTCstrkStatusConfirmed=>Need Info
    Tue 27 May 2008 05:16:37 AM UTCbjacquesStatusReady For Test=>Confirmed
    Tue 27 May 2008 05:16:36 AM UTCbjacquesAttached File-=>Added stacktrace.txt, #15739
    Mon 26 May 2008 09:42:01 PM UTCstrkStatusIn Progress=>Ready For Test
    Mon 26 May 2008 08:48:55 AM UTCstrkAttached File-=>Added FreetypeGlyphsProvider.patch, #15733
      StatusNone=>In Progress
    Sat 24 May 2008 04:26:23 PM UTCbjacquesAttached File-=>Added -bugreport.txt, #15722

    Back to the top


    Powered by Savane 3.1-cleanup1