You are not logged in.

#1 2010-04-20 14:20:36

BarefootSoul83
Member
From: Virginia, USA
Registered: 2009-10-07
Posts: 110
Website

xiphos / sword -- segmentation fault

I am running in xfce
I just installed xiphos and sword
when you start xiphos you get a gui that helps you connect to their server to get the "exrtras"... but then:

---------------------------------------------------------------------
[donald@ToshibaLaptop ~]$ xiphos

(xiphos:2711): Gdk-CRITICAL **: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed

(xiphos:2711): Gdk-CRITICAL **: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed
Segmentation fault
[donald@ToshibaLaptop ~]$
-----------------------------------------------------------------------------

seg fault.... sad

I've tried this as root as well...same thing...
I also read some threads and tried changing my icon theme...
didnt work with that fix either...

anyone got a workaround or a fix??

Thanks smile

Offline

#2 2010-04-20 20:56:43

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: xiphos / sword -- segmentation fault

Could you try the following patch and let me know if it works for you? It's only a temporary solution, since it introduces a memory leak, but only a small one.

--- sword-1.6.1/src/mgr/curlftpt.cpp    2009-12-04 08:54:06.000000000 +0000
+++ sword-1.6.1/src/mgr/curlftpt.cpp.ew    2010-04-20 22:39:12.000000000 +0100
@@ -136,9 +137,9 @@
     
     if (session) {
 
-        struct MyProgressData pd;
-        pd.sr = statusReporter;
-        pd.term = &term;
+        struct MyProgressData* pd = new MyProgressData ();
+        pd->sr = statusReporter;
+        pd->term = &term;
 
         curl_easy_setopt(session, CURLOPT_URL, sourceURL);
     
@@ -148,7 +149,7 @@
         if (!passive)
             curl_easy_setopt(session, CURLOPT_FTPPORT, "-");
         curl_easy_setopt(session, CURLOPT_NOPROGRESS, 0);
-        curl_easy_setopt(session, CURLOPT_PROGRESSDATA, &pd);
+        curl_easy_setopt(session, CURLOPT_PROGRESSDATA, pd);
         curl_easy_setopt(session, CURLOPT_PROGRESSFUNCTION, my_fprogress);
         curl_easy_setopt(session, CURLOPT_DEBUGFUNCTION, my_trace);
         /* Set a pointer to our struct to pass to the callback */

Last edited by grey (2010-04-20 20:58:28)


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#3 2010-04-21 07:04:52

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: xiphos / sword -- segmentation fault

According to sword developers, the bug is fixed in SVN. They also suggested a better patch:

--- src/mgr/curlftpt.cpp        (revision 2505)
+++ src/mgr/curlftpt.cpp        (revision 2506)
@@ -177,6 +177,9 @@
                res = curl_easy_perform(session);
                SWLog::getSystemLog()->logDebug("***** Finished performing curl easy action. \n");
 
+               // it seems CURL tries to use this option data later for some reason, so we unset here
+               curl_easy_setopt(session, CURLOPT_PROGRESSDATA, (void*)NULL);
+
                if(CURLE_OK != res) {
                        retVal = -1;
                }

Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#4 2010-04-25 20:05:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: xiphos / sword -- segmentation fault

patch applied.

Offline

#5 2010-04-26 12:12:31

laurief
Member
Registered: 2009-12-12
Posts: 5

Re: xiphos / sword -- segmentation fault

Hi Stefan - any chance of an update for the i686 repo ? - thanks smile

Offline

#6 2010-04-26 20:00:24

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: xiphos / sword -- segmentation fault

I was able to get the Bibletime working, and the problem is in libsword: just do a dmesg and it will state a general protection fault with libsword; not Bibletime or Xiphos.
I used the Bibletime-svn (PKGBUILD) from AUR (I didn't want to install a ~1GB of KDE files, so I used svn).  This is one of the i686/x86_64 PKGBUILD.  Then I just left libsword which was recently updated in x86_64.  It only took xiphos one step further and still failed with segmentation fault.  However, I had Ubuntu still laying around with Bibletime on it, to fetch my libsword files with, they can had with the ftp.crosswire.org/pub/sword/raw site.  But they don't work without a matching mods.d entry.  So to reflect the modules I actually had, I just tar'ed the files under the modules and the files under the mods.d directories and transplanted them to the arch installation.  It works correctly now and I don't have to boot under windows to use the recently released Bibletime (win32), but it could be used to fetch the libsword files (the actual texts) and then put in the ~/.sword or the /usr/share/sword directories.  ---  Strangely enough, that's all it took for xiphos to start up without asking for module updates.   ---

Last edited by nomorewindows (2010-04-26 20:32:54)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2010-04-29 17:12:29

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: xiphos / sword -- segmentation fault

The latest version isn't patched correctly - see http://bugs.archlinux.org/task/19292
The patch in this thread (post #3) works.
Instead of the directions above just get the PKGBUILD and replace the faulty patch.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#8 2010-05-02 23:55:00

laurief
Member
Registered: 2009-12-12
Posts: 5

Re: xiphos / sword -- segmentation fault

Thanks all for the help and updates smile

Offline

#9 2010-05-12 21:08:38

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: xiphos / sword -- segmentation fault

The newest sword works correctly sword 1.6.1-4
pacman -S xiphos works correctly all the way now.

Last edited by nomorewindows (2010-05-12 21:09:15)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#10 2010-08-02 02:14:10

kyle_white
Member
Registered: 2009-09-15
Posts: 13

Re: xiphos / sword -- segmentation fault

Hopefully this isn't too old to comment on. Maybe someone else will come across this and it will fix their problem.

I ran across this and several other threads trying to fix a segfault with Xiphos. In my case I needed to install xulrunner (I use firefox-branded-bin which doesn't install Arch's xulrunner).

P.S. - Another option, which I ended up using eventually, is to makepkg replacing the --with-gecko=libxul-embedding with --without-gecko

Last edited by kyle_white (2010-08-02 06:17:24)

Offline

Board footer

Powered by FluxBB