Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115573 - net-im/psi-0.9.3 "roster-nr" patchset causes segfaults on hardened x86
Summary: net-im/psi-0.9.3 "roster-nr" patchset causes segfaults on hardened x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 11:23 UTC by Karl-Johan Karlsson
Modified: 2006-09-24 11:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Portage overlay for net-im/psi-0.9.3-r4 without roster-nr (psi.tar.bz2,95.84 KB, application/bzip2)
2005-12-14 12:10 UTC, Karl-Johan Karlsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2005-12-14 11:23:29 UTC
When building net-im/psi-0.9.3 (any -r*) with USE="extras" on a hardened x86, it 
crashes with a segfault at startup before showing the main window. Neither 
switching GCC to a vanilla profile, adding "-fno-pie -fno-stack-protector -fno-
stack-protector-all" to CFLAGS, resetting CFLAGS to "-march=pentium3 -ggdb3 -O2 
-pipe" nor removing all PaX restrictions with paxctl changes anything.

The culprit seems to be the "roster-nr" patchset (psi-roster-nr-0.7.patch, psi-
status_indicator++_add-on_roster-nr.patch), since removing that (and changing 
most of the other patches accordingly) makes it work.

Reproducible: Always
Steps to Reproduce:




----------

(gdb) run
Starting program: /usr/bin/psi
[Thread debugging using libthread_db enabled]
[New Thread -1495578064 (LWP 26945)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1495578064 (LWP 26945)]
0xa759eff0 in QApplication::removePostedEvents () from /usr/qt/3/lib/libqt-mt.
so.3
(gdb) bt
#0  0xa759eff0 in QApplication::removePostedEvents () from /usr/qt/3/lib/libqt-
mt.so.3
#1  0xa759f0e3 in QApplication::removePostedEvents () from /usr/qt/3/lib/libqt-
mt.so.3
#2  0xa7615678 in QObject::~QObject () from /usr/qt/3/lib/libqt-mt.so.3
#3  0x0818aa16 in ~Icon (this=0xb035eba0) at iconset.cpp:404
#4  0x0834d07c in PsiActionList::Private::createMainWin (this=0x8788190) at 
psiactionlist.cpp:172
#5  0x0834b111 in Private (this=0x8788190, _list=0x8745d30, _psi=0x8738c80) at 
psiactionlist.cpp:65
#6  0x08351c3d in PsiActionList (this=0x8745d30, psi=0x8738c80) at 
psiactionlist.cpp:341
#7  0x0822d48f in PsiCon::init (this=0x8738c80) at psicon.cpp:422
#8  0x08200a28 in PsiMain::sessionStart (this=0x87390e8) at main.cpp:403
#9  0x08461896 in PsiMain::qt_invoke (this=0x87390e8, _id=3, _o=0xb035eeb0) at 
moc_main.cpp:102
#10 0xa7616e57 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#11 0xa7a1361d in QSignal::signal () from /usr/qt/3/lib/libqt-mt.so.3
#12 0xa7637b3c in QSignal::activate () from /usr/qt/3/lib/libqt-mt.so.3
#13 0xa7641dc1 in QSingleShotTimer::event () from /usr/qt/3/lib/libqt-mt.so.3
#14 0xa759f772 in QApplication::internalNotify () from /usr/qt/3/lib/libqt-mt.
so.3
#15 0xa759f9c2 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#16 0x083265d5 in PsiApplication::notify (this=0x871aee8, receiver=0x873cc00, 
event=0xb035f310) at psiapplication.cpp:178
#17 0xa758ef5c in QEventLoop::activateTimers () from /usr/qt/3/lib/libqt-mt.so.3
#18 0xa753f265 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#19 0xa75bafa1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#20 0xa75bae74 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#21 0xa759e19f in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#22 0x0820186e in main (argc=1, argv=0xb035f774) at main.cpp:496

----------

Portage 2.0.53 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-hardened 
i686)
=================================================================
System uname: 2.6.14-hardened i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -ggdb3 -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-
pointer -mmmx -msse -mfpmath=sse -frename-registers -ftracer -fweb -funit-at-a-
time"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /
usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config 
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -ggdb3 -O2 -pipe -fomit-frame-pointer -momit-leaf-
frame-pointer -mmmx -msse -mfpmath=sse -frename-registers -ftracer -fweb -funit-
at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages nostrip sandbox 
sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.se/ http://distfiles.gentoo.org http://www.
ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.se/gentoo-portage"
USE="X a52 aac acpi alsa audiofile bash-completion berkdb bzip2 cdparanoia cjk 
crypt dlloader dts dvd emacs ethereal exif expat fam flac gdbm gif glut gtk gtk2 
hal hardened idn imlib immqt jpeg kde lcms logrotate mmx mng motif mp3 ncurses 
nls nptl offensive ogg oggvorbis opengl pam pcre perl pic png python qt 
quicktime readline real samba sasl sdl spell sqlite sse ssl tcpd tga tiff 
truetype truetype-fonts udev unicode usb userlocales vorbis x86 xine xml2 xv 
xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Karl-Johan Karlsson 2005-12-14 12:10:29 UTC
Created attachment 74754 [details]
Portage overlay for net-im/psi-0.9.3-r4 without roster-nr

A quick and dirty version of net-im/psi-0.9.3-r4 with the "roster-nr" patchset
removed and patch dependencies fixed accordingly. Patches have been broken out
from psi-0.9.3-gentoo-extras-0.5.tar.bz2 and put in psi/files/patchbundle/,
hence they are in a tarball instead of as 80 separate files.

Some patches, which I didn't need, have been removed instead of fixed. See the
ebuild for details.
Comment 2 Przemyslaw Maciag (RETIRED) gentoo-dev 2006-01-13 18:20:01 UTC
Hi!

I'm author of psi-gentoo patchset - so for everything that is not working well - blain me.

I'm not interesting in keeping two patchests - for hardened gentoo and without hardened. However, I would like to try resolve your problem.

Could you try at first newest patchset? It is available here:
https://bugs.gentoo.org/show_bug.cgi?id=118743

And plz - tell us which qt version do you have?

Regards,
Przemek
Comment 3 Karl-Johan Karlsson 2006-01-21 08:27:41 UTC
I didn't see any new patchsets for 0.9.3 in bug #118743. However, the ebuild for Psi 0.10 in comment #21 works.

I'm using x11-libs/qt-3.3.4-r8.
Comment 4 Przemyslaw Maciag (RETIRED) gentoo-dev 2006-01-21 08:37:32 UTC
(In reply to comment #3)
> I didn't see any new patchsets for 0.9.3 in bug #118743. However, the ebuild
> for Psi 0.10 in comment #21 works.
Yes - there want be anything new for 0.9.3. 0.10 is now in test stage and I want to put into portage as quick as possible now. :)

Thx for the test and it's good to hear that now it works without problems.

Regards,
Przemek
Comment 5 Przemyslaw Maciag (RETIRED) gentoo-dev 2006-09-24 11:44:00 UTC
psi-0.10 is stable on all archs for some time and as Karl said it works without problems.

0.9.3 ebuilds should be cleaned up from portage in some time from now...

Regards,
Przemek