Bug 31414 - X crashes when editing a photo in GIMP
Summary: X crashes when editing a photo in GIMP
Status: RESOLVED DUPLICATE of bug 32188
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 31573 31733 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-05 10:32 UTC by Honza Stodola
Modified: 2011-01-20 22:14 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (38.19 KB, text/plain)
2010-11-05 10:32 UTC, Honza Stodola
no flags Details
traceback (5.47 KB, text/plain)
2010-11-10 15:05 UTC, Honza Stodola
no flags Details
xorg-server-1.7.7-r1 crashes (26.62 KB, text/plain)
2010-12-11 23:21 UTC, Tobias Kaminsky
no flags Details
possible fix (1011 bytes, patch)
2010-12-13 10:51 UTC, Alex Deucher
no flags Details | Splinter Review
xorg.log with patch (26.92 KB, text/plain)
2010-12-13 12:07 UTC, Tobias Kaminsky
no flags Details
gimp error output (522 bytes, text/plain)
2010-12-13 12:07 UTC, Tobias Kaminsky
no flags Details

Description Honza Stodola 2010-11-05 10:32:16 UTC
Created attachment 40068 [details]
Xorg log

Hi,
an attempt to edit photos in GIMP often ends with X server crash:

Backtrace:
[  4733.875] 0: /usr/bin/X (xorg_backtrace+0x28) [0x4a2868]
[  4733.875] 1: /usr/bin/X (0x400000+0x63999) [0x463999]
[  4733.875] 2: /lib/libpthread.so.0 (0x7f35f86d5000+0xf470) [0x7f35f86e4470]
[  4733.875] 3: /usr/lib64/xorg/modules/drivers/radeon_drv.so (0x7f35f57ed000+0xc62dd) [0x7f35f58b32dd]
[  4733.875] 4: /usr/lib64/xorg/modules/libexa.so (0x7f35f51a9000+0xfd62) [0x7f35f51b8d62]
[  4733.875] 5: /usr/lib64/xorg/modules/libexa.so (0x7f35f51a9000+0x1073e) [0x7f35f51b973e]
[  4733.875] 6: /usr/bin/X (0x400000+0xd86a3) [0x4d86a3]
[  4733.875] 7: /usr/lib64/xorg/modules/libexa.so (0x7f35f51a9000+0x117e8) [0x7f35f51ba7e8]
[  4733.875] 8: /usr/bin/X (0x400000+0xd3a21) [0x4d3a21]
[  4733.875] 9: /usr/bin/X (0x400000+0x30881) [0x430881]
[  4733.875] 10: /usr/bin/X (0x400000+0x2498e) [0x42498e]
[  4733.875] 11: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7f35f78b3cdd]
[  4733.875] 12: /usr/bin/X (0x400000+0x24539) [0x424539]
[  4733.875] Segmentation fault at address 0x4
[  4733.875] 
Fatal server error:
[  4733.875] Caught signal 11 (Segmentation fault). Server aborting

Components and versions:
distribution: gentoo
kernel: 2.6.36-gentoo
xorg-server-1.9.2
xf86-video-ati - git 2a7b080727f61559cf8444c93a5088f4155a8fdf
GIMP: 2.6.10
HW: ATI 5770: 
01:00.0 VGA compatible controller: ATI Technologies Inc Juniper [Radeon HD 5700 Series]

Steps to reproduce:
1. open a photo (4288x2848 pixels) in GIMP
2. zoom in and out repeatedly, X server usually crashes within a few seconds
Comment 1 boris64 2010-11-05 19:38:57 UTC
I confirm this crash, it usually happens when
resizing a picture in gimp.
I can't reproduce this error when using 
Option "RenderAccel" "off" in xorg.conf.

I am also using gentoo, kernel-2.6.36 (vanilla),
xorg-server-1.9.2 and mesa/ddx/libdrm from git.
Comment 2 Michel Dänzer 2010-11-09 05:52:27 UTC
A full backtrace from gdb (preferably with debugging symbols) should be helpful.
Comment 3 Honza Stodola 2010-11-10 15:05:51 UTC
Created attachment 40186 [details]
traceback

attached traceback from gdb
Comment 4 Alex Deucher 2010-11-18 10:08:47 UTC
*** Bug 31733 has been marked as a duplicate of this bug. ***
Comment 5 Tobias Kaminsky 2010-11-28 22:14:16 UTC
It also crashes, while I use Eclipse.
Gimp leads also to a X-Server crash.
Should I provide a backtrace? If so, do I have to compile xorg-server with debug flag?

Components and versions:
distribution: gentoo
kernel: 2.6.37-rc2
xorg-server-1.9.2
xf86-video-ati - git 581577c25419f1384d517e51afcf058b19bcae36
GIMP: 2.7.1
HW: ATI 5650: 
01:00.0 VGA compatible controller: ATI Technologies Inc Redwood [Radeon HD 5600 Series]
Comment 6 Alex Deucher 2010-12-07 09:58:43 UTC
*** Bug 31573 has been marked as a duplicate of this bug. ***
Comment 7 Alex Deucher 2010-12-07 10:13:05 UTC
Can anyone reproduce this crash on xserver 1.8.x or older?  I think it may be an issue with xserver 1.9.x.
Comment 8 Tobias Kaminsky 2010-12-11 23:19:49 UTC
(In reply to comment #7)
> Can anyone reproduce this crash on xserver 1.8.x or older?  I think it may be
> an issue with xserver 1.9.x.

x11-base/xorg-server-1.7.7-r1 and it crashes the same way.

I attach the xorg.0.log file

Please tell me how I can help you to find the cause of this bug as it is very annoying.

Thank you
Comment 9 Tobias Kaminsky 2010-12-11 23:21:24 UTC
Created attachment 41023 [details]
xorg-server-1.7.7-r1 crashes
Comment 10 Alex Deucher 2010-12-12 20:45:17 UTC
Can you attach the problematic picture?  I haven't been able to reproduce this with the gimp on any evergreen card.
Comment 11 Tobias Kaminsky 2010-12-13 04:58:24 UTC
(In reply to comment #10)
> Can you attach the problematic picture?  I haven't been able to reproduce this
> with the gimp on any evergreen card.

It was a Screenshot of my laptop.
Zoom in as high as you can and press space to move the image very fast from left to right. After about 10 seconds it will kill X.

It also happened with eclipse-3.6 while opening a context menu.

(gimp-2.7.1)

Thank you
Comment 12 Alex Deucher 2010-12-13 10:51:25 UTC
Created attachment 41072 [details] [review]
possible fix

I still can't reproduce it.  Does this patch help?
Comment 13 Eduard Bloch 2010-12-13 11:16:36 UTC
Just tested attachment 41072 [details] [review] with repro of bug 31573 (DDD, following pointers). Result: still crashing, sorry.
Comment 14 Tobias Kaminsky 2010-12-13 12:06:45 UTC
Sorry, it does not helped.
Comment 15 Tobias Kaminsky 2010-12-13 12:07:26 UTC
Created attachment 41082 [details]
xorg.log with patch
Comment 16 Tobias Kaminsky 2010-12-13 12:07:54 UTC
Created attachment 41083 [details]
gimp error output
Comment 17 Tobias Kaminsky 2010-12-13 12:08:37 UTC
I forget to mention that I used the latest stable GIMP version: 2.6.8

Thank you for your help!
Comment 18 boris64 2010-12-23 16:06:07 UTC
Anything else we could do to help debug this problem?
I still can reproduce it everytime by simply zooming into
picture with gimp. Any more infos needed?
Comment 19 Tobias Kaminsky 2011-01-11 12:01:21 UTC
Still does not work. 
Thought that the recent changes might help...
Comment 20 Alex Deucher 2011-01-20 14:38:44 UTC
Does the workaround in bug 32188 comment 13 help?
https://bugs.freedesktop.org/show_bug.cgi?id=32188#c13
Comment 21 Tobias Kaminsky 2011-01-20 21:42:28 UTC
(In reply to comment #20)
> Does the workaround in bug 32188 comment 13 help?
> https://bugs.freedesktop.org/show_bug.cgi?id=32188#c13

radeon_vbo.c:50:39: warning: missing terminating " character
radeon_vbo.c: In function 'radeon_vbo_put':
radeon_vbo.c:50: error: missing terminating " character
radeon_vbo.c:51: error: expected ')' before ':' token
radeon_vbo.c:53: error: stray '\' in program
radeon_vbo.c:53:32: warning: missing terminating " character
radeon_vbo.c:53: error: missing terminating " character
radeon_vbo.c:55: warning: format not a string literal and no format arguments
make[2]: *** [radeon_vbo.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999'
Comment 22 Tobias Kaminsky 2011-01-20 21:50:51 UTC
(In reply to comment #21)
> (In reply to comment #20)
> > Does the workaround in bug 32188 comment 13 help?
> > https://bugs.freedesktop.org/show_bug.cgi?id=32188#c13
> 
> radeon_vbo.c:50:39: warning: missing terminating " character
> radeon_vbo.c: In function 'radeon_vbo_put':
> radeon_vbo.c:50: error: missing terminating " character
> radeon_vbo.c:51: error: expected ')' before ':' token
> radeon_vbo.c:53: error: stray '\' in program
> radeon_vbo.c:53:32: warning: missing terminating " character
> radeon_vbo.c:53: error: missing terminating " character
> radeon_vbo.c:55: warning: format not a string literal and no format arguments
> make[2]: *** [radeon_vbo.lo] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory
> `/var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999'

I deleted the content of the else "tree" and now it works.
GIMP does not crash. But I only tested it 2 minutes.
Comment 23 Alex Deucher 2011-01-20 22:14:47 UTC

*** This bug has been marked as a duplicate of bug 32188 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.