Bug 1181085
Summary: | SDL 1.2 programs crash with certain libGL implementations | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | uakudm |
Component: | libX11 | Assignee: | Adam Jackson <ajax> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | ajax, ppisar, sandmann |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
URL: | https://bugzilla.libsdl.org/show_bug.cgi?id=2843 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-02 07:16:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
uakudm
2015-01-12 11:04:53 UTC
I forwarded the request to the upstream <https://bugzilla.libsdl.org/show_bug.cgi?id=2843>. I think this is not specific to SDL. Any X11 toolkit can suffer from this. Also I'm not sure what performance penalty is initializing X11 threads in a single-thread applications. I hope SDL upsream will have some comments. So I've just noticed that this bug is probably not really related to SDL because it affects other non-SDL applications in Fedora. Nomacs for instance has been segfaulting for me about same time as Xonotic linked to SDL-1.2 (on start, I just stopped using it). Today I finally decided to check stacktrace and found that it segfaults on a similar path to Xonotic: gdb nomacs ... (gdb) run ... Program received signal SIGSEGV, Segmentation fault. 0x00007ffff44f8830 in pthread_mutex_lock () from /lib64/libpthread.so.0 (gdb) bt #0 0x00007ffff44f8830 in pthread_mutex_lock () from /lib64/libpthread.so.0 #1 0x00007ffff1b0c43a in XrmQGetResource (db=0x8ea230, names=names@entry=0x7fffffffabf0, classes=classes@entry=0x7fffffffac00, pType=pType@entry=0x7fffffffabec, pValue=pValue@entry=0x7fffffffac10) at Xrm.c:2549 #2 0x00007ffff1ae8826 in XGetDefault (dpy=dpy@entry=0x921710, prog=prog@entry=0x7ffff245f63d "Xcursor", name=name@entry=0x7ffff245f6cf "core") at GetDflt.c:231 #3 0x00007ffff245c748 in _XcursorGetDisplayInfo (dpy=0x921710) at display.c:151 #4 0x00007ffff245c789 in XcursorSupportsARGB (dpy=<optimized out>) at display.c:297 #5 0x00007ffff245f121 in XcursorNoticeCreateBitmap (dpy=0x0, pid=140737488333808, width=4294945792, height=384) at xlib.c:132 #6 0x00007ffff1ae2d41 in XCreatePixmap (dpy=dpy@entry=0x921710, d=656, width=width@entry=32, height=height@entry=32, depth=depth@entry=1) at CrPixmap.c:61 #7 0x00007ffff1ae1b91 in XCreateBitmapFromData (display=0x921710, d=<optimized out>, data=0xac3760 '\377' <repeats 37 times>, "\373\377\377\377\375\377\377\377\377\377\377\377\376\377\377\377\347\377\377\377\367\377\377\377\377\377\377\377\377\337\377\377\377\337\377\377\367\377\377\377\356\377\377\377\337\373\377\377\375\277\377\377\373\337\377\377\357\367\377\377\177\376", '\377' <repeats 29 times>, width=32, height=32) at CrBFData.c:56 #8 0x00007ffff739db6f in QX11PixmapData::createBitmapFromImage(QImage const&) () from /lib64/libQtGui.so.4 #9 0x00007ffff739dc63 in QX11PixmapData::bitmapFromImage(QImage const&) () from /lib64/libQtGui.so.4 #10 0x00007ffff739e232 in QX11PixmapData::fromImage(QImage const&, QFlags<Qt::ImageConversionFlag>) () from /lib64/libQtGui.so.4 #11 0x00007ffff739cfb3 in qt_toX11Pixmap(QImage const&) () from /lib64/libQtGui.so.4 #12 0x00007ffff739d9c7 in qt_toX11Pixmap(QPixmap const&) () from /lib64/libQtGui.so.4 #13 0x00007ffff733a745 in QCursorData::setBitmap(QBitmap const&, QBitmap const&, int, int) () from /lib64/libQtGui.so.4 #14 0x00007ffff72c722c in QCursor::QCursor(QPixmap const&, int, int) () from /lib64/libQtGui.so.4 #15 0x0000000000502692 in nmc::DkEditableRect::DkEditableRect(QRectF, QWidget*, QFlags<Qt::WindowType>) () #16 0x0000000000502c07 in nmc::DkCropWidget::DkCropWidget(QRectF, QWidget*, QFlags<Qt::WindowType>) () #17 0x00000000005182e4 in nmc::DkControlWidget::DkControlWidget(nmc::DkViewPort*, QFlags<Qt::WindowType>) () #18 0x000000000051a3b9 in nmc::DkViewPort::DkViewPort(QWidget*, QFlags<Qt::WindowType>) () #19 0x000000000056fe6b in nmc::DkNoMacsIpl::DkNoMacsIpl(QWidget*, QFlags<Qt::WindowType>) () #20 0x000000000048dd80 in main () (gdb) frame 1 #1 0x00007ffff1b0c43a in XrmQGetResource (db=0x8ea230, names=names@entry=0x7fffffffabf0, classes=classes@entry=0x7fffffffac00, pType=pType@entry=0x7fffffffabec, pValue=pValue@entry=0x7fffffffac10) at Xrm.c:2549 2549 _XLockMutex(&db->linfo); So fixing this in SDL-1.2 is not really fix. Is Fedora concerned about issues with nVidia proprietary driver or should I just move all this to nVidia forums? I don't know much about OpenGL in X11. There are various paths (direct, indirect etc.) how to access OpenGL implementation in the card, so I'm not sure where to reassign this issue. I even don't know whether X11 OpenGL implementation is allowed to use threads. Maybe it's just an undefined behaviour. I think Fedora is not concerned much about proprietary drivers, but it's still good to have the possibility to use them. You should raise your question to nVidia support too. I will reassign this to libX11 hoping its maintainer will know more. Whoops. Found the problem. Some time ago, out of curiosity, I put this into my profile. export __GL_THREADED_OPTIMIZATIONS=1 Removing it or setting it to 0 fixes the problem for me. Sorry for the noise. This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |