Bug 65127 - sigsev after 'su' command
Summary: sigsev after 'su' command
Status: RESOLVED DUPLICATE of bug 65537
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.2.3
Platform: Slackware Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 65125 65917 66780 68128 75043 82751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-28 20:45 UTC by i.szubka
Modified: 2008-05-06 16:56 UTC (History)
6 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 i.szubka 2003-09-28 20:45:49 UTC
Version:           1.2.3 (using KDE KDE 3.1.4)
Installed from:    Slackware Packages
Compiler:          gcc 3.2.3 
OS:          Linux

after 'su' command writing or any command trying to read files with no read-permission konsole crashes. below is a backtrace.
regards
ireo

(no debugging symbols found)...0x40f545c9 in waitpid ()
   from /lib/libpthread.so.0
#0  0x40f545c9 in waitpid () from /lib/libpthread.so.0
#1  0x4063f9ed in KCrash::defaultCrashHandler(int) ()
   from /opt/kde/lib/libkdecore.so.4
#2  0x40f52c45 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
#3  0x410b6988 in __libc_sigaction () from /lib/libc.so.6
#4  0x409448c5 in QPainter::drawTextItem(int, int, QTextItem const&, int) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#5  0x409445e5 in QPainter::drawText(int, int, QString const&, int, int, QPainter::TextDirection) () from /usr/lib/qt/lib/libqt-mt.so.3
#6  0x4094420a in QPainter::drawText(int, int, QString const&, int, QPainter::TextDirection) () from /usr/lib/qt/lib/libqt-mt.so.3
#7  0x4143c172 in TEWidget::drawAttrStr(QPainter&, QRect, QString&, ca const*, bool, bool) () from /opt/kde/lib/konsole.so
#8  0x4143d05e in TEWidget::setImage(ca const*, int, int) ()
   from /opt/kde/lib/konsole.so
#9  0x4144bda9 in TEmulation::showBulk() () from /opt/kde/lib/konsole.so
#10 0x4144a626 in TEmulation::qt_invoke(int, QUObject*) ()
   from /opt/kde/lib/konsole.so
#11 0x41443894 in TEmuVt102::qt_invoke(int, QUObject*) ()
   from /opt/kde/lib/konsole.so
#12 0x409dae50 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#13 0x409dac84 in QObject::activate_signal(int) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#14 0x40cf4a3b in QTimer::timeout() () from /usr/lib/qt/lib/libqt-mt.so.3
#15 0x409fc242 in QTimer::event(QEvent*) () from /usr/lib/qt/lib/libqt-mt.so.3
#16 0x40980035 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#17 0x4097f6eb in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#18 0x405c2c89 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde/lib/libkdecore.so.4
#19 0x4096fa6b in QEventLoop::activateTimers() ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#20 0x4092dbb4 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#21 0x40993276 in QEventLoop::enterLoop() () from /usr/lib/qt/lib/libqt-mt.so.3
#22 0x40993118 in QEventLoop::exec() () from /usr/lib/qt/lib/libqt-mt.so.3
#23 0x40980281 in QApplication::exec() () from /usr/lib/qt/lib/libqt-mt.so.3
#24 0x41416cf2 in main () from /opt/kde/lib/konsole.so
#25 0x0804cbe1 in strcpy ()
#26 0x0804da09 in strcpy ()
#27 0x0804de8c in strcpy ()
#28 0x0804ec3a in strcpy ()
#29 0x410a2d06 in __libc_start_main () from /lib/libc.so.6
Comment 1 Stephan Kulow 2003-09-28 21:34:05 UTC
*** Bug 65125 has been marked as a duplicate of this bug. ***
Comment 2 Waldo Bastian 2003-09-30 11:42:28 UTC
Do you enter the su-command after konsole has started, or do you pass the su-
command via the -e comman dline option of konsole? 
 
What do you mean with "trying to read files with no read-permission" ? 
Comment 3 i.szubka 2003-10-11 09:51:06 UTC
Subject: Re:  sigsev after 'su' command

Dnia wto 30. wrze
Comment 4 Thiago Macieira 2003-10-28 23:17:15 UTC
*** Bug 65917 has been marked as a duplicate of this bug. ***
Comment 5 Thiago Macieira 2003-10-28 23:17:48 UTC
*** Bug 66780 has been marked as a duplicate of this bug. ***
Comment 6 Thiago Macieira 2003-11-14 00:00:13 UTC
*** Bug 68128 has been marked as a duplicate of this bug. ***
Comment 7 Stephan Binner 2004-02-12 20:52:01 UTC
*** Bug 75043 has been marked as a duplicate of this bug. ***
Comment 8 wy2lam 2004-03-07 03:34:34 UTC
I'm encountering a crash with the exact identical stack trace, also running under Slackware 9.1's KDE 3.1.4 package.

When I tried to perform

more /etc/gconf/schemas/gkb.schemas Konsole crashes right away before any output.

Then I tried to more another file, clock.schemas.  It displays the first page of the contents of the file (it is bigger than 1 screen so I have to press space for more), and then Konsole crashed immediately after the keypress, with the same stacktrace.  The same thing happens with the command cat and less.

What's interesting, when I tred some other file it did not crash. (remote.schemas), and, if I only 'head' clock.schemas, it also does not crash.

These results are reproduceable consistently.  I suspect that it has something to do with 8-bit characters.  I start KDE with LC_ALL=zh_TW.UTF-8 startx, if it helps.
Comment 9 wy2lam 2004-03-07 03:45:42 UTC
Regardless of previous messages about permissions - I don't think it has something to do with permissions, because the files I'm trying to read, I have read permissions on them.

All the above operations when performed under xterm, produces the expected results.

I have tried some other files, themus.schemas.  When I 'tail' the file, it displays correctly, even the Chinese characters.  In fact, 'tail' on all the above files generate the expected result.

So it can be something related to displaying a UTF-8 character where a font is not found, or something like that.

One last observation: when I set LC_ALL to C, Konsole does not crash AT ALL when displaying these files.

Hope it helps.
Comment 10 wy2lam 2004-04-13 08:35:24 UTC
Doesn't happen on 3.2.1 anymore.  Good work...
Comment 11 Waldo Bastian 2004-06-07 22:37:21 UTC
*** Bug 82751 has been marked as a duplicate of this bug. ***
Comment 12 Waldo Bastian 2004-06-07 22:38:29 UTC

*** This bug has been marked as a duplicate of 65537 ***