crosswire / xiphos

Xiphos is a Bible study tool written for Linux, UNIX, and Windows using GTK, offering a rich and featureful environment for reading, study, and research using modules from The SWORD Project and elsewhere.
http://xiphos.org
GNU General Public License v2.0
208 stars 51 forks source link

Crash (Segmentation Fault) on startup II #74

Closed xiphos-bug-inhaler closed 8 years ago

xiphos-bug-inhaler commented 20 years ago

I use Fedora Core 1, with latest up2date packages and kernel 2.4.22-1.2135.nptl

I have compilled gnomesword2 without any problems.

gnomesword2-2.0.0

gtkhtml3-devel-3.0.9-5 libgal2-devel-1.99.10-2 libgnomeprint22-devel libgnomeprintui22-devel-2.4.0

sword-1.5.6-1 (from bibletime packages sources) (bibletime works witout problems with it)

It crash everytime in startup with Segmentation fault

Output from LDD

$ ldd /usr/local/bin/gnomesword2

    libgtkhtml-3.0.so.2 =>

/usr/lib/libgtkhtml-3.0.so.2 (0x07c44000) libgtkhtml-a11y-3.0.so.2 => /usr/lib/libgtkhtml-a11y-3.0.so.2 (0x00549000) libgnomeprintui-2-2.so.0 => /usr/lib/libgnomeprintui-2-2.so.0 (0x00564000) libgal-2.0.so.5 => /usr/lib/libgal-2.0.so.5 (0x076dd000) libgal-a11y-2.0.so.5 => /usr/lib/libgal-a11y-2.0.so.5 (0x00543000) libgnomeprint-2-2.so.0 => /usr/lib/libgnomeprint-2-2.so.0 (0x07800000) libsword.so.3 => /usr/lib/libsword.so.3 (0x008cb000) libcurl.so.2 => /usr/lib/libcurl.so.2 (0x006f8000) libssl.so.4 => /lib/libssl.so.4 (0x001a3000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x00d01000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x001da000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00101000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x00cfc000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x0016a000) libresolv.so.2 => /lib/libresolv.so.2 (0x00ab3000) libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0x0044a000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x0018c000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x001ed000) libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0x003e6000) libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0x004da000) libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0x0761c000) libpopt.so.0 => /usr/lib/libpopt.so.0 (0x00bf1000) libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x00bd9000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00508000) libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0x07632000) libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0x00204000) libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0x07689000) libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4 (0x006be000) libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0x0066e000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x005a3000) libglade-2.0.so.0 => /usr/lib/libglade-2.0.so.0 (0x0052c000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x07317000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00238000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x009f1000) libz.so.1 => /usr/lib/libz.so.1 (0x009d4000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00333000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x005e3000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x003a0000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x003b3000) libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x003d7000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x005a8000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00bfb000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00cf6000) libdl.so.2 => /lib/libdl.so.2 (0x008c6000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00b6e000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00c30000) libm.so.6 => /lib/tls/libm.so.6 (0x008a2000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00cec000) libc.so.6 => /lib/tls/libc.so.6 (0x00767000) libgailutil.so.17 => /usr/lib/libgailutil.so.17 (0x0055b000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00ae9000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00a03000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00b48000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x060af000) libesd.so.0 => /usr/lib/libesd.so.0 (0x00df4000) libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x005fd000) libORBitCosNaming-2.so.0 => /usr/lib/libORBitCosNaming-2.so.0 (0x0072e000) librt.so.1 => /lib/tls/librt.so.1 (0x00589000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0074f000) libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x009a6000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x00194000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00622000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x00630000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x0099c000) libexpat.so.0 => /usr/lib/libexpat.so.0

(0x00ac7000)

output from gdb:

(gdb) run Starting program: /usr/local/bin/gnomesword2 [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 21365)] Bonobo accessibility support initialized GTK Accessibility Module initialized Atk Accessibilty bridge initialized gnomesword-2.0.0 sword-1.5.6 Initiating Sword

System locale is cs_CZ.UTF-8 Sword locale is cs Checking for SWORD Modules

Number of Text modules = 5 Number of Commentary modules = 0 Number of Dict/lex modules = 0 Number of Book modules = 0 Number of Percomm modules = 0 Number of Devotion modules = 0

Building GnomeSword interface Initiating GnomeSword

Displaying GnomeSword

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 21365)] 0x007db5e0 in strcpy () from /lib/libc.so.6

(gdb) The program is running. Exit anyway? (y or n) y

Setting of export LD_ASSUME_KERNEL=2.2.5 didn't help

What can I do to find solution?

Pavel Lisy

Reported by: plisy

Original Ticket: "gnomesword/bugs/73":https://sourceforge.net/p/gnomesword/bugs/73

xiphos-bug-inhaler commented 20 years ago

Logged In: YES user_id=941994

I am attaching more info from gdb

(gdb) bt

0 0x007db5e0 in strcpy () from /lib/libc.so.6

1 0x08074f47 in gui_add_history_Item (app=0x8598db0,

shortcut_bar=0x0, ref=0x8554100 "Romans 8:28") at history.c:170

2 0x08073026 in frontend_display () at gnomesword.c:180

3 0x0809100b in main (argc=0, argv=0xbfee6624) at main.c:96

Original comment by: plisy

xiphos-bug-inhaler commented 20 years ago

Logged In: YES user_id=3132

Can you repeat your test running under gdb. When it crashes, type 'bt' (for backtrace) and post the output.

I develop and run under FC1 so I'm surprised that you are seeing any issues :-(

Also please post your ~/.gnomesword-1.0/settings.xml file. It looks like you only have Bible texts installed and we could be running into a problem with your configuration of default modules.

Original comment by: andyp

xiphos-bug-inhaler commented 20 years ago

Logged In: YES user_id=3132

From IRC:

bug #869225 is the history item bug and is fixed in cvs Please try the current CVS version if you cannot wait for another release. Original comment by: andyp
xiphos-bug-inhaler commented 20 years ago

Logged In: NO

Today I reinstalled Fedora from scratch, up2date to latest rpms, compiled gnomesword2, and tried with KVJ module only, but problem (crash) was the same.

But when I installed many modules 68 Bible texts 19 Commentaries 23 Dictionary/Lexicon

It is working now. It seams, that problem appears when Commentaries or Dictionary modules are missing.

Pavel Lisy

Original comment by: nobody