Bug 189613 - kpat crashed with SIGSEGV in Solver::unpack_position() during game
Summary: kpat crashed with SIGSEGV in Solver::unpack_position() during game
Status: RESOLVED WORKSFORME
Alias: None
Product: kpat
Classification: Applications
Component: solver (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-14 14:04 UTC by Jonathan Thomas
Modified: 2011-01-24 12:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thomas 2009-04-14 14:04:12 UTC
Version:           3.1 (using 4.2.2 (KDE 4.2.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-5-generic

A user originally reported this crash during the middle of a game here: https://launchpad.net/bugs/360857

The backtrace is as follows:

.
Thread 2 (process 12432):
#0  0xb8097430 in __kernel_vsyscall ()
#1  0xb66daae7 in *__GI___poll (fds=0x8fd8918, nfds=4, timeout=699)
    at ../sysdeps/unix/sysv/linux/poll.c:87
	resultvar = <value optimized out>
	oldtype = 0
	result = <value optimized out>
#2  0xb60b274b in IA__g_poll (fds=0x8fd8918, nfds=4, timeout=699)
    at /build/buildd/glib2.0-2.20.1/glib/gpoll.c:127
No locals.
#3  0xb60a4f82 in g_main_context_iterate (context=0x8eb8710, block=1, 
    dispatch=1, self=0x8eb6648)
    at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2761
	max_priority = 2147483647
	timeout = 699
	some_ready = <value optimized out>
	nfds = 4
	allocated_nfds = <value optimized out>
	fds = (GPollFD *) 0x8fd8918
	__PRETTY_FUNCTION__ = "g_main_context_iterate"
#4  0xb60a5268 in IA__g_main_context_iteration (context=0x8eb8710, 
    may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
	retval = <value optimized out>
#5  0xb69ff438 in QEventDispatcherGlib::processEvents (this=0x8eb3e90, flags=
      {i = -1081396216}) at kernel/qeventdispatcher_glib.cpp:323
	d = (QEventDispatcherGlibPrivate * const) 0x8eb65e0
	canWait = true
	result = <value optimized out>
#6  0xb6f473f5 in QGuiEventDispatcherGlib::processEvents (this=0x8eb3e90, 
    flags={i = -1081396168}) at kernel/qguieventdispatcher_glib.cpp:202
	d = (QGuiEventDispatcherGlibPrivate * const) 0x8eb65e0
	returnValue = 252
#7  0xb69d206a in QEventLoop::processEvents (this=0xbf8b34b0, flags=
      {i = -1081396104}) at kernel/qeventloop.cpp:149
	d = (QEventLoopPrivate * const) 0x8fd8a18
#8  0xb69d24aa in QEventLoop::exec (this=0xbf8b34b0, flags={i = -1081396040})
    at kernel/qeventloop.cpp:200
	d = (QEventLoopPrivate * const) 0x8fd8a18
#9  0xb69d4959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
	threadData = (QThreadData *) 0x8eaed20
	eventLoop = {<QObject> = {_vptr.QObject = 0xb6ac67a8, 
    static staticMetaObject = {d = {superdata = 0x0, 
        stringdata = 0xb6a6ebc0 "QObject", data = 0xb6a6ec60, 
        extradata = 0xb6ac21b8}}, d_ptr = 0x8fd8a18, 
    static staticQtMetaObject = {d = {superdata = 0x0, 
        stringdata = 0xb6a783a0 "Qt", data = 0xb6a7b280, extradata = 0x0}}}, 
  static staticMetaObject = {d = {superdata = 0x80abbd0, 
      stringdata = 0xb6a80040 "QEventLoop", data = 0xb6a80060, 
      extradata = 0x0}}}
	returnCode = -1
#10 0xb6ea5da7 in QApplication::exec () at kernel/qapplication.cpp:3553
No locals.
#11 0x08058ce7 in main (argc=3, argv=0xbf8b37b4)
    at /build/buildd/kdegames-4.2.2/kpat/main.cpp:180
	aboutData = {d = 0x8eb1a70}
	options = {d = 0x8eb5d88}
	args = (KCmdLineArgs *) 0x8eb6180
	application = {<QApplication> = {<QCoreApplication> = {<QObject> = {
        _vptr.QObject = 0xb7c6bcc8, static staticMetaObject = {d = {
            superdata = 0x0, stringdata = 0xb6a6ebc0 "QObject", 
            data = 0xb6a6ec60, extradata = 0xb6ac21b8}}, d_ptr = 0x8eb6468, 
        static staticQtMetaObject = {d = {superdata = 0x0, 
            stringdata = 0xb6a783a0 "Qt", data = 0xb6a7b280, 
            extradata = 0x0}}}, static staticMetaObject = {d = {
          superdata = 0x80abbd0, stringdata = 0xb6a800c0 "QCoreApplication", 
          data = 0xb6a80160, extradata = 0x0}}, static self = 0xbf8b3540}, 
    static staticMetaObject = {d = {superdata = 0xb6ac67e4, 
        stringdata = 0xb7568080 "QApplication", data = 0xb7568280, 
        extradata = 0x0}}}, static staticMetaObject = {d = {
      superdata = 0xb7733108, stringdata = 0xb7c44060 "KApplication", 
      data = 0xb7c44200, extradata = 0x0}}, static loadedByKdeinit = false, 
  static KApp = 0xbf8b3540, d = 0x8efbc98}
	savegame = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 6419}, alloc = 0, size = 0, data = 0x80abdda, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 73}, 
    alloc = 0, size = 0, data = 0xb6ac8a6e, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0xb6ac8a5c, static codecForCStrings = 0x0}
	ok = false
	wanted_game = -1
.
Thread 1 (process 12675):
#0  Solver::unpack_position (this=0x95a58a0, pos=0xac89d70)
    at /build/buildd/kdegames-4.2.2/kpat/patsolve/patsolve.cpp:417
	i = 0
	w = 6
	l = (BUCKETLIST *) 0x955e218
#1  0x080834d8 in Solver::dequeue_position (this=0x95a58a0)
    at /build/buildd/kdegames-4.2.2/kpat/patsolve/patsolve.cpp:858
	last = <value optimized out>
	pos = (POSITION *) 0xac89d70
	qpos = 15
	minpos = 8
#2  0x08084cb5 in Solver::doit (this=0x95a58a0)
    at /build/buildd/kdegames-4.2.2/kpat/patsolve/patsolve.cpp:638
	i = <value optimized out>
	pos = (POSITION *) 0x0
	m = {card_index = -1, from = 0 '\0', to = 0 '\0', totype = 0, 
  pri = 0 '\0', turn_index = -1}
#3  0x08084d13 in Solver::patsolve (this=0x95a58a0, _max_positions=-1)
    at /build/buildd/kdegames-4.2.2/kpat/patsolve/patsolve.cpp:929
No locals.
#4  0x0805fe64 in SolverThread::run (this=0x9258fc0)
    at /build/buildd/kdegames-4.2.2/kpat/dealer.cpp:141
No locals.
#5  0xb68df96e in QThreadPrivate::start (arg=0x9258fc0)
    at thread/qthread_unix.cpp:189
	data = (QThreadData *) 0x95aad00
#6  0xb61a34ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb66e549e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.
Comment 1 Parker Coates 2010-05-04 16:45:09 UTC
Are you able to recreate this crash with a newer version of KPat?

As it's only been reported once in the last year, I'm wondering if the issues has already been fixed inadvertently.
Comment 2 Stephan Kulow 2011-01-24 12:45:27 UTC
very likely broken system