View previous topic :: View next topic |
Author |
Message |
suslik Tux's lil' helper

Joined: 03 Jul 2005 Posts: 133
|
Posted: Wed May 31, 2006 8:12 pm Post subject: [SOLVED (-ffast-math)] openoffice-bin: Segmentation fault. |
|
|
$ 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 |
|
 |
psycepa Veteran


Joined: 27 Dec 2004 Posts: 1637 Location: Poland
|
Posted: Wed May 31, 2006 8:52 pm Post subject: |
|
|
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 |
|
 |
suslik Tux's lil' helper

Joined: 03 Jul 2005 Posts: 133
|
Posted: Wed May 31, 2006 9:17 pm Post subject: |
|
|
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 |
|
 |
psycepa Veteran


Joined: 27 Dec 2004 Posts: 1637 Location: Poland
|
Posted: Wed May 31, 2006 10:44 pm Post subject: |
|
|
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 |
|
 |
suslik Tux's lil' helper

Joined: 03 Jul 2005 Posts: 133
|
Posted: Thu Jun 01, 2006 7:02 am Post subject: |
|
|
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 |
|
 |
fangorn Veteran


Joined: 31 Jul 2004 Posts: 1886
|
Posted: Thu Jun 01, 2006 7:56 am Post subject: |
|
|
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 |
|
 |
Chin Yee n00b

Joined: 31 Jul 2003 Posts: 48
|
Posted: Sat Jun 03, 2006 9:46 am Post subject: Openoffice-bin-2.0.2 seq. fault when starting from KDE-3.5.3 |
|
|
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 |
|
 |
suslik Tux's lil' helper

Joined: 03 Jul 2005 Posts: 133
|
Posted: Sat Jun 03, 2006 11:46 am Post subject: |
|
|
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 |
|
 |
Chin Yee n00b

Joined: 31 Jul 2003 Posts: 48
|
|
Back to top |
|
 |
suslik Tux's lil' helper

Joined: 03 Jul 2005 Posts: 133
|
Posted: Sat Jun 10, 2006 1:49 pm Post subject: |
|
|
a problem is still actual |
|
Back to top |
|
 |
n0rbi666 l33t


Joined: 04 Mar 2005 Posts: 707 Location: \Poland\Krakow
|
Posted: Sat Jun 10, 2006 2:57 pm Post subject: |
|
|
suslik - do you use kde ? if so, try to recompile kdelibs without -ffast-math |
|
Back to top |
|
 |
suslik Tux's lil' helper

Joined: 03 Jul 2005 Posts: 133
|
Posted: Mon Jun 12, 2006 10:56 pm Post subject: |
|
|
Thank You, after emerge kdelibs kdeartwork-styles without -ffast-math (gcc-4.1.1) : work is fine |
|
Back to top |
|
 |
SteveBallmersChair Tux's lil' helper


Joined: 12 Jul 2006 Posts: 84 Location: Being thrown around in Redmond
|
Posted: Fri Sep 08, 2006 3:18 pm Post subject: |
|
|
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 |
|
 |
SteveBallmersChair Tux's lil' helper


Joined: 12 Jul 2006 Posts: 84 Location: Being thrown around in Redmond
|
Posted: Sun Sep 10, 2006 1:22 pm Post subject: |
|
|
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 |
|
 |
sheldonh n00b


Joined: 14 Sep 2004 Posts: 59
|
Posted: Tue Oct 10, 2006 5:39 am Post subject: |
|
|
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 |
|
 |
SteveBallmersChair Tux's lil' helper


Joined: 12 Jul 2006 Posts: 84 Location: Being thrown around in Redmond
|
Posted: Tue Oct 10, 2006 12:10 pm Post subject: |
|
|
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 |
|
 |
|