Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65070 - LyX 1.3.4 - segmentationfault - built with empty CFLAGS
Summary: LyX 1.3.4 - segmentationfault - built with empty CFLAGS
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 04:16 UTC by Norman Thomas
Modified: 2005-02-01 04:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Thomas 2004-09-23 04:16:07 UTC
Today I compiled LyX several times. At first it did not work because I had the same problem as mentioned in Bug 35729 (SIGSEGV). The I followed the instructions and removed any optimizations from my CFLAGS, so to be sure I wrote CFLAGS="" in my /etc/make.conf. Anyway, it always compiled well.
But now (when compiled with CFLAGS="") when I try to run lyx I simply get a segmentationfault. How come? I had lyx running on this computer before, and it was running well. Then (for a short time) I changed to CJK-LyX and pTeX. Now I have pTeX installed, removed CJK-LyX yesterday and installed LyX today.


Reproducible: Always
Steps to Reproduce:
1. emerge lyx (with CFLAGS="")
2. lyx
3.

Actual Results:  
Segmentationfault (in German: Speicherzugriffsfehler)
LyX does not start.

Expected Results:  
LyX should start.

io ~ # emerge info
Portage 2.0.51_rc1 (gcc34-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS=""
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs nostrip sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa anthy apm arts avi berkdb bitmap-fonts bonobo canna cdr
cjk crypt cups directfb dvd dvdr encode esd fbcon flac foomaticdb freewnn gdbm
ggi gif gimpprint gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib ipv6 java jpeg
kde ldap libg++ libwww lzw-tiff mad mikmod mmx motif mozcalendar mozilla
moznocompose moznoirc mozsvg mpeg ncurses nls nptl oggvorbis opengl oss pam pda
pdflib perl png ppds python qt quicktime readline ruby samba scanner sdl skk
slang spell sse sse2 ssl svg svga tcltk tcpd tetex tiff truetype unicode usb
wifi x86 xml xml2 xmms xprint xv xvid zlib linguas_de linguas_ja"

-----------------------------------------------------

io ~ # emerge ptex xdvik lyx -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-text/ptex-3.1.3  +X -debug 0 kB 
[ebuild   R   ] app-text/xdvik-22.40y-r2  +cjk +libwww 0 kB 
[ebuild   R   ] app-office/lyx-1.3.4  +cups -debug +gnome +nls +qt 0 kB 

Total size of downloads: 0 kB
Comment 1 Norman Thomas 2004-09-25 07:18:10 UTC
i tried compiling it on another machine, made a package of it and installed the package on this machine.. works!
so maybe the problem is gcc? i still have no idea.
but, wait! i compiled it on another machine, but compiled it with distcc, so i used this and another system for compiling. and it works here without problems (yet). 
on this machine i use sys-devel/gcc-3.3.4-r1
on the other machine it's 3.3.2.
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-14 21:33:50 UTC
I suppose it's not reproduceable....
If it persists in lyx-1.3.5 and reproduceable with
specific version of gcc, please reopen. I'll try that
version of gcc and block if it doesn't work.
(at least lyx-1.3.5 compiles fine with gcc-3.4.1
and gcc-3.3.4 on my machine)
Thanks in advance.
Comment 3 John Nilsson 2005-02-01 04:05:03 UTC
Any news on this?

john@newkid ~ $ lyx

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.
Aborted
john@newkid ~ $ emerge -pv lyx

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-office/lyx-1.3.5  -cups -debug +gnome -nls -qt 0 kB

Total size of downloads: 0 kB
john@newkid ~ $ emerge --info
Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(TM) XP 1900+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 25 2005, 19:46:08)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ds.thn.htu.se/linux/gentoo http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X a52 aac alsa apache2 avi berkdb cdr crypt dts eds evo flac font-server gdbm gif gnome gstreamer gtk gtk2 hal jpeg mad mmx mmx2 mozilla mpeg nptl nvidia oggvorbis opengl pam png python rtc spell sse ssl threads tiff truetype truetype-fonts type1-fonts unicode xv xvmc zlib linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS