Bug 220166

Summary: KPatience crash when playing Forty & Eight [mem2chunk_check, free_check, free_array<MOVE>]
Product: [Applications] kpat Reporter: Juha Tiensyrjä <juha.tiensyrja>
Component: solverAssignee: Stephan Kulow <coolo>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, coates, cristjs, harleytaster, kde-games-bugs-null, raykubuntu, schwarzer
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Juha Tiensyrjä 2009-12-26 20:19:29 UTC
Application: kpat (3.3)
KDE Platform Version: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2))
Qt Version: 4.6.0
Operating System: Linux 2.6.31-16-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
I played some Forty & Eight with KPatience version 3.3 (using KDE SC 4.4 beta 2 from Kubuntu packages). It crashed after dealing a few cards from the deck. I could reproduce at least three times in a row.

The crash can be reproduced everytime.

 -- Backtrace:
Application: KPatience (kpat), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f8ea8694840 (LWP 12078))]

Thread 2 (Thread 0x7f8e95c50910 (LWP 12180)):
[KCrash Handler]
#5  mem2chunk_check (mem=0x2ea8c70, magic_p=0x0) at hooks.c:166
#6  0x00007f8ea4808a20 in free_check (mem=0x2ea8c70, caller=<value optimized out>) at hooks.c:279
#7  0x000000000043ec1d in free_array<MOVE> (this=0x2260fa0, parent=0x7f8e953365c8) at /build/buildd/kdegames-4.3.85/kpat/patsolve/memory.h:80
#8  Solver::solve (this=0x2260fa0, parent=0x7f8e953365c8) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:758
#9  0x000000000043f5cb in Solver::doit (this=0x2260fa0) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:658
#10 0x000000000043f627 in Solver::patsolve (this=0x2260fa0, _max_positions=<value optimized out>) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:951
#11 0x00000000004205c9 in SolverThread::run (this=0x227f0d0) at /build/buildd/kdegames-4.3.85/kpat/dealer.cpp:169
#12 0x00007f8ea55406c5 in QThreadPrivate::start (arg=0x227f0d0) at thread/qthread_unix.cpp:244
#13 0x00007f8ea52b1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#14 0x00007f8ea48707bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8ea8694840 (LWP 12078)):
#0  0x00007f8ea4864373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8ea027929a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f8ea02797d7 in ?? () from /usr/lib/libxcb.so.1
#3  0x00007f8ea0279a85 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0x00007f8ea3d86d4a in _XSend () from /usr/lib/libX11.so.6
#5  0x00007f8ea3d87271 in _XEventsQueued () from /usr/lib/libX11.so.6
#6  0x00007f8ea3d7001b in XEventsQueued () from /usr/lib/libX11.so.6
#7  0x00007f8ea62d5527 in x11EventSourcePrepare (s=0x1ee4820, timeout=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:79
#8  0x00007f8ea1b21dba in g_main_context_prepare () from /lib/libglib-2.0.so.0
#9  0x00007f8ea1b22191 in ?? () from /lib/libglib-2.0.so.0
#10 0x00007f8ea1b226c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#11 0x00007f8ea565d623 in QEventDispatcherGlib::processEvents (this=0x1e982c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#12 0x00007f8ea62d52fe in QGuiEventDispatcherGlib::processEvents (this=0x7fff47d01c10, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#13 0x00007f8ea5632972 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#14 0x00007f8ea5632d4c in QEventLoop::exec (this=0x7fff47d01f90, flags=) at kernel/qeventloop.cpp:201
#15 0x00007f8ea5636a8b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#16 0x0000000000416f1c in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kdegames-4.3.85/kpat/main.cpp:314

Reported using DrKonqi
Comment 1 Dario Andres 2009-12-28 18:47:20 UTC
This is probably related to bug 220219. Thanks
Comment 2 Dario Andres 2010-01-01 04:43:38 UTC
From bug 220219:
---
I installed kpat 4.3.85 from beta repository ppa launchpad
when I try to play after a 20-30 seconds,moving the cards the game crashes
my distro is kubuntu 9.10 qt version 4.6 compiled from sources
same results gives compiling kpat from source.
--
SOLVED reconfiguring toolbar
Comment 3 Dario Andres 2010-01-01 04:43:41 UTC
*** Bug 220219 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2010-01-01 04:44:27 UTC
This could be related to the glibc bug : bug 196207.
Check this:
- Quit KPatience
- Start Konsole
- Type "export QT_NO_GLIB=1" + Enter
- Type "export MALLOC_CHECK_=" + Enter
- Type "kpat" + Enter
- Use KPatience and check if it crashes or not
If it doesn't crash, then it is likely to be bug 196207. 
Thanks
Comment 5 Parker Coates 2010-01-06 15:57:46 UTC
*** Bug 213816 has been marked as a duplicate of this bug. ***
Comment 6 Parker Coates 2010-01-08 14:37:04 UTC
*** Bug 221748 has been marked as a duplicate of this bug. ***
Comment 7 Parker Coates 2010-01-10 21:41:27 UTC
*** Bug 222012 has been marked as a duplicate of this bug. ***
Comment 8 Juha Tiensyrjä 2010-01-24 18:09:24 UTC
This bug seems to have been fixed some time around 4.3.95. I don't see the crash anymore.
Comment 9 Parker Coates 2011-01-08 23:20:30 UTC
*** Bug 254724 has been marked as a duplicate of this bug. ***