[Desktop-packages] [Bug 1748119] Re: simple-scan (11) crashes in sane_reload_devices → sane_avision_get_devices → sane_dll_get_devices → sane_get_devices → scanner_do_redetect

2019-06-16 Thread Bernhard Übelacker
Hit the same crash with Debian Buster/testing and created upstream issue:
https://gitlab.gnome.org/GNOME/simple-scan/issues/109

** Bug watch added: gitlab.gnome.org/GNOME/simple-scan/issues #109
   https://gitlab.gnome.org/GNOME/simple-scan/issues/109

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to simple-scan in Ubuntu.
https://bugs.launchpad.net/bugs/1748119

Title:
  simple-scan (11) crashes in sane_reload_devices →
  sane_avision_get_devices → sane_dll_get_devices → sane_get_devices →
  scanner_do_redetect

Status in simple-scan package in Ubuntu:
  Confirmed

Bug description:
  Test Case:
  1. Start simple-scan twice from the command line.

  Actual result
  This crash
  
https://errors.ubuntu.com/bucket/?id=/usr/bin/simple-scan%3A11%3Asane_reload_devices%3Asane_avision_get_devices%3Asane_dll_get_devices%3Asane_get_devices%3Ascanner_do_redetect

  Expected result
  Second time does nothing or brings the simple scan window to the front.

  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
simple-scan.  This problem was most recently seen with package version 
3.26.3-0ubuntu1, the problem page at 
https://errors.ubuntu.com/problem/f5c966daf1861f9d7911755fc6718715056ead50 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/1748119/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1364522] Re: Firefox crashes sometimes when using webgl with nouveau driver

2016-09-14 Thread Bernhard Übelacker
I was probably wrong last year.
- In [1] there are still many crash reports to Mozilla.
- These point very often too to the ~GLContextGLX destructor, similar to 
comment #0.
- Kernels are often Ubuntu kernels.
- Probably just on 14.04 LTS.
- Gallium 0.4 on NV46 or NV4B.

[1] https://crash-
stats.mozilla.com/search/?app_notes=~Mesa%2010.1.3=~nouveau_dri.so&_sort=-date&_facets=signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform
#facet-signature

So probably the patch mentioned in comment #2 could still be worth to be
applied.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1364522

Title:
  Firefox crashes sometimes when using webgl with nouveau driver

Status in firefox package in Ubuntu:
  New
Status in mesa package in Ubuntu:
  New

Bug description:
  Visiting with Firefox e.g.
  https://developer.mozilla.org/de/demos/detail/orange-slice/launch
  makes firefox crash.

  Program received signal SIGSEGV, Segmentation fault.
  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  226if (screen->fence.current->state < NOUVEAU_FENCE_STATE_EMITTING)
  (gdb) bt
  #0  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  #1  0x9b5b7fc0 in nv30_context_kick_notify (push=0x9b8f62b0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:48
  #2  0xa0a0ea3e in pushbuf_submit (push=push@entry=0x9b8f62b0, chan=, chan=) at ../../nouveau/pushbuf.c:325
  #3  0xa0a0ed7a in pushbuf_flush (push=push@entry=0x9b8f62b0) at 
../../nouveau/pushbuf.c:402
  #4  0xa0a0faca in nouveau_pushbuf_kick (push=0x9b8f62b0, chan=0xa40c5420) at 
../../nouveau/pushbuf.c:774
  #5  0x9b5b811f in PUSH_KICK (push=) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:56
  #6  nv30_context_flush (pipe=0x9b986000, fence=0x0, flags=0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:83
  #7  0x9b4b4e1c in st_flush (st=st@entry=0x989e8000, fence=fence@entry=0x0, 
flags=flags@entry=0) at ../../../../src/mesa/state_tracker/st_cb_flush.c:87
  #8  0x9b4b4e82 in st_glFlush (ctx=0x98844000) at 
../../../../src/mesa/state_tracker/st_cb_flush.c:121
  #9  0x9b3b3065 in _mesa_flush (ctx=ctx@entry=0x98844000) at 
../../../../src/mesa/main/context.c:1691
  #10 0x9b3b3130 in _mesa_make_current (newCtx=newCtx@entry=0x0, 
drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at 
../../../../src/mesa/main/context.c:1503
  #11 0x9b4dee74 in st_api_make_current (stapi=0x9b779700 , 
stctxi=0x0, stdrawi=0x0, streadi=0x0) at 
../../../../src/mesa/state_tracker/st_manager.c:746
  #12 0x9b59d9ee in dri_unbind_context (cPriv=0x994e3120) at 
../../../../../../../src/gallium/state_trackers/dri/drm/dri_context.c:215
  #13 0x9b38db93 in driUnbindContext (pcp=0x994e3120) at 
../../../../../../../src/mesa/drivers/dri/common/dri_util.c:578
  #14 0x9b7df149 in dri2_unbind_context (context=0x9b9cbc20, new=0x0) at 
../../../../src/glx/dri2_glx.c:184
  #15 0x9b7b7985 in MakeContextCurrent (dpy=dpy@entry=0xb7191000, 
draw=draw@entry=0, read=read@entry=0, gc_user=gc_user@entry=0x0) at 
../../../../src/glx/glxcurrent.c:245
  #16 0x9b7b7a73 in glXMakeCurrent (dpy=0xb7191000, draw=0, gc=0x0) at 
../../../../src/glx/glxcurrent.c:293
  #17 0xb3d3916d in mozilla::gl::GLXLibrary::xMakeCurrent (this=0xb6e58470 
, display=0xb7191000, drawable=drawable@entry=0, 
context=context@entry=0x0) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:525
  #18 0xb3d39d92 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:836
  #19 0xb3d39e12 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:845
  #20 0xb3d38ea0 in 
mozilla::detail::GenericRefCounted<(mozilla::detail::RefCountAtomicity)0>::Release
 (this=0x988dc800) at ../../dist/include/mozilla/GenericRefCounted.h:95
  #21 0xb3ddc635 in nsRefPtr::assign_assuming_AddRef 
(this=this@entry=0x9b8eb84c, newPtr=newPtr@entry=0x0) at 
../../dist/include/nsAutoPtr.h:882
  #22 0xb4561170 in assign_with_AddRef (rawPtr=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:866
  #23 operator= (rhs=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:964
  #24 mozilla::WebGLContext::DestroyResourcesAndContext 
(this=this@entry=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:284
  #25 0xb45611bb in mozilla::WebGLContext::~WebGLContext (this=0x9b8eb800, 
__in_chrg=) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:203
  #26 0xb455e330 in mozilla::WebGL1Context::~WebGL1Context (this=0x9b8eb800, 
__in_chrg=) at 

[Desktop-packages] [Bug 1579133] Re: Color scheme is broken with FF46 on Precise

2016-07-30 Thread Bernhard Übelacker
I think I see the same problem.
(12.04 i386, Firefox 46 and 47)

I could not reproduce it when installing a VM with LXDE.
When installing with KDE the bug is visible.


A mozregression test ends up here:
$ mozregression --good 2015-08-10 --bad 2016-04-18
...
87:39.20 INFO: Last good revision: 8a5d34242ce6adfc1c32495423ce3f1be14f082b
87:39.20 INFO: First bad revision: 95e4a598daf730ca3191215def8a50f87ada0691
87:39.20 INFO: Pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=8a5d34242ce6adfc1c32495423ce3f1be14f082b=95e4a598daf730ca3191215def8a50f87ada0691


A workaround I tested:
Install: gtk3-engines-unico:i386 (1.0.2-0ubuntu1)
Purge: gtk3-engines-oxygen:i386 (1.0.2-0ubuntu3)

After that the selections were ok.


** Attachment added: "mozregression.txt"
   
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1579133/+attachment/4710262/+files/mozregression.txt

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1579133

Title:
  Color scheme is broken with FF46 on Precise

Status in firefox package in Ubuntu:
  Confirmed

Bug description:
  1. When selecting a text, either in the location bar, search bar or main 
browser window, any text turns white on white background -> No text can be seen.
  2. When hovering over a link, which has (I guess) a title set, the hovering 
object is a solid dark grey -> No text can be seen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1579133/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1364522] Re: Firefox crashes sometimes when using webgl with nouveau driver

2015-07-11 Thread Bernhard Übelacker
For some reason the submission of new crashes at crash-stats.mozilla.com
was stopping at 2015-06-16.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1364522

Title:
  Firefox crashes sometimes when using webgl with nouveau driver

Status in firefox package in Ubuntu:
  New
Status in mesa package in Ubuntu:
  New

Bug description:
  Visiting with Firefox e.g.
  https://developer.mozilla.org/de/demos/detail/orange-slice/launch
  makes firefox crash.

  Program received signal SIGSEGV, Segmentation fault.
  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  226if (screen-fence.current-state  NOUVEAU_FENCE_STATE_EMITTING)
  (gdb) bt
  #0  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  #1  0x9b5b7fc0 in nv30_context_kick_notify (push=0x9b8f62b0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:48
  #2  0xa0a0ea3e in pushbuf_submit (push=push@entry=0x9b8f62b0, chan=optimized 
out, chan=optimized out) at ../../nouveau/pushbuf.c:325
  #3  0xa0a0ed7a in pushbuf_flush (push=push@entry=0x9b8f62b0) at 
../../nouveau/pushbuf.c:402
  #4  0xa0a0faca in nouveau_pushbuf_kick (push=0x9b8f62b0, chan=0xa40c5420) at 
../../nouveau/pushbuf.c:774
  #5  0x9b5b811f in PUSH_KICK (push=optimized out) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:56
  #6  nv30_context_flush (pipe=0x9b986000, fence=0x0, flags=0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:83
  #7  0x9b4b4e1c in st_flush (st=st@entry=0x989e8000, fence=fence@entry=0x0, 
flags=flags@entry=0) at ../../../../src/mesa/state_tracker/st_cb_flush.c:87
  #8  0x9b4b4e82 in st_glFlush (ctx=0x98844000) at 
../../../../src/mesa/state_tracker/st_cb_flush.c:121
  #9  0x9b3b3065 in _mesa_flush (ctx=ctx@entry=0x98844000) at 
../../../../src/mesa/main/context.c:1691
  #10 0x9b3b3130 in _mesa_make_current (newCtx=newCtx@entry=0x0, 
drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at 
../../../../src/mesa/main/context.c:1503
  #11 0x9b4dee74 in st_api_make_current (stapi=0x9b779700 st_gl_api, 
stctxi=0x0, stdrawi=0x0, streadi=0x0) at 
../../../../src/mesa/state_tracker/st_manager.c:746
  #12 0x9b59d9ee in dri_unbind_context (cPriv=0x994e3120) at 
../../../../../../../src/gallium/state_trackers/dri/drm/dri_context.c:215
  #13 0x9b38db93 in driUnbindContext (pcp=0x994e3120) at 
../../../../../../../src/mesa/drivers/dri/common/dri_util.c:578
  #14 0x9b7df149 in dri2_unbind_context (context=0x9b9cbc20, new=0x0) at 
../../../../src/glx/dri2_glx.c:184
  #15 0x9b7b7985 in MakeContextCurrent (dpy=dpy@entry=0xb7191000, 
draw=draw@entry=0, read=read@entry=0, gc_user=gc_user@entry=0x0) at 
../../../../src/glx/glxcurrent.c:245
  #16 0x9b7b7a73 in glXMakeCurrent (dpy=0xb7191000, draw=0, gc=0x0) at 
../../../../src/glx/glxcurrent.c:293
  #17 0xb3d3916d in mozilla::gl::GLXLibrary::xMakeCurrent (this=0xb6e58470 
mozilla::gl::sGLXLibrary, display=0xb7191000, drawable=drawable@entry=0, 
context=context@entry=0x0) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:525
  #18 0xb3d39d92 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:836
  #19 0xb3d39e12 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:845
  #20 0xb3d38ea0 in 
mozilla::detail::GenericRefCounted(mozilla::detail::RefCountAtomicity)0::Release
 (this=0x988dc800) at ../../dist/include/mozilla/GenericRefCounted.h:95
  #21 0xb3ddc635 in nsRefPtrmozilla::gl::GLContext::assign_assuming_AddRef 
(this=this@entry=0x9b8eb84c, newPtr=newPtr@entry=0x0) at 
../../dist/include/nsAutoPtr.h:882
  #22 0xb4561170 in assign_with_AddRef (rawPtr=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:866
  #23 operator= (rhs=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:964
  #24 mozilla::WebGLContext::DestroyResourcesAndContext 
(this=this@entry=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:284
  #25 0xb45611bb in mozilla::WebGLContext::~WebGLContext (this=0x9b8eb800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:203
  #26 0xb455e330 in mozilla::WebGL1Context::~WebGL1Context (this=0x9b8eb800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGL1Context.cpp:25
  #27 0xb455ebe9 in mozilla::WebGLContext::DeleteCycleCollectable 
(this=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:1397
  #28 0xb455ebbb in 
mozilla::WebGLContext::cycleCollection::DeleteCycleCollectable (this=0xb6e2b500 

[Desktop-packages] [Bug 1364522] Re: Firefox crashes sometimes when using webgl with nouveau driver

2014-10-04 Thread Bernhard Übelacker
** Also affects: firefox (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1364522

Title:
  Firefox crashes sometimes when using webgl with nouveau driver

Status in “firefox” package in Ubuntu:
  New
Status in “mesa” package in Ubuntu:
  New

Bug description:
  Visiting with Firefox e.g.
  https://developer.mozilla.org/de/demos/detail/orange-slice/launch
  makes firefox crash.

  Program received signal SIGSEGV, Segmentation fault.
  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  226if (screen-fence.current-state  NOUVEAU_FENCE_STATE_EMITTING)
  (gdb) bt
  #0  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  #1  0x9b5b7fc0 in nv30_context_kick_notify (push=0x9b8f62b0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:48
  #2  0xa0a0ea3e in pushbuf_submit (push=push@entry=0x9b8f62b0, chan=optimized 
out, chan=optimized out) at ../../nouveau/pushbuf.c:325
  #3  0xa0a0ed7a in pushbuf_flush (push=push@entry=0x9b8f62b0) at 
../../nouveau/pushbuf.c:402
  #4  0xa0a0faca in nouveau_pushbuf_kick (push=0x9b8f62b0, chan=0xa40c5420) at 
../../nouveau/pushbuf.c:774
  #5  0x9b5b811f in PUSH_KICK (push=optimized out) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:56
  #6  nv30_context_flush (pipe=0x9b986000, fence=0x0, flags=0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:83
  #7  0x9b4b4e1c in st_flush (st=st@entry=0x989e8000, fence=fence@entry=0x0, 
flags=flags@entry=0) at ../../../../src/mesa/state_tracker/st_cb_flush.c:87
  #8  0x9b4b4e82 in st_glFlush (ctx=0x98844000) at 
../../../../src/mesa/state_tracker/st_cb_flush.c:121
  #9  0x9b3b3065 in _mesa_flush (ctx=ctx@entry=0x98844000) at 
../../../../src/mesa/main/context.c:1691
  #10 0x9b3b3130 in _mesa_make_current (newCtx=newCtx@entry=0x0, 
drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at 
../../../../src/mesa/main/context.c:1503
  #11 0x9b4dee74 in st_api_make_current (stapi=0x9b779700 st_gl_api, 
stctxi=0x0, stdrawi=0x0, streadi=0x0) at 
../../../../src/mesa/state_tracker/st_manager.c:746
  #12 0x9b59d9ee in dri_unbind_context (cPriv=0x994e3120) at 
../../../../../../../src/gallium/state_trackers/dri/drm/dri_context.c:215
  #13 0x9b38db93 in driUnbindContext (pcp=0x994e3120) at 
../../../../../../../src/mesa/drivers/dri/common/dri_util.c:578
  #14 0x9b7df149 in dri2_unbind_context (context=0x9b9cbc20, new=0x0) at 
../../../../src/glx/dri2_glx.c:184
  #15 0x9b7b7985 in MakeContextCurrent (dpy=dpy@entry=0xb7191000, 
draw=draw@entry=0, read=read@entry=0, gc_user=gc_user@entry=0x0) at 
../../../../src/glx/glxcurrent.c:245
  #16 0x9b7b7a73 in glXMakeCurrent (dpy=0xb7191000, draw=0, gc=0x0) at 
../../../../src/glx/glxcurrent.c:293
  #17 0xb3d3916d in mozilla::gl::GLXLibrary::xMakeCurrent (this=0xb6e58470 
mozilla::gl::sGLXLibrary, display=0xb7191000, drawable=drawable@entry=0, 
context=context@entry=0x0) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:525
  #18 0xb3d39d92 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:836
  #19 0xb3d39e12 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:845
  #20 0xb3d38ea0 in 
mozilla::detail::GenericRefCounted(mozilla::detail::RefCountAtomicity)0::Release
 (this=0x988dc800) at ../../dist/include/mozilla/GenericRefCounted.h:95
  #21 0xb3ddc635 in nsRefPtrmozilla::gl::GLContext::assign_assuming_AddRef 
(this=this@entry=0x9b8eb84c, newPtr=newPtr@entry=0x0) at 
../../dist/include/nsAutoPtr.h:882
  #22 0xb4561170 in assign_with_AddRef (rawPtr=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:866
  #23 operator= (rhs=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:964
  #24 mozilla::WebGLContext::DestroyResourcesAndContext 
(this=this@entry=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:284
  #25 0xb45611bb in mozilla::WebGLContext::~WebGLContext (this=0x9b8eb800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:203
  #26 0xb455e330 in mozilla::WebGL1Context::~WebGL1Context (this=0x9b8eb800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGL1Context.cpp:25
  #27 0xb455ebe9 in mozilla::WebGLContext::DeleteCycleCollectable 
(this=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:1397
  #28 0xb455ebbb in 
mozilla::WebGLContext::cycleCollection::DeleteCycleCollectable (this=0xb6e2b500 

[Desktop-packages] [Bug 1364522] [NEW] Firefox crashes sometimes when using webgl with nouveau driver

2014-09-02 Thread Bernhard Übelacker
Public bug reported:

Visiting with Firefox e.g. https://developer.mozilla.org/de/demos/detail
/orange-slice/launch makes firefox crash.

Program received signal SIGSEGV, Segmentation fault.
nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
226if (screen-fence.current-state  NOUVEAU_FENCE_STATE_EMITTING)
(gdb) bt
#0  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
#1  0x9b5b7fc0 in nv30_context_kick_notify (push=0x9b8f62b0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:48
#2  0xa0a0ea3e in pushbuf_submit (push=push@entry=0x9b8f62b0, chan=optimized 
out, chan=optimized out) at ../../nouveau/pushbuf.c:325
#3  0xa0a0ed7a in pushbuf_flush (push=push@entry=0x9b8f62b0) at 
../../nouveau/pushbuf.c:402
#4  0xa0a0faca in nouveau_pushbuf_kick (push=0x9b8f62b0, chan=0xa40c5420) at 
../../nouveau/pushbuf.c:774
#5  0x9b5b811f in PUSH_KICK (push=optimized out) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:56
#6  nv30_context_flush (pipe=0x9b986000, fence=0x0, flags=0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:83
#7  0x9b4b4e1c in st_flush (st=st@entry=0x989e8000, fence=fence@entry=0x0, 
flags=flags@entry=0) at ../../../../src/mesa/state_tracker/st_cb_flush.c:87
#8  0x9b4b4e82 in st_glFlush (ctx=0x98844000) at 
../../../../src/mesa/state_tracker/st_cb_flush.c:121
#9  0x9b3b3065 in _mesa_flush (ctx=ctx@entry=0x98844000) at 
../../../../src/mesa/main/context.c:1691
#10 0x9b3b3130 in _mesa_make_current (newCtx=newCtx@entry=0x0, 
drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at 
../../../../src/mesa/main/context.c:1503
#11 0x9b4dee74 in st_api_make_current (stapi=0x9b779700 st_gl_api, 
stctxi=0x0, stdrawi=0x0, streadi=0x0) at 
../../../../src/mesa/state_tracker/st_manager.c:746
#12 0x9b59d9ee in dri_unbind_context (cPriv=0x994e3120) at 
../../../../../../../src/gallium/state_trackers/dri/drm/dri_context.c:215
#13 0x9b38db93 in driUnbindContext (pcp=0x994e3120) at 
../../../../../../../src/mesa/drivers/dri/common/dri_util.c:578
#14 0x9b7df149 in dri2_unbind_context (context=0x9b9cbc20, new=0x0) at 
../../../../src/glx/dri2_glx.c:184
#15 0x9b7b7985 in MakeContextCurrent (dpy=dpy@entry=0xb7191000, 
draw=draw@entry=0, read=read@entry=0, gc_user=gc_user@entry=0x0) at 
../../../../src/glx/glxcurrent.c:245
#16 0x9b7b7a73 in glXMakeCurrent (dpy=0xb7191000, draw=0, gc=0x0) at 
../../../../src/glx/glxcurrent.c:293
#17 0xb3d3916d in mozilla::gl::GLXLibrary::xMakeCurrent (this=0xb6e58470 
mozilla::gl::sGLXLibrary, display=0xb7191000, drawable=drawable@entry=0, 
context=context@entry=0x0) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:525
#18 0xb3d39d92 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:836
#19 0xb3d39e12 in mozilla::gl::GLContextGLX::~GLContextGLX (this=0x988dc800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/gfx/gl/GLContextProviderGLX.cpp:845
#20 0xb3d38ea0 in 
mozilla::detail::GenericRefCounted(mozilla::detail::RefCountAtomicity)0::Release
 (this=0x988dc800) at ../../dist/include/mozilla/GenericRefCounted.h:95
#21 0xb3ddc635 in nsRefPtrmozilla::gl::GLContext::assign_assuming_AddRef 
(this=this@entry=0x9b8eb84c, newPtr=newPtr@entry=0x0) at 
../../dist/include/nsAutoPtr.h:882
#22 0xb4561170 in assign_with_AddRef (rawPtr=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:866
#23 operator= (rhs=0x0, this=0x9b8eb84c) at 
../../../dist/include/nsAutoPtr.h:964
#24 mozilla::WebGLContext::DestroyResourcesAndContext 
(this=this@entry=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:284
#25 0xb45611bb in mozilla::WebGLContext::~WebGLContext (this=0x9b8eb800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:203
#26 0xb455e330 in mozilla::WebGL1Context::~WebGL1Context (this=0x9b8eb800, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGL1Context.cpp:25
#27 0xb455ebe9 in mozilla::WebGLContext::DeleteCycleCollectable 
(this=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.cpp:1397
#28 0xb455ebbb in 
mozilla::WebGLContext::cycleCollection::DeleteCycleCollectable (this=0xb6e2b500 
mozilla::WebGLContext::_cycleCollectorGlobal, p=0x9b8eb800) at 
/build/buildd/firefox-31.0+build1/content/canvas/src/WebGLContext.h:152
#29 0xb3841504 in SnowWhiteKiller::~SnowWhiteKiller 
(this=this@entry=0xbfb4273c, __in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/xpcom/base/nsCycleCollector.cpp:2403
#30 0xb3841d1b in ~RemoveSkippableVisitor (this=0xbfb4273c, 
__in_chrg=optimized out) at 
/build/buildd/firefox-31.0+build1/xpcom/base/nsCycleCollector.cpp:2495
#31 

[Desktop-packages] [Bug 1364522] Re: Firefox crashes sometimes when using webgl with nouveau driver

2014-09-02 Thread Bernhard Übelacker
Problem could be reproduced with following graphic adapters:
01:00.0 VGA compatible controller: NVIDIA Corporation NV40 [GeForce 6800] (rev 
a1)
01:00.0 VGA compatible controller: NVIDIA Corporation NV31 [GeForce FX 5600XT] 
(rev a1)

(Firefox probably blacklisted the second card for webgl, to be able to 
investigate on the issue I had to enable manually.)
But the crash happens for the first card with default settings.

As far as I could observe, Firefox creates 3 contexts, then destroys the
last one but then still accesses the freed memory of the destroyed
context.

I believe this crash got fixed by this upstream commit:
http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/nouveau/nv30/nv30_context.c?id=c092c46b27c6f6a6674e8d67fb3afdb684811819
Unfortunately this commit got only into 10.2.2.

But as Trusty Tahr is a LTS release it probably will stay a long time with 
users using older graphics cards.
Therefore I ask if this little patch could be added.

--
Building package libgl1-mesa-dri like this makes the crash for me go away:
mkdir -p ~/ubuntu/mesa; cd ~/ubuntu/mesa
apt-get source libgl1-mesa-dri
cd mesa-10.1.3
wget wget 
http://cgit.freedesktop.org/mesa/mesa/patch/src/gallium/drivers/nouveau/nv30/nv30_context.c?id=c092c46b27c6f6a6674e8d67fb3afdb684811819
 -O debian/patches/999-nv30_avoid_dangling_references_to_deleted_contexts.patch
echo 999-nv30_avoid_dangling_references_to_deleted_contexts.patch  
debian/patches/series
patch -p1  
debian/patches/999-nv30_avoid_dangling_references_to_deleted_contexts.patch
dpkg-buildpackage
cd ..
# sudo dpkg -i libgl1-mesa-dri_10.1.3-0ubuntu0.1_i386.deb
--

Other references where this bug seems to appear (just for reference):
https://bugzilla.redhat.com/show_bug.cgi?id=1125339
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661387
https://crash-stats.mozilla.com/report/list?signature=nouveau_dri.so%400x239b79


** Bug watch added: Red Hat Bugzilla #1125339
   https://bugzilla.redhat.com/show_bug.cgi?id=1125339

** Bug watch added: Debian Bug tracker #661387
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661387

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1364522

Title:
  Firefox crashes sometimes when using webgl with nouveau driver

Status in “mesa” package in Ubuntu:
  New

Bug description:
  Visiting with Firefox e.g.
  https://developer.mozilla.org/de/demos/detail/orange-slice/launch
  makes firefox crash.

  Program received signal SIGSEGV, Segmentation fault.
  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  226if (screen-fence.current-state  NOUVEAU_FENCE_STATE_EMITTING)
  (gdb) bt
  #0  nouveau_fence_next (screen=screen@entry=0x5a5a5a5a) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_fence.c:226
  #1  0x9b5b7fc0 in nv30_context_kick_notify (push=0x9b8f62b0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:48
  #2  0xa0a0ea3e in pushbuf_submit (push=push@entry=0x9b8f62b0, chan=optimized 
out, chan=optimized out) at ../../nouveau/pushbuf.c:325
  #3  0xa0a0ed7a in pushbuf_flush (push=push@entry=0x9b8f62b0) at 
../../nouveau/pushbuf.c:402
  #4  0xa0a0faca in nouveau_pushbuf_kick (push=0x9b8f62b0, chan=0xa40c5420) at 
../../nouveau/pushbuf.c:774
  #5  0x9b5b811f in PUSH_KICK (push=optimized out) at 
../../../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:56
  #6  nv30_context_flush (pipe=0x9b986000, fence=0x0, flags=0) at 
../../../../../../src/gallium/drivers/nouveau/nv30/nv30_context.c:83
  #7  0x9b4b4e1c in st_flush (st=st@entry=0x989e8000, fence=fence@entry=0x0, 
flags=flags@entry=0) at ../../../../src/mesa/state_tracker/st_cb_flush.c:87
  #8  0x9b4b4e82 in st_glFlush (ctx=0x98844000) at 
../../../../src/mesa/state_tracker/st_cb_flush.c:121
  #9  0x9b3b3065 in _mesa_flush (ctx=ctx@entry=0x98844000) at 
../../../../src/mesa/main/context.c:1691
  #10 0x9b3b3130 in _mesa_make_current (newCtx=newCtx@entry=0x0, 
drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at 
../../../../src/mesa/main/context.c:1503
  #11 0x9b4dee74 in st_api_make_current (stapi=0x9b779700 st_gl_api, 
stctxi=0x0, stdrawi=0x0, streadi=0x0) at 
../../../../src/mesa/state_tracker/st_manager.c:746
  #12 0x9b59d9ee in dri_unbind_context (cPriv=0x994e3120) at 
../../../../../../../src/gallium/state_trackers/dri/drm/dri_context.c:215
  #13 0x9b38db93 in driUnbindContext (pcp=0x994e3120) at 
../../../../../../../src/mesa/drivers/dri/common/dri_util.c:578
  #14 0x9b7df149 in dri2_unbind_context (context=0x9b9cbc20, new=0x0) at 
../../../../src/glx/dri2_glx.c:184
  #15 0x9b7b7985 in MakeContextCurrent (dpy=dpy@entry=0xb7191000, 
draw=draw@entry=0, read=read@entry=0, gc_user=gc_user@entry=0x0) at 
../../../../src/glx/glxcurrent.c:245
  #16 0x9b7b7a73 in glXMakeCurrent (dpy=0xb7191000, draw=0, gc=0x0) at