https://bugs.kde.org/show_bug.cgi?id=402220

            Bug ID: 402220
           Summary: KPat crashes when "Change Appearance" is selected
           Product: kpat
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: co...@kde.org
          Reporter: awil...@adelielinux.org
                CC: kde-games-b...@kde.org
  Target Milestone: ---

Created attachment 116955
  --> https://bugs.kde.org/attachment.cgi?id=116955&action=edit
Screenshot

SUMMARY
KPat crashes when any user of Adélie Linux (based on musl libc) attempts to use
the Change Appearance dialog.


STEPS TO REPRODUCE
1. Open KPat.
2. Choose Tools -> Change Appearance, or press the F10 key.

OBSERVED RESULT
Thread 6 "PreviewThread" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 31799]
0x00003ffff6b367f0 in fetchTransformedBilinear64<(TextureBlendType)4>
(buffer=0x3fffeaf68418, data=0x100763428, y=0, x=0, length=74) at
painting/qdrawhelper.cpp:2967
2967    painting/qdrawhelper.cpp: No such file or directory.
(gdb) bt
#0  0x00003ffff6b367f0 in fetchTransformedBilinear64<(TextureBlendType)4>
(buffer=0x3fffeaf68418, data=0x100763428, y=0, x=0, length=74) at
painting/qdrawhelper.cpp:2967
#1  0x00003ffff6b4186c in BlendSrcGenericRGB64::fetch (len=74, y=0, x=0,
this=0x3fffeaf64378) at painting/qdrawhelper.cpp:4054
#2  handleSpans<BlendSrcGenericRGB64> (count=256, spans=0x3fffeaf6c710,
data=<optimized out>, handler=...) at painting/qdrawhelper.cpp:3967
#3  0x00003ffff6b409e8 in blend_src_generic_rgb64 (count=<optimized out>,
spans=0x3fffeaf6c710, userData=0x100763428) at painting/qdrawhelper.cpp:4081
#4  0x00003ffff6b3b0dc in qBlendTexture (count=<optimized out>,
spans=0x3fffeaf6c710, userData=0x100763428) at painting/qdrawhelper.cpp:5347
#5  0x00003ffff6b6bcf0 in qt_span_fill_clipRect (count=<optimized out>,
spans=0x3fffeaf6c710, userData=0x100763428) at
painting/qpaintengine_raster.cpp:4099
#6  0x00003ffff6bde020 in QSpanBuffer::flushSpans (this=0x3fffeaf6c700) at
painting/qrasterizer.cpp:111
#7  QSpanBuffer::addSpan (coverage=<optimized out>, y=85, len=<optimized out>,
x=<optimized out>, this=0x3fffeaf6c700) at painting/qrasterizer.cpp:105
#8  QRasterizer::rasterizeLine (this=0x10074d7c0, a=..., b=...,
width=<optimized out>, squareCap=<optimized out>) at
painting/qrasterizer.cpp:917
#9  0x00003ffff6b75b2c in QRasterPaintEngine::drawImage (this=0x100763000,
r=..., img=..., sr=...) at painting/qpaintengine_raster.cpp:2423
#10 0x00003ffff6b9aca8 in QPainter::drawImage (this=0x3fffeaf6d840,
targetRect=..., image=..., sourceRect=..., flags=...) at
painting/qpainter.cpp:5477
#11 0x00003ffff5c10364 in QPainter::drawImage (image=..., r=...,
this=0x3fffeaf6d840) at /usr/include/QtGui/qpainter.h:848
#12 QSvgImage::draw (this=0x101092a40, p=0x3fffeaf6d840, states=...) at
qsvggraphics.cpp:137
#13 0x00003ffff5c3cd94 in QSvgG::draw (this=0x1010926a0, p=0x3fffeaf6d840,
states=...) at qsvgstructure.cpp:71
#14 0x00003ffff5c3cd94 in QSvgG::draw (this=0x101092440, p=0x3fffeaf6d840,
states=...) at qsvgstructure.cpp:71
#15 0x00003ffff5c477c0 in QSvgTinyDocument::draw (this=0x1007ef200,
p=0x3fffeaf6d840, id=..., bounds=...) at qsvgtinydocument.cpp:304
#16 0x00003ffff5c4a580 in QSvgRenderer::render (this=<optimized out>,
painter=<optimized out>, elementId=..., bounds=...) at qsvgrenderer.cpp:399
#17 0x00003ffff7e60858 in PreviewThread::run (this=0x10075b520) at
/usr/src/packages/user/kpat/src/kpat-18.08.3/libkcardgame/kcardthemewidget.cpp:104
#18 0x00003ffff61b3c88 in QThreadPrivate::start (arg=0x10075b520) at
thread/qthread_unix.cpp:368
#19 0x00003ffff7fa276c in start (p=0x3fffeaf6da78) at
src/thread/pthread_create.c:147
#20 0x00003ffff7fae608 in __clone () at src/thread/powerpc64/clone.s:43



EXPECTED RESULT
The dialog to work properly.


SOFTWARE/OS VERSIONS
Linux: 4.14.76
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.52.0
Qt Version: 5.9.7

ADDITIONAL INFORMATION
This occurs on PowerPC and x86.  We haven't had any reports from ARM users yet.
 This seems like a regression; kpat 18.04 didn't seem have this issue.

It does draw the current card deck before it crashes; attached is a screenshot
showing where the window stops drawing when running KPat under gdb.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to