Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128192 - Nvu segmentation fault during launch
Summary: Nvu segmentation fault during launch
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 18:44 UTC by Mickey
Modified: 2006-03-31 15:13 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 Mickey 2006-03-30 18:44:36 UTC
Simple Summary:

Nvu fails to run. 

Steps:

1. emerge nvu
2. emerged             [ ok seems normal]
3.#: nvu               [ run nvu]
4.error: /usr/lib/nvu/run-mozilla.sh: line 159: 12245 Segmentation fault      "$prog"
${1+"$@"}  

results: Fails to launch.
expected: To launch.

More details:

I am unable at this time to lead you up to sequence of verbose output. It installs fine, that is no errors  during  the: ./configure   make make install stages. It just fails to run  trying to start nvu. Read the exact error  few lines down. 

as in my email (for reposting):

Hello,


I am having a problem running both stable and unstable versions of  nvu.
Logically I went with the  "emerge nvu" just to get the latest stable version. It compiled normally and all seemed well. Later  decided to see if the issue has
been fixed in the masked version. It still compiled well but  refuses to run
tried so many times.  My C flags  seem to be not extreme. It should run with
gentoo default  make.conf (make.conf file is listed below after this error.)  


It refuses to run:

#:  nvu
/usr/lib/nvu/run-mozilla.sh: line 159: 12245 Segmentation fault      "$prog"
${1+"$@"}

My system:

# emerge --info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
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/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/myname/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3dfx 3dnow 3dnowext 3ds 7zip X a52 aac aalib acpi activefilter adsl aim aimextras alsa alsa-oss alsa-tools alsa-utils amarok amd ansi aotuv apache2 apm aqua_theme arts asf asm asterisk async atk atlas audiofile avalon avi bash-completion bcmath berkdb bigpatch bitmap-fonts bittorrent bl blas bootsplash brltty bzip2 c++ cacheemu ccache cdda cdio cdparanoia cdr cdrom cg cli cpudetection cpulimit cracklib crypt css csv ctype cups curl dar32 dar64 dba dbus dga dhcp dict dio directfb disk-cache dnd dnsdb dpms dv dvb dvd dvdr dvdread dxr3 dynagraph eds elibc_glibc emacs-w3 emboss emoticon encode esd ethereal exif expat extensions extraicons extramodules fam fame fastbuild fat fax fbsplash festival ffmpeg firefox flac fltk font-server fontconfig foomaticdb force-cgi-redirect fortran fpx ftp gd gdb gdbm gg gif gimp gimpprint ginac gkrellm glibc-compat20 glibc-omitfp glitz glut glx gmp gnome gnome-print gnomecanvas gnomedb gnutls gphoto2 gpm gps grammar graphicsmagick graphviz gs gsl gstreamer gtalk gtk gtk2 gtkhtml gtkspell guile hardened html icq id3 idn ieee1394 image imagemagick imap imlib imlib2 immqt-bc inifile insecure-savers irc jabber java javascript jp2 jpeg jpeg2k kcal kde kdeenablefinal kdepim kdgraphics kerberos kernel_linux kexi key-screen keyscrub kig-scripting kipi kqemu lame lcms ldap libcaca libg++ libtommath libvisual libwww live lm_sensors lmtp logitech-mouse lzo lzw mad mail maildir math mbox mem-cache memlimit mikmod mime ming mixer mjpeg mmx mmxext mng modperl modplug mono motif mozilla moznocompose moznoirc moznomail moznoxft mozsvg mp3 mpeg mpeg2 mplayer msn msnextras musicbrainz mysql mythtv ncurses network nforce2 nls nntp no-opts noamazon nocd noexperimental nptl ntfs nvidia ogg ogre openexr opengl openssl oscar oss pam pango parse-clocks pascal pcre pda pdf pdflib pear perl pheaders plugin png pop pop3d posix ppds pppd print python qt quicktime radius rar readline real reiser4 reiserfs rss samba scanner screen sdl sensord session simplexml slang sndfile soap sockets softfax sounds speech spell spl sql ssl subtitles subversion svga syslog tagwriting tcltk tcpd theora thesaurus thumbnail tidy tiff timidity tokenizer tomsfastmath transcode truetype truetype-fonts type1 type1-fonts udev usb userland_GNU v4l v4l2 videos vidix visualization vnc voice vorbis wifi win32codecs wma wma123 wmf wv wxgtk1 wxwindows x264 x86 xanim xchat xchattext xcomposite xext xine xinerama xml xml2 xpm xprint xscreensaver xsl xv xvid zlib"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 22:24:03 UTC
Please, read the following howto and reopen with a backtrace. Until then, nothing we could do here, sorry.

http://www.gentoo.org/doc/en/bugzilla-howto.xml
Comment 2 Mickey 2006-03-30 23:49:20 UTC
Ok, thanks for the info  I am reemerging with: FEATURES="nostrip"  in order to pass through gdb. To be able to get the debugging info. Will open a new bug report after but first.

Question:

Nvu  "nvu" itself does not seem to be an executable. Where would I be able to  get the actual  binary? Would it be by any  chance (as locate shows): /usr/lib/nvu/nvu-bin
 ?

"Nvu" seems  to be some sort of script.

Thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-31 00:19:24 UTC
(In reply to comment #2)
> Ok, thanks for the info  I am reemerging with: FEATURES="nostrip"  in order to
> pass through gdb. To be able to get the debugging info. Will open a new bug
> report after but first.

No need to open a new bug, reopen this one once ready. You'll need something like

CFLAGS="-O1 -pipe -g -ggdb"
CXXFLAGS="${CFLAGS}"

as well to be able to provide some useful info.

> Nvu  "nvu" itself does not seem to be an executable. Where would I be able to 
> get the actual  binary? Would it be by any  chance (as locate shows):
> /usr/lib/nvu/nvu-bin

Yeah, /usr/bin/nvu is just a wrapper to set up env variables, otherwise nvu moans about non-writeable location.
Comment 4 Mickey 2006-03-31 15:13:53 UTC
I finally had the time to follow the guide. It was followed very closly. Please take the time to review what I did and did not do correctly.

so far:

1. Changed the use flags in /etc/make.conf to:
  CFLAGS="-march=i686 -O2 -pipe -g -ggdb"

2. reemerged nvu:
FEATURES="nostrip" emerge nvu

3.  Run into my  first problem (perhaps due to my knowledge in debugging?):

localhost nvu # gdb  run  /usr/lib/nvu/nvu-bin
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...run: No such file or directory.

"/usr/lib/nvu/nvu-bin" is not a core dump: File format not recognized
(gdb)


Try it again:

(gdb) exec-file  /usr/lib/nvu/nvu-bin    [ seems to take it?]
(gdb)


seems the binary starts to run but the  output seems sparse?

(gdb) run  nvu-bin
Starting program: /usr/lib/nvu/nvu-bin nvu-bin
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
/usr/lib/nvu/nvu-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory

Program exited with code 0177.
(gdb)

try to get stack:

(gdb) bt
No stack.
(gdb)

(gdb) q

So what should be changed ?  It does not seem to even run long enough to produce any stack.



(gdb) q