Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130759 - app-editors/nvu-1.0-r4 crashes randomly
Summary: app-editors/nvu-1.0-r4 crashes randomly
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-21 11:51 UTC by Aniruddha Shankar
Modified: 2006-09-24 00:12 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 Aniruddha Shankar 2006-04-21 11:51:29 UTC
I use nvu off and on, and I've noticed occasional crashes. One of the machines I have runs as a debug machine - it's compiled from the ground up with debugging support and nostrip. I used nvu on this machine, editing the /usr/bin/nvu shell script to enable debug output and invoking nvu as "nvu -g", as reported in http://snipurl.com/piht .

Sure enough, nvu crashed again and I ran bt in the gdb window to capture the crash. 

Something was wrong, though because the stack trace I got does not give any helpful information. This is not because of some stripped or non-debug library, since ALL of "system" and almost all of "world" is compiled with -g -ggdb -ggdb3, FEATURES=+nostrip.

I've googled but the nvudev.org forums are horribly unorganised. I can't believe there's no public bug tracker or public information on debugging nvu. 

Here's the information I was able to glean:

karim@splat ~ $ nvu -g
+ moz_libdir=/usr/lib/nvu
+ MRE_HOME=/usr/lib/mre/mre
+ found=0
+ progname=/usr/bin/nvu
++ dirname /usr/bin/nvu
+ curdir=/usr/bin
+ run_moz=/usr/bin/run-mozilla.sh
+ test -x /usr/bin/run-mozilla.sh
++ /bin/pwd
+ here=/home/karim
+ '[' -h /usr/bin/nvu ']'
+ cd /home/karim
+ '[' 0 = 0 ']'
+ '[' -x /usr/lib/nvu/run-mozilla.sh ']'
+ dist_bin=/usr/lib/nvu
+ script_args=
+ moreargs=
+ debugging=0
+ MOZILLA_BIN=nvu-bin
+ '[' linux-gnu = beos ']'
+ '[' 1 -gt 0 ']'
+ case "$1" in
+ script_args=' -g'
+ debugging=1
+ shift
+ '[' 0 -gt 0 ']'
+ export MRE_HOME
+ eval 'set -- '
++ set --
+ '[' 1 = 1 ']'
+ echo /usr/lib/nvu/run-mozilla.sh -g /usr/lib/nvu/nvu-bin
/usr/lib/nvu/run-mozilla.sh -g /usr/lib/nvu/nvu-bin
+ exec /usr/lib/nvu/run-mozilla.sh -g /usr/lib/nvu/nvu-bin
MOZILLA_FIVE_HOME=/usr/lib/nvu
  LD_LIBRARY_PATH=/usr/lib/nvu:/usr/lib/nvu/plugins:/usr/lib/mre/mre
DISPLAY=:0.0
DYLD_LIBRARY_PATH=/usr/lib/nvu:/usr/lib/mre/mre
     LIBRARY_PATH=/usr/lib/nvu:/usr/lib/nvu/components:/usr/lib/mre/mre
       SHLIB_PATH=/usr/lib/nvu:/usr/lib/mre/mre
          LIBPATH=/usr/lib/nvu:/usr/lib/mre/mre
       ADDON_PATH=/usr/lib/nvu
      MOZ_PROGRAM=/usr/lib/nvu/nvu-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
which: no ddd in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.03
/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/opt/sancho:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/NX/bin:/usr/games/bin)
/usr/bin/gdb /usr/lib/nvu/nvu-bin -x /tmp/mozargs14044
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"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/lib/nvu/nvu-bin
[Thread debugging using libthread_db enabled]
[New Thread -1220057408 (LWP 14057)]
[New Thread -1222566992 (LWP 14065)]
[New Thread -1244476496 (LWP 14074)]
[New Thread -1252869200 (LWP 14075)]
[New Thread -1262912592 (LWP 14076)]
[New Thread -1271305296 (LWP 14077)]
[New Thread -1280152656 (LWP 14078)]
[New Thread -1289942096 (LWP 14086)]
[Thread -1289942096 (LWP 14086) exited]
[Thread -1244476496 (LWP 14074) exited]
[Thread -1262912592 (LWP 14076) exited]
[Thread -1280152656 (LWP 14078) exited]
[Thread -1271305296 (LWP 14077) exited]
[New Thread -1271305296 (LWP 14159)]
[New Thread -1280152656 (LWP 14161)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220057408 (LWP 14057)]
0x081abb5e in ?? ()
(gdb) bt
#0  0x081abb5e in ?? ()
#1  0xbfac1164 in ?? ()
#2  0xbfac1164 in ?? ()
#3  0xbfac110c in ?? ()
#4  0xbfabe58d in ?? ()
#5  0xb7f26578 in ?? () from /usr/lib/nvu/libxpcom.so
#6  0xb32ffd20 in nsIControllerContext::GetIID()::iid () from /usr/lib/nvu/components/libeditor.so
#7  0x005b5784 in ?? ()
#8  0x88786878 in ?? ()
#9  0x400876c5 in ?? ()
#10 0xad0876c5 in ?? ()
#11 0x54000001 in ?? ()
#12 0x88000002 in ?? ()
#13 0x8808b0fc in ?? ()
#14 0x0908b0fc in ?? ()
#15 0xad000000 in ?? ()
#16 0x90000001 in ?? ()
#17 0xadb76e6f in ?? ()
#18 0x09000001 in ?? ()
#19 0x08000000 in ?? ()
#20 0xe0000000 in ?? ()
#21 0xad08af5d in ?? ()
#22 0xf4000001 in ?? ()
#23 0x20b76f0f in ?? ()
#24 0x00b76f28 in ?? ()
#25 0xf8087b5b in ?? ()
#26 0xffbfabe5 in ?? ()
#27 0x20b76275 in ?? ()
#28 0x00b76f28 in ?? ()
#29 0xa8087b5b in ?? ()
#30 0x00b79561 in ?? ()
#31 0xd8087b5b in ?? ()
#32 0x9b08b184 in ?? ()
#33 0x00b7626c in ?? ()
#34 0x60087b5b in ?? ()
#35 0x18b7ad41 in ?? ()
#36 0xe1bfabe6 in ?? ()
#37 0x00b7a72d in ?? ()
#38 0x30087b5b in ?? ()
---Type <return> to continue, or q <return> to quit---
#39 0x0fb7a72f in ?? ()
#40 0x60000000 in ?? ()
#41 0x60b7ad41 in ?? ()
#42 0xd8b7ad41 in ?? ()
#43 0x980889fc in ?? ()
#44 0xbdbfabe6 in ?? ()
#45 0x00b7a79a in ?? ()
#46 0x00087b5b in ?? ()
#47 0xdc087b5b in ?? ()
#48 0x1808898a in ?? ()
#49 0x88000000 in ?? ()
#50 0x5408898b in ?? ()
#51 0x8808b551 in ?? ()
#52 0x69bfabe6 in ?? ()
#53 0xf4b76276 in ?? ()
#54 0x20b76f0f in ?? ()
#55 0x00b76f28 in ?? ()
#56 0x90000000 in ?? ()
#57 0x3cb76e6f in ?? ()
#58 0x20b76298 in ?? ()
#59 0x10b76f28 in ?? ()
#60 0xa8000000 in ?? ()
#61 0x10b79561 in ?? ()
#62 0xf4000000 in ?? ()
#63 0x20b76f0f in ?? ()
#64 0xd8b76f28 in ?? ()
#65 0x980889fc in ?? ()
#66 0xffbfabe6 in ?? ()
#67 0x20b76275 in ?? ()
#68 0xd8b76f28 in ?? ()
#69 0xa80889fc in ?? ()
#70 0xd8b79561 in ?? ()
#71 0xd80889fc in ?? ()
#72 0xd208b184 in ?? ()
#73 0xd8b79010 in ?? ()
#74 0x600889fc in ?? ()
#75 0xb8b7ad41 in ?? ()
#76 0xe1bfabe6 in ?? ()
#77 0xd8b7a72d in ?? ()
---Type <return> to continue, or q <return> to quit---
#78 0xd80889fc in ?? ()
#79 0x900889fc in ?? ()
#80 0x00b7a79d in ?? ()
#81 0x60000000 in ?? ()
#82 0xd8b7ad41 in ?? ()
#83 0xf80889fc in ?? ()
#84 0x07bfabe6 in ?? ()
#85 0xd8b7a79d in ?? ()
#86 0xd80889fc in ?? ()
#87 0x010889fc in ?? ()
#88 0xb4000000 in ?? ()
#89 0xacb6203f in ?? ()
#90 0x01088988 in ?? ()
#91 0xf8000000 in ?? ()
#92 0x6bbfabe6 in ?? ()
#93 0xacb5e384 in ?? ()
#94 0x00088988 in ?? ()
#95 0x00000000 in ?? ()
(gdb)
(gdb) bt
#0  0x081abb5e in ?? ()
#1  0xbfac1164 in ?? ()
#2  0xbfac1164 in ?? ()
#3  0xbfac110c in ?? ()
#4  0xbfabe58d in ?? ()
#5  0xb7f26578 in ?? () from /usr/lib/nvu/libxpcom.so
#6  0xb32ffd20 in nsIControllerContext::GetIID()::iid () from /usr/lib/nvu/components/libeditor.so
#7  0x005b5784 in ?? ()
#8  0x88786878 in ?? ()
#9  0x400876c5 in ?? ()
#10 0xad0876c5 in ?? ()
#11 0x54000001 in ?? ()
#12 0x88000002 in ?? ()
#13 0x8808b0fc in ?? ()
#14 0x0908b0fc in ?? ()
#15 0xad000000 in ?? ()
#16 0x90000001 in ?? ()
#17 0xadb76e6f in ?? ()
#18 0x09000001 in ?? ()
#19 0x08000000 in ?? ()
#20 0xe0000000 in ?? ()
#21 0xad08af5d in ?? ()
#22 0xf4000001 in ?? ()
#23 0x20b76f0f in ?? ()
#24 0x00b76f28 in ?? ()
#25 0xf8087b5b in ?? ()
#26 0xffbfabe5 in ?? ()
#27 0x20b76275 in ?? ()
#28 0x00b76f28 in ?? ()
#29 0xa8087b5b in ?? ()
#30 0x00b79561 in ?? ()
#31 0xd8087b5b in ?? ()
#32 0x9b08b184 in ?? ()
#33 0x00b7626c in ?? ()
#34 0x60087b5b in ?? ()
#35 0x18b7ad41 in ?? ()
#36 0xe1bfabe6 in ?? ()
#37 0x00b7a72d in ?? ()
#38 0x30087b5b in ?? ()
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) q
The program is running.  Exit anyway? (y or n) y


splat ~ # equery u nvu
[ Searching for packages matching nvu... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for app-editors/nvu-1.0-r4 ]
 U I
 + + debug    : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
 + + gnome    : Adds GNOME support
 - - ipv6     : Adds support for IP version 6
 - - moznoxft : placeholder until mozilla eclass is modified for nvu
 + + truetype : Adds support for FreeType and/or FreeType2 fonts
 - - xinerama : Add support for the xinerama X11 extension, which allows you to stretch your display across multiple monitors
 + + xprint   : Support for xprint, http://www.mozilla.org/projects/xprint/

splat ~ # emerge info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 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=athlon-xp -O2 -pipe -g -ggdb -ggdb3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -g -ggdb -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks nostrip sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.channelx.biz/ http://ftp.isu.edu.tw/pub/Linux/Gentoo http://mymirror.asiaosc.org/gentoo/ http://mirror.averse.net/pub/gentoo/"
LINGUAS="hi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/store/portmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib abook acl acpi alsa apache2 apm artworkextra audiofile avi bash-completion bashlogger berkdb bitmap-fonts bjam bl bonobo bzip2 cairo cdda cddb cdio cdparanoia cdr cgi cli commercial crypt css ctype cups curl dba debug dhcp dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam ffmpeg firefox flac font-server foomaticdb gd gdbm gif gkrellm glibc-omitfp glut gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn imagemagick imap imlib innodb isdnlog jack java javascript jpeg junit kde kdeenablefinal kdexdeltas lcms libcaca libg++ libwww lm_sensors logrotate mad mbox md5sum mhash mmx mmxext mng motif mozilla mozsvg mp3 mpeg mplayer musicbrainz mysql nas ncurses nls nptl nsplugin nvidia offensive ogg oggvorbis openal opengl oss pam pcre pdflib pdo-external perl pic png pppd python qt quicktime rar readline real reflection rtc sdl session simplexml slang sndfile snmp soap socks5 speex spell spl sqlite sse sse2 ssl stream subp subtitles svg svga symlink tcltk tcpd tga theora threads tidy tiff toolbar transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vcd visualization vlm vorbis win32codecs wmf wxwindows xine xml xml2 xmms xorg xosd xprint xscreensaver xsl xv xvid xvmc zeroconf zlib linguas_hi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS


splat ~ # ls -l /usr/lib/nvu/nvu-bin
-rwxr-xr-x 1 root root 2132029 Apr 17 04:57 /usr/lib/nvu/nvu-bin
splat ~ # file /usr/lib/nvu/nvu-bin
/usr/lib/nvu/nvu-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped


I would appreciate any pointers on how to further resolve this.

Thanks for your time,

Aniruddha Shankar
New Delhi
Comment 1 Jory A. Pratt 2006-06-24 18:30:02 UTC
get a backtrace using /usr/lib/nvu/nvu-bin instead of invoking the bash script.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-24 00:12:51 UTC
We need a backtrace, see above.

http://www.gentoo.org/proj/en/qa/backtraces.xml