Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2003 20:46:34 -0400
From:      Alexander Kabaev <kabaev@mail.ru>
To:        freebsd-threads@freebsd.org
Subject:   konsole triggers infinite SIGABRT loop in libkse
Message-ID:  <20030526204634.4c0cfee6.kabaev@mail.ru>

next in thread | raw e-mail | index | archive | help
There is a simple way to trigger an infinite loop in konsole with
libkse. Sometimes konsole tries to chown the pty is has created and
fails with the following message:

konsole: cannot chown /dev/ttyp9.
Reason: Operation not permitted

It tries to abort() itself afterwards, entering the infinite loop, see
backtrace below. Apparently, _thr_sig_handler simply calls itself over
and over again.

#1  0x29118c82 in _thr_sig_handler (sig=6, info=0xbfbfea90,
ucp=0xbfbfe7d0)
    at /usr/download/rtld/lib/libpthread/thread/thr_sig.c:190
190                                     (*(sigfunc))(sig, info, ucp);
<skipped>
#32572 0x29118c82 in _thr_sig_handler (sig=6, info=0xbfbfea90,
ucp=0xbfbfe7d0)
    at /usr/download/rtld/lib/libpthread/thread/thr_sig.c:190
190                                     (*(sigfunc))(sig, info, ucp);
#32573 0x29118c82 in _thr_sig_handler (sig=6, info=0xbfbfea90,
ucp=0xbfbfe7d0)
    at /usr/download/rtld/lib/libpthread/thread/thr_sig.c:190
190                                     (*(sigfunc))(sig, info, ucp);
#32574 <signal handler called>
#32575 0x2917e353 in kill () from /usr/lib/libc.so.5
#32576 0x2809cb57 in TEPty::makePty(bool) () from
/usr/local/lib/konsole.so
#32577 0x2809cbea in TEPty::startPgm(char const*, QValueList<QCString>&,
char const*) () from /usr/local/lib/konsole.so
#32578 0x2809d3ea in TEPty::commSetupDoneC() () from
/usr/local/lib/konsole.so
#32579 0x287647fd in KProcess::start(KProcess::RunMode,
KProcess::Communication) () from /usr/local/lib/libkdecore.so.5
#32580 0x2809c415 in TEPty::run(char const*, QStrList&, char const*,
bool, char const*, char const*) () from /usr/local/lib/konsole.so
#32581 0x280c0c39 in TESession::run() () from /usr/local/lib/konsole.so
#32582 0x280c2a45 in TESession::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/konsole.so
#32583 0x28ae9bd8 in QObject::activate_signal(QConnectionList*,
QUObject*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#32584 0x28db0a2f in QSignal::signal(QVariant const&) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#32585 0x28b02fd8 in QSignal::activate() () from
/usr/X11R6/lib/libqt-mt.so.3
#32586 0x28b09d03 in QSingleShotTimer::event(QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
<.. all the way to main()>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030526204634.4c0cfee6.kabaev>