Summary: | Floating point exception | ||
---|---|---|---|
Product: | xorg | Reporter: | Theo <alpha0x89> |
Component: | Driver/Radeon | Assignee: | xf86-video-ati maintainers <xorg-driver-ati> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 7.6 (2010.12) | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Description
Theo
2018-04-28 10:58:54 UTC
The exact Mathematica version is 11.1.1.0. The error happens independent of desktop environment or logged-in user. The crash happens only with options "AccelMethod" "glamor" and "DRI" "2". With "AccelMethod" "EXA" or "DRI" "3", Mathematica does not crash the X server. Instead it outputs the message "failed to create drawable" the moment it would crash the server. Can you get a gdb backtrace of the crash? Created attachment 139349 [details]
GDB backtrace Mathematica 11.1.1 floating point exception
Please attach the corresponding Xorg log file. So far, this looks like an X server bug: cpp == 0 in radeon_alloc_pixmap_bo, which means pixmap->drawable.bitsPerPixel <= 7 after fbCreatePixmap in radeon_glamor_create_pixmap, but it should be 32. Can you maybe also provide the output of the following at the gdb prompt when it crashes? p *radeon_glamor_create_pixmap::pixmap Created attachment 139545 [details] Desired Xorg log for floating point exception caused by Mathematica (In reply to Michel Dänzer from comment #4) > Please attach the corresponding Xorg log file. Attached Xorg log has messages about monitor and input devices cut out. Created attachment 139546 [details] Another backtrace (In reply to Michel Dänzer from comment #4) > Can you maybe also provide > the output of the following at the gdb prompt when it crashes? > > p *radeon_glamor_create_pixmap::pixmap This outputs "value has been optimized out". Created attachment 139578 [details] [review] glamor: Bail CreatePixmap on unsupported pixmap depth Does this patch fix it? Created attachment 139599 [details] Backtrace of segfault after patch (In reply to Michel Dänzer from comment #7) > Created attachment 139578 [details] [review] [review] > glamor: Bail CreatePixmap on unsupported pixmap depth > > Does this patch fix it? Not really. This turns it into a segmentation fault when I add the two lines to the source package[1] provided by openSUSE. GDB backtrace is attached, here are the error messages from the Xorg log: (EE) Backtrace: (EE) 0: /usr/bin/X (xorg_backtrace+0x65) [0x55e3703f8fd5] (EE) 1: /usr/bin/X (0x55e370244000+0x1b8d89) [0x55e3703fcd89] (EE) 2: /lib64/libpthread.so.0 (0x7fedc4cec000+0x12080) [0x7fedc4cfe080] (EE) 3: /usr/lib64/xorg/modules/drivers/radeon_drv.so (0x7fedc1caf000+0x448ca) [0x7fedc1cf38ca] (EE) 4: /usr/bin/X (0x55e370244000+0x187407) [0x55e3703cb407] (EE) 5: /usr/bin/X (DRI2CopyRegion+0x78) [0x55e3703cbc08] (EE) 6: /usr/bin/X (0x55e370244000+0x188096) [0x55e3703cc096] (EE) 7: /usr/bin/X (DRI2GetBuffersWithFormat+0xb) [0x55e3703cc13b] (EE) 8: /usr/bin/X (0x55e370244000+0x189c20) [0x55e3703cdc20] (EE) 9: /usr/bin/X (0x55e370244000+0x53f68) [0x55e370297f68] (EE) 10: /usr/bin/X (0x55e370244000+0x57fb0) [0x55e37029bfb0] (EE) 11: /lib64/libc.so.6 (__libc_start_main+0xe7) [0x7fedc494fa87] (EE) 12: /usr/bin/X (_start+0x2a) [0x55e370285c5a] (EE) (EE) Segmentation fault at address 0x2 [1] http://download.opensuse.org/source/tumbleweed/repo/oss/src/xf86-video-ati-18.0.1-1.1.src.rpm Created attachment 139609 [details] [review] Bail from dri2_create_buffer2 if we can't get a pixmap Please try this patch on top. (In reply to Michel Dänzer from comment #9) > Created attachment 139609 [details] [review] [review] > Bail from dri2_create_buffer2 if we can't get a pixmap > > Please try this patch on top. This works. Mathematica no longer crashes the X server. Thanks for the report and testing, fixed in Git master: commit 65c9dfea4e841b7d6f795c7489fede58c5e9631f Author: Michel Dänzer <michel.daenzer@amd.com> Date: Tue May 15 18:59:30 2018 +0200 glamor: Bail CreatePixmap on unsupported pixmap depth commit 3dcfce8d0f495d09d7836caf98ef30d625b78a13 Author: Michel Dänzer <michel.daenzer@amd.com> Date: Thu May 17 09:50:50 2018 +0200 Bail from dri2_create_buffer2 if we can't get a pixmap |
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.