Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED (-ffast-math)] openoffice-bin: Segmentation fault.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
suslik
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 133

PostPosted: Wed May 31, 2006 8:12 pm    Post subject: [SOLVED (-ffast-math)] openoffice-bin: Segmentation fault. Reply with quote

$ oocalc2
/usr/lib/openoffice/program/soffice: line 236: 3270 Segmentation fault "$sd_prog/$sd_binary" "$@"
strace oocalc2 -> is here
I can not decide 2 days - on 2th computers
revdep-rebuild, fix_libtool.sh, java-config -S blackdown-jdk-1.4.2.03 - is fine, perl-cleaner allmodules - worked


Last edited by suslik on Tue Jun 13, 2006 12:00 am; edited 2 times in total
Back to top
View user's profile Send private message
psycepa
Veteran
Veteran


Joined: 27 Dec 2004
Posts: 1637
Location: Poland

PostPosted: Wed May 31, 2006 8:52 pm    Post subject: Reply with quote

which exactly version of gcc ?
_________________
RLUNo. 376073
bo czytac, to trzeba ze zrozumieniem (c) by psycepa
"nigdy nie kloc sie z glupcem, najpierw sprowadzi cie do swojego poziomu a potem pokona doswiadczeniem"
"Life is complex. It has its real and imaginary part."
Back to top
View user's profile Send private message
suslik
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 133

PostPosted: Wed May 31, 2006 9:17 pm    Post subject: Reply with quote

sys-devel/gcc-4.1.1 USE="fortran gtk nls objc -bootstrap -build -doc -gcj -hardened -ip28 -ip32r10k% -mudflap -multislot -nocxx -objc++ -objc-gc -vanilla"

# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,objc,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)

CFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -ftree-vectorize -ffast-math -funroll-loops -fomit-frame-pointer -fvisibility-inlines-hidden -falign-functions=64 -fPIC -DPIC"

FEATURES="-strict buildpkg prelink ccache"
Back to top
View user's profile Send private message
psycepa
Veteran
Veteran


Joined: 27 Dec 2004
Posts: 1637
Location: Poland

PostPosted: Wed May 31, 2006 10:44 pm    Post subject: Reply with quote

you can find solution in here
_________________
RLUNo. 376073
bo czytac, to trzeba ze zrozumieniem (c) by psycepa
"nigdy nie kloc sie z glupcem, najpierw sprowadzi cie do swojego poziomu a potem pokona doswiadczeniem"
"Life is complex. It has its real and imaginary part."
Back to top
View user's profile Send private message
suslik
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 133

PostPosted: Thu Jun 01, 2006 7:02 am    Post subject: Reply with quote

emerge --unmerge emul-linux-x86-glibc
--- Couldn't find 'emul-linux-x86-glibc' to unmerge

I have a processor of sempron-2200 (32bit)

emerge -pv glibc
sys-libs/glibc-2.4-r3 USE="nls nptl nptlonly -build -glibc-omitfp -hardened -profile"
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Thu Jun 01, 2006 7:56 am    Post subject: Reply with quote

I dont know if this will help, it is a shot in the dark.

Did you follow the gcc upgrade guide when switching to 4.1.1? I dont know with which gcc version openoffice-bin is compiled, but I am pretty sure it is not 4.1.1, so you may need some older libstdc for compatibility reasons.
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
Chin Yee
n00b
n00b


Joined: 31 Jul 2003
Posts: 48

PostPosted: Sat Jun 03, 2006 9:46 am    Post subject: Openoffice-bin-2.0.2 seq. fault when starting from KDE-3.5.3 Reply with quote

For me Open Office applications still works fine after upgrading from GCC-3.4.6 to GCC-4.1.1, but it start seq. faulting after I upgraded from KDE-3.5.2 to KDE-3.5.3. It only happened when I try to launch openoffice applications after logging in to KDE. If I were to log out of KDE and login to ICEWM, openoffice applications work flawlessly.
Back to top
View user's profile Send private message
suslik
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 133

PostPosted: Sat Jun 03, 2006 11:46 am    Post subject: Reply with quote

today I noticed that OpenOffice normally starts from under Xfce4 ... never thought that window manager can so strange influence to work
recompile KDE as kde-meta - and problem did not change
Back to top
View user's profile Send private message
Chin Yee
n00b
n00b


Joined: 31 Jul 2003
Posts: 48

PostPosted: Tue Jun 06, 2006 11:39 am    Post subject: Reply with quote

I have filed a bug report at

https://bugs.gentoo.org/show_bug.cgi?id=135611
Back to top
View user's profile Send private message
suslik
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 133

PostPosted: Sat Jun 10, 2006 1:49 pm    Post subject: Reply with quote

a problem is still actual
Back to top
View user's profile Send private message
n0rbi666
l33t
l33t


Joined: 04 Mar 2005
Posts: 707
Location: \Poland\Krakow

PostPosted: Sat Jun 10, 2006 2:57 pm    Post subject: Reply with quote

suslik - do you use kde ? if so, try to recompile kdelibs without -ffast-math
Back to top
View user's profile Send private message
suslik
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2005
Posts: 133

PostPosted: Mon Jun 12, 2006 10:56 pm    Post subject: Reply with quote

Thank You, after emerge kdelibs kdeartwork-styles without -ffast-math (gcc-4.1.1) : work is fine
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Fri Sep 08, 2006 3:18 pm    Post subject: Reply with quote

n0rbi666 wrote:
suslik - do you use kde ? if so, try to recompile kdelibs without -ffast-math


I'll try that as during my upgrade from 2006.0 -> 2006.1, KDE also got bumped to 3.5.4 from 3.5.2 along with GCC going from 3.4.6 to 4.1.1 on this x86 box. I have just about no "extra" optimizations in this machine's make.conf- just -sse, -sse2, -fomit-frame-pointer and -mfpmath=sse along with the -ffast-math that I just took out. It's even still -O2. My AMD64 box has a ton more tweaks (I followed AMD's A64 programmers' guide for the highest performing GCC CFLAGS) and it hasn't given me a lick of trouble. I wonder why? x86 is supposed to be older and more stable than AMD64...
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Sun Sep 10, 2006 1:22 pm    Post subject: Reply with quote

Hmm. After I re-emerge kdelibs without -ffast-math, then OpenOffice segfaults but brings up the KDE Crash Handler instead of failing silently. After re-emerging kdeartwork-styles, I get the OO splash screen and then a window pops up and disappears. OO then dies.

Perhaps re-emerging all of KDE will work...
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
sheldonh
n00b
n00b


Joined: 14 Sep 2004
Posts: 59

PostPosted: Tue Oct 10, 2006 5:39 am    Post subject: Reply with quote

SteveBallmersChair wrote:
Hmm. After I re-emerge kdelibs without -ffast-math, then OpenOffice segfaults but brings up the KDE Crash Handler instead of failing silently. After re-emerging kdeartwork-styles, I get the OO splash screen and then a window pops up and disappears. OO then dies.

Perhaps re-emerging all of KDE will work...


I got to this point too.

I fired up soffice.bin inside of gdb, and the segfault occurred inside openssl code. I rebuilt openssl without -ffast-math, and openoffice _finally_ started.

So in conclusion, the following packages must be rebuilt with -ffast-math stripped from CFLAGS:

kde-base/kdelibs
kde-base/kdeartwork-styles
dev-libs/openssl

Thanks for your work on this, hope my contribution makes a difference.
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Tue Oct 10, 2006 12:10 pm    Post subject: Reply with quote

I got it to work after re-emerging system without -ffast-math and since there was also a couple of libssl updates during that time, I bet that I got libssl re-emerged without -ffast-math at some point. And yes, your contributions ARE appreciated and needed- Linux is by and large a community-based venture, and without the community, it dies.
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum