Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Oct 2008 13:55:47 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Chagin Dmitry <dchagin@freebsd.org>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: firefox & flash9 patches
Message-ID:  <1222854947.21166.23.camel@localhost>
In-Reply-To: <1222783113.1675.67.camel@localhost>
References:  <20080929200237.GA68300@dchagin.dialup.corbina.ru> <1222762139.1675.16.camel@localhost> <20080930133719.GA4089@dchagin.dialup.corbina.ru> <1222783113.1675.67.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2008-09-30 at 17:58 +0400, Vladimir Grebenschikov wrote:

Well, the crash below was due to totem plugins:

mv /usr/X11R6/lib/browser_plugins/libtotem* ~/tmp/ 

fixes nspluginwrapper crash, now:

$ nspluginwrapper -l
/usr/X11R6/lib/browser_plugins/npwrapper.libflashplayer.so
  Original
plugin: /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
  Wrapper version string: 1.0.0
/home/vova/.mozilla/plugins/npwrapper.nppdf.so
  Original plugin: /home/vova/.mozilla/plugins/nppdf.so
  Wrapper version string: 1.0.0
$

And now flash player works with www/firefox, Thank you Dmitry !

but still does not works with www/firefox3:

after
ln /usr/X11R6/lib/browser_plugins/npwrapper.libflashplayer.so  /usr/X11R6/lib/firefox3/plugins
about:plugins shows it, but when I try to show page with flash contents
browser just fails with following diagnostic:
----
(npviewer.bin:28665): Gdk-WARNING **: GdkWindow 0x4e00031 unexpectedly
destroyed

(npviewer.bin:28665): Gdk-WARNING **: GdkWindow 0x4e00030 unexpectedly
destroyed

(npviewer.bin:28665): Gdk-WARNING **: GdkWindow 0x4e0002f unexpectedly
destroyed

(npviewer.bin:28665): Gdk-WARNING **: GdkWindow 0x4e00003 unexpectedly
destroyed
The program 'npviewer.bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
  (Details: serial 240 error_code 191 request_code 156 minor_code 7)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error()
function.)
*** NSPlugin Wrapper *** ERROR: NPP_Destroy() invoke: Message timeout
^T load: 0.43  cmd: npviewer.bin 28672 [linuxfutex] 0.00u 0.00s 0%
151456k
*** NSPlugin Wrapper *** ERROR: NPClass::Invalidate() invoke: Message
timeout
*** NSPlugin Wrapper *** ERROR: NP_Shutdown() invoke: Message timeout
----
ls -l *.core
-rw-------   1 vova  vova  156430336 Oct  1 13:50 npviewer.bin.core.


> On Tue, 2008-09-30 at 17:37 +0400, Chagin Dmitry wrote:
> > On Tue, Sep 30, 2008 at 12:08:59PM +0400, Vladimir Grebenschikov wrote:
> > > On Tue, 2008-09-30 at 00:02 +0400, Chagin Dmitry wrote:
> > > > Hi,
> > > > 
> > > > please, test following patches (just -current).
> > > > with them firefox && flash9 forks for me,
> > > > I tested only on ia32@amd64 with 2.6.16 enabled,
> > > > firefox 2.0.0.16 and flash9 plugin.
> > > 
> > > I've tried to check your patch - kernel builds ok, but nspluginwrapper
> > > drops core
> > > $  nspluginwrapper -l
> > > Segmentation fault (core dumped)
> > > $
> > > 
> > > and it kills gdb if I tried to run it under gdb
> > > $ gdb nspluginwrapper 
> > > GNU gdb 6.1.1 [FreeBSD]
> > > ...
> > > (gdb) r -l
> > > Starting program: /usr/local/bin/nspluginwrapper -l
> > > (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Assertion failed: ((mapbits & CHUNK_MAP_ALLOCATED) != 0), function arena_salloc, file /usr/src/lib/libc/stdlib/malloc.c, line 3555.
> > > Abort (core dumped)
> > > $
> > > 
> > > I am puzzled, how to use it ?
> > > Any help will be very appreciated.
> > > 
> > 
> > Hi,
> > Can you be more specific? Do you have any DEBUG options in kernel?
> > especially INVARIANTS - in this case it's necessary to build kernel.
> 
> I have neither DEBUG nor INVARIANTS in kernel configuration. 
> Should I rebuild kernel with these options to test patch ?
> 
> > also, please, show uname -v and installed plugins.
> 
> FreeBSD 8.0-CURRENT #3: Tue Sep 30 10:25:13 MSD 2008     root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK 
> I have yesterday's 8-CURRENT.
> 
> As for installed plug-ins, I guess I have only acrobat linux plugin, and
> it works in ff3.
> $ nspluginwrapper -v -a -i
> Auto-install plugins from /usr/X11R6/lib/browser_plugins
> Looking for plugins in /usr/X11R6/lib/browser_plugins
> Auto-install plugins from /usr/X11R6/lib/firefox/plugins
> Looking for plugins in /usr/X11R6/lib/firefox/plugins
> Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
> Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
> Install plugin /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
>  ... already installed system-wide, skipping
> Auto-install plugins from /home/vova/.mozilla/plugins
> Looking for plugins in /home/vova/.mozilla/plugins
> Install plugin /home/vova/.mozilla/plugins/nppdf.so
>   into /home/vova/.mozilla/plugins/npwrapper.nppdf.so
> $ nspluginwrapper -l
> Segmentation fault (core dumped)
> $ 
> 
> But! core file decoded fine:
> 
> $ gdb /usr/local/bin/nspluginwrapper npconfig.core
> GNU gdb 6.1.1 [FreeBSD]
> ... [cut lots of libraries]
> #0  0x48359270 in gnome_vfs_xfer_delete_list ()
> from /usr/local/lib/libgnomevfs-2.so.0
> [New LWP 100181]
> (gdb) bt
> #0  0x48359270 in gnome_vfs_xfer_delete_list ()
> from /usr/local/lib/libgnomevfs-2.so.0
> #1  0x486f03f2 in std::bad_alloc::~bad_alloc () from /usr/lib/libstdc
> ++.so.6
> #2  0x486f21d5 in __gnu_cxx::__atomic_add () from /usr/lib/libstdc
> ++.so.6
> #3  0x48667969 in ?? () from /usr/lib/libstdc++.so.6
> #4  0x48088140 in ?? ()
> #5  0x480799b8 in ?? () from /libexec/ld-elf.so.1
> #6  0xbfbfdd38 in ?? ()
> #7  0x4805243c in dlsym () from /libexec/ld-elf.so.1
> #8  0x48052dce in dlopen () from /libexec/ld-elf.so.1
> #9  0x080490d4 in is_wrapper_plugin ()
> #10 0x08049220 in is_wrapper_plugin_0 ()
> #11 0x08048f34 in process_plugin_dir ()
> #12 0x08048fd1 in process_list ()
> #13 0x0804bb52 in main ()
> (gdb) 
> 
> building port with DEBUG=yes and running binary from port directory (not
> stripped) gives no  more details.
> 
> Sorry for not enough details in first attempt.
> 
> > thnx!
-- 
Vladimir B. Grebenschikov
vova@fbsd.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1222854947.21166.23.camel>