firefox & flash9 patches

Vladimir Grebenschikov vova at fbsd.ru
Tue Sep 30 13:58:39 UTC 2008


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 at 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 at 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 at fbsd.ru


More information about the freebsd-emulation mailing list