firefox + mplayer plugin + print = crash

Help
2005-09-08
2013-05-13
  • Daniel Norman
    Daniel Norman
    2005-09-08

    Greetings all,

    I've been having an extremely irritating problem with firefox crashing that I believe is directly related to the mplayer plugin, but I'm at a loss as to why.

    This is an odd problem, but its very reproducable, so hopefully somebody here might be able to tell me what the solution is... so here goes:

    Every time I visit a page that loads up the mplayer plugin (visible or hidden) then leave or close the page /tab and then print a page, it crashes immediately after the print. IF I do not close or leave the page where the plugin is loaded, then it works fine... but the second I close said page and print... it crashes.

    I have been able to reproduce this on multiple versions of distros of linux, and across versions for firefox from 0.9 to 1.0.4+ with mplayer plugin versions from ~1.0 to 3.0+ and multiple Mplayer versions ranging almost a year.

    My current Set up is as follows:
    Stock Fedora core 4 + all updates
    with Firefox 1.0.4
    Mplayer plugin 3.05-1 (rpm downloaded here)
    and Mplayer 1.0-0.16.pre7.2

    Steps to reproduce the problem:
    1. paste the following url into firefox: http://www.fluffbucket.com/grapix/test.wav
    2. close the tab or window there the wav loaded into the plugin
    3. load http://ltsp.org/aboutus.php
    4. print the document
    and it crashes every time

    Nearly identical steps that DO NOT reproduce the problem:
    1. paste the following url into firefox: http://www.fluffbucket.com/grapix/test.wav
    2. DO NOT close the tab or window there the wav loaded into the plugin
    3. load in a seperate window or tab: http://ltsp.org/aboutus.php
    4. print the document
    and it does not crash.... if you close the mplayer plugin tab/window then retry the print, it will then crash.

    I have attached part of the gdb output and all of the backtrace of the crash:
    ...
    UA: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4:, extra:  Firefox/1.0.4
    [New Thread 46623664 (LWP 4312)]
    [New Thread 100944816 (LWP 4313)]
    (no debugging symbols found)
    [Thread 46623664 (LWP 4312) exited]
    (no debugging symbols found)
    (no debugging symbols found)
    [New Thread 46623664 (LWP 4315)]
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    [New Thread -1247806544 (LWP 4325)]
    Detaching after fork from child process 4326.
    [Thread -1247806544 (zombie) exited]
    [Thread -1220719696 (LWP 4310) exited]
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    Detaching after fork from child process 4335.

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread -1208104480 (LWP 4306)]
    0x03c1ac00 in ?? ()
    (gdb) bt
    #0  0x03c1ac00 in ?? ()
    #1  <signal handler called>
    #2  0x00167402 in __kernel_vsyscall ()
    #3  0x0028f7c3 in __waitpid_nocancel () from /lib/libc.so.6
    #4  0x00259e6d in _IO_proc_close@@GLIBC_2.1 () from /lib/libc.so.6
    #5  0x00260e30 in _IO_new_file_close_it () from /lib/libc.so.6
    #6  0x00257f46 in fclose@@GLIBC_2.1 () from /lib/libc.so.6
    #7  0x0025f1dd in pclose@@GLIBC_2.1 () from /lib/libc.so.6
    #8  0x014ba4b1 in ?? () from /usr/lib/firefox-1.0.4/components/libgfxps.so
    #9  0x014b1c0a in ?? () from /usr/lib/firefox-1.0.4/components/libgfxps.so
    #10 0x01d917ff in NSGetModule () from /usr/lib/firefox-1.0.4/components/libgklayout.so
    #11 0x01d86687 in NSGetModule () from /usr/lib/firefox-1.0.4/components/libgklayout.so
    #12 0x01dad8df in NSGetModule () from /usr/lib/firefox-1.0.4/components/libgklayout.so
    #13 0x01d86e58 in NSGetModule () from /usr/lib/firefox-1.0.4/components/libgklayout.so
    #14 0x00c26ade in PL_HandleEvent () from /usr/lib/firefox-1.0.4/libxpcom.so
    #15 0x00c26f7e in PL_ProcessPendingEvents () from /usr/lib/firefox-1.0.4/libxpcom.so
    #16 0x00c282f9 in nsEventQueueImpl::NotifyObservers () from /usr/lib/firefox-1.0.4/libxpcom.so
    #17 0x00411bc0 in ?? () from /usr/lib/firefox-1.0.4/components/libwidget_gtk2.so
    #18 0x00b283ac in g_vasprintf () from /usr/lib/libglib-2.0.so.0
    #19 0x00b023ee in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
    #20 0x00b053f6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
    #21 0x00b056e3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
    #22 0x0350f1b5 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
    #23 0x00412004 in ?? () from /usr/lib/firefox-1.0.4/components/libwidget_gtk2.so
    #24 0x0033f83f in ?? () from /usr/lib/firefox-1.0.4/components/libnsappshell.so
    #25 0x080518d9 in ?? ()
    #26 0x0804db31 in ?? ()
    #27 0x00217de6 in __libc_start_main () from /lib/libc.so.6
    #28 0x0804da8d in ?? ()
    (gdb)

    any help would be greatly appreciated :-D
    Thanks,
    Daniel-

     
    • Kevin DeKorte
      Kevin DeKorte
      2005-09-08

      Using

      Fedora Core 3 (up to date)
      firefox 1.0.6
      mplayerplug-in CVS (gtk2, compiled against mozilla-devel)
      mplayer CVS

      I am unable to duplicate this crash.

      Looking at the backtrace, nothing appears to reference mplayerplug-in.

      Kevin

       
      • Daniel Norman
        Daniel Norman
        2005-09-08

        hmm... wierd.

        I've tried the this with the latest CVS builds in the past, to no avail. I suppose I can try it again with todays version from CVS. not sure if it'll make much difference tho.

        it might not even be a mplayer plugin bug, but I can't help wonder if it might have something to do with thread cleanup? ...it only seems to break after the plugin is unloaded. mind you IANAPCP (I am not a professional C[++] programmer :-p )

        thanks
        Daniel-

         
        • Kevin DeKorte
          Kevin DeKorte
          2005-09-08

          Tested on Ubuntu breezy and could not make it crash either

           
    • klades
      klades
      2005-09-18

      Maybe you've installed also "plugger" or "mozplugger"?
      If so, try to unistall them and try again.

       
    • Daniel Norman
      Daniel Norman
      2005-09-21

      hmm... I just checked all of the machines that are demonstrating the problem, and none of the mhave plugger installed.

      I should mention that this is an ongoing, and constant problem affecting ALL 10 members of my customer service depertment (linux terminal server), so I know I'm not crazy. :-p

      anyone have fedora core 4 with a stock firefox to test this on?

      thanks,
      Daniel

       
    • cian
      cian
      2005-09-29

      Running FC4, kernel 2.6.12 (modified), Firefox 1.0.7, mplayer dev-CVS-050926-15:32-3.2.3, mplayerplug-in 3.11
      I cannot reproduce the crash. The only difference is that I have no printer, so am printing to a file.

      Cian