Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280979 - firefox-3.5.2 crashes on PDF tab close with acroread-9.1.3, nspluginwrapper-1.2.2 on amd64
Summary: firefox-3.5.2 crashes on PDF tab close with acroread-9.1.3, nspluginwrapper-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-10 08:54 UTC by Peter Waller
Modified: 2009-09-05 11:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Waller 2009-08-10 08:54:50 UTC
When I close any PDF tab, firefox segfaults.

Here is the backtrace:

#0  IA__g_logv (log_domain=0x7f28b475cf74 "Gdk", log_level=G_LOG_LEVEL_ERROR, format=0x7f28b477b067 "%s", 
    args1=0x7fffc3a9f9b0) at gmessages.c:512
#1  0x00007f28b5b6b713 in IA__g_log (log_domain=0x1 <Address 0x1 out of bounds>, log_level=0, 
    format=0x7f28bb67dcf8 "�\217��\030\220���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217��8\220���\220��8\220��8\220���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217�� \221��h\221�� \221�� \221���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217���\217�� \221��8\222��"...) at gmessages.c:526
#2  0x00007f28b4746742 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#3  0x00007f28b695642c in _XError () from /usr/lib/libX11.so.6
#4  0x00007f28b695de1f in ?? () from /usr/lib/libX11.so.6
#5  0x00007f28b695e1ca in _XReply () from /usr/lib/libX11.so.6
#6  0x00007f28b69534bd in XTranslateCoordinates () from /usr/lib/libX11.so.6
#7  0x00007f28b4750ecc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#8  0x00007f28b471c677 in gdk_window_get_origin () from /usr/lib/libgdk-x11-2.0.so.0
#9  0x00007f28b8f53055 in nsWindow::WidgetToScreen (this=<value optimized out>, aOldRect=@0x7fffc3a9fde0, 
    aNewRect=@0x7fffc3a9fdd0) at nsWindow.cpp:1995
#10 0x00007f28b8b4a312 in nsDOMUIEvent::GetScreenPoint (this=0x7f28970e1828) at nsDOMUIEvent.cpp:140
#11 0x00007f28b8b4a88f in nsDOMUIEvent::DuplicatePrivateData (this=0x7f28970e1828) at nsDOMUIEvent.cpp:395
#12 0x00007f28b8b530a9 in nsEventDispatcher::Dispatch (aTarget=<value optimized out>, 
    aPresContext=0x7fffc3a9fe70, aEvent=0x7fffc3aa0070, aDOMEvent=0x0, aEventStatus=0x7fffc3aa04ec, 
    aCallback=0x7fffc3a9ff60) at nsEventDispatcher.cpp:537
#13 0x00007f28b89c025e in PresShell::HandleEventInternal (this=0x7f28a4a77000, aEvent=0x7fffc3aa0070, 
    aView=0x0, aStatus=0x7fffc3aa04ec) at nsPresShell.cpp:6317
#14 0x00007f28b89c08b9 in PresShell::HandleEventWithTarget (this=0x7f28a4a77000, aEvent=0x7fffc3aa0070, 
    aFrame=<value optimized out>, aContent=<value optimized out>, aStatus=0x7fffc3aa04ec)
    at nsPresShell.cpp:6222
#15 0x00007f28b8b3bf06 in nsEventStateManager::CheckForAndDispatchClick (this=0x7f28a4a41e00, 
    aPresContext=<value optimized out>, aEvent=0x7fffc3aa0610, aStatus=0x7fffc3aa04ec)
    at nsEventStateManager.cpp:4073
#16 0x00007f28b8b42c32 in nsEventStateManager::PostHandleEvent (this=0x7f28a4a41e00, 
    aPresContext=0x7f28a4a9f400, aEvent=0x7fffc3aa0610, aTargetFrame=0x7f28981f4f28, aStatus=0x7fffc3aa04ec, 
    aView=0x7f28a4aca400) at nsEventStateManager.cpp:3036
#17 0x00007f28b89c02b7 in PresShell::HandleEventInternal (this=0x7f28a4a77000, aEvent=0x7fffc3aa0610, 
---Type <return> to continue, or q <return> to quit---
    aView=<value optimized out>, aStatus=0x7fffc3aa04ec) at nsPresShell.cpp:6338
#18 0x00007f28b89c09b5 in PresShell::HandlePositionedEvent (this=0x7f28a4a77000, aView=0x7f28a4aca400, 
    aTargetFrame=<value optimized out>, aEvent=0x7fffc3aa0610, aEventStatus=0x7fffc3aa04ec)
    at nsPresShell.cpp:6205
#19 0x00007f28b89c10f1 in PresShell::HandleEvent (this=0x7f28a4a77000, aView=0x7f28a4aca400, 
    aEvent=0x7fffc3aa0610, aEventStatus=0x7fffc3aa04ec) at nsPresShell.cpp:6065
#20 0x00007f28b8c0efdf in nsViewManager::HandleEvent (this=<value optimized out>, aView=0x7f28a4aca400, 
    aPoint=<value optimized out>, aEvent=0x7fffc3aa0610, aCaptured=-1147736000) at nsViewManager.cpp:1400
#21 0x00007f28b8c10e4a in nsViewManager::DispatchEvent (this=0x7f28a4a503a0, aEvent=0x7fffc3aa0610, 
    aStatus=0x7fffc3aa05dc) at nsViewManager.cpp:1359
#22 0x00007f28b8c0c0a0 in HandleEvent (aEvent=0x7fffc3aa0610) at nsView.cpp:168
#23 0x00007f28b8f4a1d5 in nsWindow::DispatchEvent (this=0x7f28a4e19500, aEvent=0x7fffc3aa0610, 
    aStatus=@0x7fffc3aa068c) at nsWindow.cpp:577
#24 0x00007f28b8f4a9c6 in nsWindow::OnButtonReleaseEvent (this=0x7f28a4e19500, aWidget=<value optimized out>, 
    aEvent=0x7f2896f2eac0) at nsWindow.cpp:2981
#25 0x00007f28b8f4f8c7 in button_release_event_cb (widget=0x7f28a53dfe80, event=0x7f2896f2eac0)
    at nsWindow.cpp:5555
#26 0x00007f28b4fc16b3 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00007f28b5e1a5bd in IA__g_closure_invoke (closure=0x7f28a53f4df0, return_value=0x7fffc3aa08b0, 
    n_param_values=2, param_values=0x7f2896f2cfa0, invocation_hint=0x7fffc3aa0870) at gclosure.c:767
#28 0x00007f28b5e3116e in signal_emit_unlocked_R (node=0x7f28ba2db790, detail=0, instance=0x7f28a53dfe80, 
    emission_return=0x7fffc3aa09f0, instance_and_params=0x7f2896f2cfa0) at gsignal.c:3247
#29 0x00007f28b5e3264b in IA__g_signal_emit_valist (instance=0x7f28a53dfe80, signal_id=<value optimized out>, 
    detail=0, var_args=0x7fffc3aa0a50) at gsignal.c:2990
#30 0x00007f28b5e32cb3 in IA__g_signal_emit (instance=0x1, signal_id=0, detail=3144146168) at gsignal.c:3037
#31 0x00007f28b50e5a5e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00007f28b4fb856d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007f28b4fb984b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#34 0x00007f28b473e1ac in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#35 0x00007f28b5b6185a in IA__g_main_context_dispatch (context=0x7f28ba23fc80) at gmain.c:1960
#36 0x00007f28b5b651d8 in g_main_context_iterate (context=0x7f28ba23fc80, block=0, dispatch=1, 
    self=<value optimized out>) at gmain.c:2591
#37 0x00007f28b5b6539c in IA__g_main_context_iteration (context=0x7f28ba23fc80, may_block=0) at gmain.c:2654
---Type <return> to continue, or q <return> to quit---
#38 0x00007f28b8f684f9 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x1, mayWait=0)
    at nsBaseAppShell.cpp:151
#39 0x00007f28b8f686aa in nsBaseAppShell::OnProcessNextEvent (this=0x7f28ade8d280, thr=0x7f28ba166470, 
    mayWait=1, recursionDepth=<value optimized out>) at nsBaseAppShell.cpp:278
#40 0x00007f28b900de0d in nsThread::ProcessNextEvent (this=0x7f28ba166470, mayWait=1, result=0x7fffc3aa0e0c)
    at nsThread.cpp:497
#41 0x00007f28b8fe3f82 in NS_ProcessNextEvent_P (thread=0x1, mayWait=1) at nsThreadUtils.cpp:227
#42 0x00007f28b8f68765 in nsBaseAppShell::Run (this=0x7f28ade8d280) at nsBaseAppShell.cpp:170
#43 0x00007f28b8e435fd in nsAppStartup::Run (this=0x7f28adee5740) at nsAppStartup.cpp:193
#44 0x00007f28b883331b in XRE_main (argc=<value optimized out>, argv=<value optimized out>, 
    aAppData=<value optimized out>) at nsAppRunner.cpp:3321
#45 0x00000000004026b5 in main (argc=1, argv=0x7fffc3aa5758) at nsXULStub.cpp:482
Comment 1 Peter Waller 2009-08-10 08:57:06 UTC
emerge --info, on the offchance it is useful.

Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Sun, 09 Aug 2009 16:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pythonhead /usr/portage/local/layman/gnome /usr/portage/local/layman/devnull /usr/portage/local/layman/science /usr/portage/local/layman/jokey /usr/portage/local/mine /usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 applet automount bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr eds emboss encode esd evo fam ffmpeg firefox flac fortran fuse gdbm gif gnome gnome-keyring gnomecd gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify lirc mad mikmod mmx mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-af9015" ELIBC="glibc" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="avermedia" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Wormo (RETIRED) gentoo-dev 2009-08-23 07:19:31 UTC
It's not easy to tell whose fault this is; not sure yet which team should get this bug... I suspect acroread is doing something bad and nspluginplayer is letting it get away with it, but that's just a guess

Can you try running nspluginwrapper and acroread standalone, using nspluginplayer
http://gwenole.beauchesne.info/en/projects/nspluginwrapper/help

If there is still any crashing without firefox in the picture, at least we've learned something.
Comment 3 Peter Waller 2009-08-26 17:36:35 UTC
(In reply to comment #2)
> It's not easy to tell whose fault this is; not sure yet which team should get
> this bug... I suspect acroread is doing something bad and nspluginplayer is
> letting it get away with it, but that's just a guess
> 
> Can you try running nspluginwrapper and acroread standalone, using
> nspluginplayer
> http://gwenole.beauchesne.info/en/projects/nspluginwrapper/help
> 
> If there is still any crashing without firefox in the picture, at least we've
> learned something.
> 

Good idea.

Unfortunately, I followed the instructions on that page to load a PDF file, and I couldn't get much further.

nspluginplayer -v src=Documents/test.pdf 
*** NSPlugin Player  *** WARNING: skip attribute '-v'

** ERROR **: could not find any plugin to use
aborting...

Comment 4 Peter Waller 2009-08-31 15:58:03 UTC
(In reply to comment #3)
> Good idea.
> 
> Unfortunately, ...

I'm not sure how to proceed from here, I tried a few things such as setting the mimetype on the commandline but that didn't help either. Any suggestions?
Comment 5 Peter Waller 2009-09-01 12:26:20 UTC
If it helps, I just triggered the same crash with evince instead of acroread, so I guess this leaves firefox/nspluginwrapper.
Comment 6 Wormo (RETIRED) gentoo-dev 2009-09-04 06:38:54 UTC
Ok, now that you mention evince crashes as well, I thought of something else to try: use something other than nspluginwrapper (such as mozplugger http://mozplugger.mozdev.org) to embed evince, and see if you can still get it to crash.
Comment 7 Peter Waller 2009-09-05 10:08:13 UTC
(In reply to comment #6)
> Ok, now that you mention evince crashes as well, I thought of something else to
> try: use something other than nspluginwrapper (such as mozplugger
> http://mozplugger.mozdev.org) to embed evince, and see if you can still get it
> to crash.
> 

It turns out I had both mozplugger and nspluginwrapper installed. So I un-emerged nspluginwrapper and tried just mozplugger, and it crashed (in fact, I think mozplugger was infact originally the thing triggering this bug, I had forgotten I had mozplugger installed).

Repeating this with only nspluginwrapper installed, the "theme" of the PDF toolbar in acroread changed from "redmond" to something much more shiny. I've only ever seen it with the redmond theme before so I guess I wasn't actually using nspluginwrapper previously.

Most importantly, it crashed under both scenarios. Interestingly, it does not crash if I close the tab and it is not currently visible. (i.e. using "close other tabs" from a different tab).
Comment 8 Peter Waller 2009-09-05 11:05:06 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Ok, now that you mention evince crashes as well, I thought of something else to
> > try: use something other than nspluginwrapper (such as mozplugger
> > http://mozplugger.mozdev.org) to embed evince, and see if you can still get it
> > to crash.
> > 
> 
> It turns out I had both mozplugger and nspluginwrapper installed. So I
> un-emerged nspluginwrapper and tried just mozplugger, and it crashed (in fact,
> I think mozplugger was infact originally the thing triggering this bug, I had
> forgotten I had mozplugger installed).
> 
> Repeating this with only nspluginwrapper installed, the "theme" of the PDF
> toolbar in acroread changed from "redmond" to something much more shiny. I've
> only ever seen it with the redmond theme before so I guess I wasn't actually
> using nspluginwrapper previously.
> 
> Most importantly, it crashed under both scenarios. Interestingly, it does not
> crash if I close the tab and it is not currently visible. (i.e. using "close
> other tabs" from a different tab).
> 

I have just upgraded to:
* www-client/mozilla-firefox-3.5.2-r2
* net-libs/xulrunner-1.9.1.2-r2

I'm running:
* www-plugins/nspluginwrapper-1.2.2

..and I uninstalled mozplugger

This problem went away.