Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-28 Thread Hilmar Preusse
On 14.02.14 Sven Joachim (svenj...@gmx.de) wrote:

Hi,

  I guess debug of the nouveau code is relevant. Here is the bt of
  the same core dump after installing xserver-xorg-video-nouveau-dbg.
 
  Further I think that bug is important - raising sev.
 
 This might be https://bugs.freedesktop.org/show_bug.cgi?id=71116.
 Could you please test whether the attached patch for
 xserver-xorg-video-nouveau in wheezy helps?
 
For now I've solved my personal problem by pluggin in a ATI Radeon
4650 card and disable the on-board NVidia device - X-Server is
stable now. ;-)

H.
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-20 Thread Hilmar Preusse
On 19.02.14 Sven Joachim (svenj...@gmx.de) wrote:

Hi,

 They will likely complain about your old kernel and mesa versions, but
 you can try (I don't think those matter in this case).  Please see
 http://nouveau.freedesktop.org/wiki/Bugs/ for instructions.
 
https://bugs.freedesktop.org/show_bug.cgi?id=70510

Seems to describe my problem. Comment added.

H.
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-19 Thread Hilmar Preusse
On 15.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 15.02.2014 um 16:01 schrieb Hilmar Preusse:
  On 15.02.14 Sven Joachim (svenj...@gmx.de) wrote:
  Am 14.02.2014 um 23:00 schrieb Hilmar Preusse:

Hi,

   I guess I rather look at https://bugs.debian.org/688082 . Is this a
   patch for it?
  
  I don't think so, but then again I don't really understand why that bug
  suddenly had been fixed for Thiemo Nagel.
  
  He says, it is fixed latest in 1:1.0.10-1 (Debian testing).
 
 Yes.  What I mean is that I cannot find anything in the commit logs of
 xserver-xorg-nouveau which would explain this to me.
 
OK, I can't follow Thiemos observation, that nouveau 1.0.10 solves
the problem. I now have

ii  libdrm-nouveau2:i386 2.4.52-1
ii  xserver-xorg-video-nouveau   1:1.0.10-1
ii  xserver-xorg-video-nouveau-dbg   1:1.0.10-1

The X server still crashes, the gdb backtrace looks about the same
(bug seems to be in nouveau code).

Do you think that should be reported @upstream? Thanks!

Hilmar
-- 
sigmentation fault
#0  0xb7221667 in raise () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#1  0xb7224a52 in abort () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#2  0xb76e6719 in OsAbort () at ../../os/utils.c:1198
No locals.
#3  0xb75e0967 in ddxGiveUp (error=error@entry=EXIT_ERR_ABORT)
at ../../../../hw/xfree86/common/xf86Init.c:1009
i = optimized out
#4  0xb75e0a13 in AbortDDX (error=error@entry=EXIT_ERR_ABORT)
at ../../../../hw/xfree86/common/xf86Init.c:1053
i = optimized out
#5  0xb76ebd01 in AbortServer () at ../../os/log.c:476
No locals.
#6  0xb76ebe25 in FatalError (
f=f@entry=0xb7710c28 Caught signal %d (%s). Server aborting\n)
at ../../os/log.c:611
args = 0xbfac4be4 \v
beenhere = 1
#7  0xb76e4238 in OsSigHandler (sip=0xbfac4c0c, signo=11, 
unused=optimized out) at ../../os/osinit.c:146
No locals.
#8  OsSigHandler (signo=11, sip=0xbfac4c0c, unused=0xbfac4c8c)
at ../../os/osinit.c:107
No locals.
#9  signal handler called
No symbol table info available.
#10 0xb6fb0dcf in memcpy (__len=256000, __src=0xb87b5268, 
__dest=optimized out) at /usr/include/i386-linux-gnu/bits/string3.h:52
No locals.
#11 NVAccelMemcpyRect (line_len=16000, src_pitch=16000, dst_pitch=16000, 
height=16, src=0xb87b5268 , dst=optimized out)
at ../../src/nouveau_exa.c:33
No locals.
#12 nouveau_exa_upload_to_screen (pdpix=0xb86cb578, x=0, y=0, w=4000, h=16, 
src=0xb87b5268 , src_pitch=16000) at ../../src/nouveau_exa.c:389
pScrn = optimized out
pNv = 0xb84516c0
dst_pitch = 16000
tmp_pitch = 16000
cpp = 4
i = optimized out
bo = 0xb87da000
dst = optimized out
ret = 256000
__func__ = nouveau_exa_upload_to_screen
#13 0xb6f7086a in exaDoPutImage (src_stride=optimized out, 
bits=0xb8776a68 8BT, format=2, h=16, w=4000, y=0, x=0, pGC=0xb86cd2a8, 
pDrawable=0xb86cb578, depth=optimized out) at ../../exa/exa_accel.c:212
y1 = optimized out
x2 = optimized out
ok = optimized out
x1 = 0
y2 = optimized out
src = 0xb8776a68 8BT
pExaPixmap = 0xb05da000
nbox = optimized out
pExaScr = 0xb8776a68
pPix = 0xb86cb578
xoff = 0
ret = 1
pClip = optimized out
pbox = 0xb86f1898
yoff = 0
bpp = 0
#14 exaPutImage (pDrawable=0xb86cb578, pGC=0xb86cd2a8, depth=24, x=0, y=0, 
w=4000, h=16, leftPad=0, format=2, bits=0xb8776a68 8BT)
at ../../exa/exa_accel.c:233
No locals.
#15 0xb766c534 in damagePutImage (pDrawable=0xb86cb578, pGC=0xb86cd2a8, 
depth=24, x=0, y=0, w=4000, h=16, leftPad=0, format=2, 
pImage=0xb8776a68 8BT) at ../../../miext/damage/damage.c:795
pGCPriv = 0xb86cd328
oldFuncs = 0xb7751dc0
#16 0xb759baff in ProcPutImage (client=0xb86cafe0) at ../../dix/dispatch.c:1963
pGC = 0xb86cd2a8
pDraw = 0xb86cb578
length = optimized out
lengthProto = optimized out
tmpImage = 0xb8776a68 8BT
stuff = 0xb8776a50
#17 0xb759f375 in Dispatch () at ../../dix/dispatch.c:428
clientReady = 0xb86a3358
result = optimized out
client = 0xb86cafe0
nready = 0
icheck = 0xb7759118
start_tick = 1060
#18 0xb758ce95 in main (argc=13, argv=0xbfac5314, envp=0xbfac534c)
at ../../dix/main.c:288
i = optimized out
alwaysCheckForInput = {0, 1}


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-19 Thread Sven Joachim
Am 19.02.2014 um 15:07 schrieb Hilmar Preusse:

 OK, I can't follow Thiemos observation, that nouveau 1.0.10 solves
 the problem. I now have

 ii  libdrm-nouveau2:i386 2.4.52-1
 ii  xserver-xorg-video-nouveau   1:1.0.10-1
 ii  xserver-xorg-video-nouveau-dbg   1:1.0.10-1

 The X server still crashes, the gdb backtrace looks about the same
 (bug seems to be in nouveau code).

 Do you think that should be reported @upstream? Thanks!

They will likely complain about your old kernel and mesa versions, but
you can try (I don't think those matter in this case).  Please see
http://nouveau.freedesktop.org/wiki/Bugs/ for instructions.

Cheers,
   Sven


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87k3crcaye@turtle.gmx.de



Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-19 Thread Hilmar Preusse
On 19.02.14 Sven Joachim (svenj...@gmx.de) wrote:

Hi,

 They will likely complain about your old kernel and mesa versions, but
 you can try (I don't think those matter in this case).
 
The nouveau driver is not linked w/ mesa and a userspace program. Both
should not matter.

 Please see http://nouveau.freedesktop.org/wiki/Bugs/ for
 instructions.
 
quote
If you are using packages from your distribution, send the bug
reports to your distribution and not directly to us.
/quote

As first I'd re-open #688082 and then contact Thiemo and the submitter
if they still see the problem (or vice versa [first contact, then
re-open]). Do you agree?

Yes, I can open the ticket @n.f.o/wiki/Bugs later on.

Regards,
  Hilmar
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-19 Thread Sven Joachim
Am 19.02.2014 um 21:18 schrieb Hilmar Preusse:

 On 19.02.14 Sven Joachim (svenj...@gmx.de) wrote:

 Hi,

 They will likely complain about your old kernel and mesa versions, but
 you can try (I don't think those matter in this case).
 
 The nouveau driver is not linked w/ mesa and a userspace program. Both
 should not matter.

Many bugs reported against xserver-xorg-video-nouveau are actually
kernel bugs or bugs in the 3D driver (package libgl1-mesa-dri).  But not
this one, it seems.

 Please see http://nouveau.freedesktop.org/wiki/Bugs/ for
 instructions.
 
 quote
 If you are using packages from your distribution, send the bug
 reports to your distribution and not directly to us.
 /quote

They obviously don't want to deal with outdated distribution packages
(like the ones in Debian stable), but we're shipping the latest versions
of libdrm and the X driver in testing and unstable, and we're not
patching them.

 As first I'd re-open #688082 and then contact Thiemo and the submitter
 if they still see the problem (or vice versa [first contact, then
 re-open]). Do you agree?

Yes, your latest backtrace looks very similar to the one reported
originally in #688082.

Cheers,
   Sven


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87a9dmdebg@turtle.gmx.de



Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-16 Thread Sven Joachim
Am 15.02.2014 um 22:53 schrieb Hilmar Preusse:

 On 15.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 15.02.2014 um 16:01 schrieb Hilmar Preusse:

 Hi,

  He says, it is fixed latest in 1:1.0.10-1 (Debian testing).
 
 Yes.  What I mean is that I cannot find anything in the commit logs of
 xserver-xorg-nouveau which would explain this to me.
 
 The only one I found was the following from upstream changelog:

 commit 2fa3397e348161a3394e2b456f065921272a056a
 Author: Ilia Mirkin imir...@alum.mit.edu
 Date:   Fri May 3 09:59:39 2013 -0400

 nouveau_xv: Avoid reading off the end of the source image on NV50+
 
 The 'w' argument to NVCopyNV12ColorPlanes is used to index into the
 source image. line_len is rounded up to 8 on NV50+, so if the source
 image (+ left offset) is not rounded to 8, NVCopyNV12ColorPlanes could
 read past the end of the array and crash X. This change can cause the
 last few horizontal pixels of dst to not be initialized, but they
 should be truncated by the renderer anyways.
 
 See https://bugs.freedesktop.org/show_bug.cgi?id=63263
 
 Signed-off-by: Ilia Mirkin imir...@alum.mit.edu
 Signed-off-by: Ben Skeggs bske...@redhat.com

 No, I don't have an NV50+ card, but rather a NV40 card. Could you
 have a short look if my problem is related to this issue?

Probably not, but I'm not totally sure.  Here is the commit diff if you
want to try:

--8---cut here---start-8---
diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c
index f7dc2bc..8eafcf0 100644
--- a/src/nouveau_xv.c
+++ b/src/nouveau_xv.c
@@ -1095,7 +1095,7 @@ NVPutImage(ScrnInfoPtr pScrn, short src_x, short src_y, 
short drw_x,
NVCopyNV12ColorPlanes(buf + s2offset,
  buf + s3offset, dst,
  line_len, srcPitch2,
- nlines, line_len);
+ nlines, npixels);
}
} else {
for (i = 0; i  nlines; i++) {
@@ -1161,7 +1161,7 @@ CPU_copy:
NVCopyNV12ColorPlanes(buf + s2offset,
  buf + s3offset,
  map, dstPitch, srcPitch2,
- nlines, line_len);
+ nlines, npixels);
}
} else {
/* YUY2 and RGB */
--8---cut here---end---8---

Cheers,
   Sven


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87k3cvwktd@turtle.gmx.de



Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-16 Thread Hilmar Preusse
On 16.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 15.02.2014 um 22:53 schrieb Hilmar Preusse:

Hi,

  The only one I found was the following from upstream changelog:
 
  commit 2fa3397e348161a3394e2b456f065921272a056a
  Author: Ilia Mirkin imir...@alum.mit.edu
  Date:   Fri May 3 09:59:39 2013 -0400
 
  Could you have a short look if my problem is related to this
  issue?
 
 Probably not, but I'm not totally sure.  Here is the commit diff if you
 want to try:
 
As predicted the patch does not solve my problem. I guess I have to
go the hard way of backports to fix my problem (hopefully).

Couly you contact upstream if they know about the problem and if it
was fixed w/o noticing?

Many thanks!

H.
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-15 Thread Hilmar Preusse
On 15.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 14.02.2014 um 23:00 schrieb Hilmar Preusse:

Hi,

  I guess I rather look at https://bugs.debian.org/688082 . Is this a
  patch for it?
 
 I don't think so, but then again I don't really understand why that bug
 suddenly had been fixed for Thiemo Nagel.
 
He says, it is fixed latest in 1:1.0.10-1 (Debian testing).
Unfortunately I can't upgrade my system to testing.

Would it be possible to have a fix in Debian stable?

H.
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-15 Thread Sven Joachim
Am 15.02.2014 um 16:01 schrieb Hilmar Preusse:

 On 15.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 14.02.2014 um 23:00 schrieb Hilmar Preusse:

 Hi,

  I guess I rather look at https://bugs.debian.org/688082 . Is this a
  patch for it?
 
 I don't think so, but then again I don't really understand why that bug
 suddenly had been fixed for Thiemo Nagel.
 
 He says, it is fixed latest in 1:1.0.10-1 (Debian testing).

Yes.  What I mean is that I cannot find anything in the commit logs of
xserver-xorg-nouveau which would explain this to me.

 Unfortunately I can't upgrade my system to testing.

You could rebuild libdrm and xserver-xorg-video-nouveau from testing on
wheezy to see if the problem is fixed in current versions.

 Would it be possible to have a fix in Debian stable?

If we can identify a fix, certainly.

Cheers,
   Sven


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/8761ogxsys@turtle.gmx.de



Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-15 Thread Hilmar Preusse
On 15.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 15.02.2014 um 16:01 schrieb Hilmar Preusse:

Hi,

  He says, it is fixed latest in 1:1.0.10-1 (Debian testing).
 
 Yes.  What I mean is that I cannot find anything in the commit logs of
 xserver-xorg-nouveau which would explain this to me.
 
The only one I found was the following from upstream changelog:

commit 2fa3397e348161a3394e2b456f065921272a056a
Author: Ilia Mirkin imir...@alum.mit.edu
Date:   Fri May 3 09:59:39 2013 -0400

nouveau_xv: Avoid reading off the end of the source image on NV50+

The 'w' argument to NVCopyNV12ColorPlanes is used to index into the
source image. line_len is rounded up to 8 on NV50+, so if the source
image (+ left offset) is not rounded to 8, NVCopyNV12ColorPlanes could
read past the end of the array and crash X. This change can cause the
last few horizontal pixels of dst to not be initialized, but they
should be truncated by the renderer anyways.

See https://bugs.freedesktop.org/show_bug.cgi?id=63263

Signed-off-by: Ilia Mirkin imir...@alum.mit.edu
Signed-off-by: Ben Skeggs bske...@redhat.com

No, I don't have an NV50+ card, but rather a NV40 card. Could you
have a short look if my problem is related to this issue?  If yes,
I'll try to compile a patched package for testing.

Thanks!

H.
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-14 Thread Hilmar Preusse
severity 712545 important
stop

On 14.02.14 Hilmar Preusse (hill...@web.de) wrote:

Hi,

 I *think* I see the same problem, at least I have about the same
 backtrace.  I see the problem when displaying pictures e.g.  using
 display.  Attached is the gdb backtrace.  I you need more debug
 symbols e.g.  for glibc or xserver-xorg-video-nouveau please call
 back.
 
I guess debug of the nouveau code is relevant. Here is the bt of
the same core dump after installing xserver-xorg-video-nouveau-dbg.

Further I think that bug is important - raising sev.

H.
-- 
sigmentation fault
A debugging session is active.

Inferior 1 [process 3820] will be detached.

Quit anyway? (y or n) Detaching from program: /usr/bin/Xorg, process 3820
#0  0xb723b667 in ?? () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#1  0xb723ea52 in srandom () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
#2  0xb76fe719 in OsAbort () at ../../os/utils.c:1198
No locals.
#3  0xb75f8967 in ddxGiveUp (error=error@entry=EXIT_ERR_ABORT)
at ../../../../hw/xfree86/common/xf86Init.c:1009
i = optimized out
#4  0xb75f8a13 in AbortDDX (error=error@entry=EXIT_ERR_ABORT)
at ../../../../hw/xfree86/common/xf86Init.c:1053
i = optimized out
#5  0xb7703d01 in AbortServer () at ../../os/log.c:476
No locals.
#6  0xb7703e25 in FatalError (
f=f@entry=0xb7728c28 Caught signal %d (%s). Server aborting\n)
at ../../os/log.c:611
args = 0xbf9e0cd4 \v
beenhere = 1
#7  0xb76fc238 in OsSigHandler (sip=0xbf9e0cfc, signo=11, 
unused=optimized out) at ../../os/osinit.c:146
No locals.
#8  OsSigHandler (signo=11, sip=0xbf9e0cfc, unused=0xbf9e0d7c)
at ../../os/osinit.c:107
No locals.
#9  signal handler called
No symbol table info available.
#10 0xb6fc9185 in pushbuf_krel (push=push@entry=0xb7d71f30, 
bo=bo@entry=0xb80f4290, data=data@entry=204800, flags=flags@entry=4096, 
vor=vor@entry=0, tor=tor@entry=0) at ../../src/../drm_nouveau/pushbuf.c:246
krec = 0xb7d82668
krel = 0xb7d8c66c
bkref = 0x0
reloc = 204800
#11 0xb6fcab1c in nouveau_pushbuf_reloc (push=push@entry=0xb7d71f30, 
bo=bo@entry=0xb80f4290, data=data@entry=204800, flags=flags@entry=4096, 
vor=vor@entry=0, tor=tor@entry=0) at ../../src/../drm_nouveau/pushbuf.c:738
No locals.
#12 0xb6fd5faf in PUSH_RELOC (tor=0, vor=0, flags=4096, 
offset=optimized out, bo=optimized out, push=0xb7d71f30)
at ../../src/nouveau_local.h:129
No locals.
#13 NV04EXACopy (pdpix=0xb8173468, srcX=0, srcY=92, dstX=8, dstY=13, 
width=783, height=268) at ../../src/nv04_exa.c:245
dst_bo = 0xb80f4290
dst_pitch = optimized out
pScrn = optimized out
pNv = 0xb7d723a0
push = 0xb7d71f30
split_dstY = 64
split_height = 51
#14 0xb6f915e4 in exaHWCopyNtoN (pSrcDrawable=pSrcDrawable@entry=0xb8171b98, 
pDstDrawable=pDstDrawable@entry=0xb8173468, pGC=pGC@entry=0xb8165be0, 
pbox=optimized out, pbox@entry=0xbf9e12e4, nbox=optimized out, 
nbox@entry=1, dx=dx@entry=-8, dy=dy@entry=79, reverse=reverse@entry=0, 
upsidedown=upsidedown@entry=0) at ../../exa/exa_accel.c:490
pExaScr = 0xb7d807a8
pSrcPixmap = 0xb8171b98
pDstPixmap = 0xb8173468
pSrcExaPixmap = 0xb8171bd0
pDstExaPixmap = 0xb81734a0
src_off_x = optimized out
src_off_y = optimized out
dst_off_x = 0
dst_off_y = 0
srcregion = 0xb816b2d0
dstregion = 0xb81691c8
rects = 0xb81691c8
ret = 1
#15 0xb6f919d8 in exaCopyNtoN (pSrcDrawable=0xb8171b98, 
pDstDrawable=0xb8173468, pGC=0xb8165be0, pbox=0xbf9e12e4, nbox=1, dx=-8, 
dy=79, reverse=0, upsidedown=0, bitplane=0, closure=0x0)
at ../../exa/exa_accel.c:582
pExaScr = 0xb7d807a8
#16 0xb76d4fbc in miCopyRegion (pSrcDrawable=pSrcDrawable@entry=0xb8171b98, 
pDstDrawable=pDstDrawable@entry=0xb8173468, pGC=pGC@entry=0xb8165be0, 
pDstRegion=pDstRegion@entry=0xbf9e12e4, dx=dx@entry=-8, dy=dy@entry=79, 
copyProc=copyProc@entry=0xb6f91920 exaCopyNtoN, 
bitPlane=bitPlane@entry=0, closure=closure@entry=0x0)
at ../../mi/micopy.c:121
careful = optimized out
reverse = 0
upsidedown = optimized out
pbox = 0xbf9e12e4
nbox = 1
pboxNew1 = optimized out
pboxNew2 = 0x0
pboxBase = optimized out
pboxNext = optimized out
pboxTmp = optimized out
#17 0xb76d55f0 in miDoCopy (pSrcDrawable=pSrcDrawable@entry=0xb8171b98, 
pDstDrawable=pDstDrawable@entry=0xb8173468, pGC=pGC@entry=0xb8165be0, 
xIn=xIn@entry=0, yIn=yIn@entry=92, widthSrc=widthSrc@entry=783, 
heightSrc=heightSrc@entry=268, xOut=xOut@entry=8, yOut=yOut@entry=13, 
copyProc=copyProc@entry=0xb6f91920 exaCopyNtoN, 
bitPlane=bitPlane@entry=0, closure=closure@entry=0x0)
at ../../mi/micopy.c:297
prgnSrcClip = 0x0
freeSrcClip = 0
prgnExposed = 0x0

Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-14 Thread Sven Joachim
Am 14.02.2014 um 19:42 schrieb Hilmar Preusse:

 severity 712545 important
 stop

 On 14.02.14 Hilmar Preusse (hill...@web.de) wrote:

 Hi,

 I *think* I see the same problem, at least I have about the same
 backtrace.  I see the problem when displaying pictures e.g.  using
 display.  Attached is the gdb backtrace.  I you need more debug
 symbols e.g.  for glibc or xserver-xorg-video-nouveau please call
 back.
 
 I guess debug of the nouveau code is relevant. Here is the bt of
 the same core dump after installing xserver-xorg-video-nouveau-dbg.

 Further I think that bug is important - raising sev.

This might be https://bugs.freedesktop.org/show_bug.cgi?id=71116.
Could you please test whether the attached patch for
xserver-xorg-video-nouveau in wheezy helps?

TIA,
Sven

diff --git a/debian/changelog b/debian/changelog
index 3d7d637..147a817 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xserver-xorg-video-nouveau (1:1.0.1-5+deb7u1) UNRELEASED; urgency=low
+
+  * Cherry-pick commit 482abbfafb56cbceaf5355c02 from libdrm-nouveau
+2.4.48, fixes undefined behavior in nouveau_pushbuf_reloc.
+
+ -- Sven Joachim svenj...@gmx.de  Fri, 14 Feb 2014 21:32:17 +0100
+
 xserver-xorg-video-nouveau (1:1.0.1-5) unstable; urgency=low
 
   * New patch 03-fix-shaders-on-big-endian-machines.diff from
diff --git a/debian/patches/02-pushbuf-reloc.diff b/debian/patches/02-pushbuf-reloc.diff
new file mode 100644
index 000..ca45107
--- /dev/null
+++ b/debian/patches/02-pushbuf-reloc.diff
@@ -0,0 +1,25 @@
+commit 482abbfafb56cbceaf5355c026434e638cddd0f1
+Author: Maarten Lankhorst maarten.lankho...@canonical.com
+Date:   Thu Nov 7 13:30:19 2013 +0100
+
+nouveau: prevent undefined behavior in nouveau_pushbuf_reloc with gcc-4.8
+
+Reported-by: ronald...@gmail.com
+Bisected-by (gcc): Andreas Radke a.ra...@arcor.de
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71116
+Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com
+
+diff --git a/nouveau/pushbuf.c b/nouveau/pushbuf.c
+index 0fd0c47..4f77881 100644
+--- a/drm_nouveau/pushbuf.c
 b/drm_nouveau/pushbuf.c
+@@ -739,7 +739,8 @@ void
+ nouveau_pushbuf_reloc(struct nouveau_pushbuf *push, struct nouveau_bo *bo,
+ 		  uint32_t data, uint32_t flags, uint32_t vor, uint32_t tor)
+ {
+-	*push-cur++ = pushbuf_krel(push, bo, data, flags, vor, tor);
++	*push-cur = pushbuf_krel(push, bo, data, flags, vor, tor);
++	push-cur++;
+ }
+ 
+ int
diff --git a/debian/patches/series b/debian/patches/series
index 7ef3d10..c47dea4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01-set-NV_DRIVER_DATE-from-ChangeLog.diff
 02-drm-nouveau-newabi.patch
+02-pushbuf-reloc.diff
 03-fix-shaders-on-big-endian-machines.diff


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-14 Thread Hilmar Preusse
On 14.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 14.02.2014 um 19:42 schrieb Hilmar Preusse:

Hi,

  I guess debug of the nouveau code is relevant. Here is the bt of
  the same core dump after installing xserver-xorg-video-nouveau-dbg.
 
  Further I think that bug is important - raising sev.
 
 This might be https://bugs.freedesktop.org/show_bug.cgi?id=71116.
 Could you please test whether the attached patch for
 xserver-xorg-video-nouveau in wheezy helps?
 
I guess I rather look at https://bugs.debian.org/688082 . Is this a
patch for it?

H.
-- 
sigmentation fault


signature.asc
Description: Digital signature


Bug#712545: xserver-xorg-core: Xorg crashes when displaying pictures

2014-02-14 Thread Sven Joachim
Am 14.02.2014 um 23:00 schrieb Hilmar Preusse:

 On 14.02.14 Sven Joachim (svenj...@gmx.de) wrote:
 Am 14.02.2014 um 19:42 schrieb Hilmar Preusse:

 Hi,

  I guess debug of the nouveau code is relevant. Here is the bt of
  the same core dump after installing xserver-xorg-video-nouveau-dbg.
 
  Further I think that bug is important - raising sev.
 
 This might be https://bugs.freedesktop.org/show_bug.cgi?id=71116.
 Could you please test whether the attached patch for
 xserver-xorg-video-nouveau in wheezy helps?
 
 I guess I rather look at https://bugs.debian.org/688082 . Is this a
 patch for it?

I don't think so, but then again I don't really understand why that bug
suddenly had been fixed for Thiemo Nagel.

Cheers,
   Sven


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87eh35xpjg@turtle.gmx.de