Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74579 - sci-calculators/galculator-1.2.4 segfault
Summary: sci-calculators/galculator-1.2.4 segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://galculator.sourceforge.net/dow...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 18:15 UTC by Marcelo Goes (RETIRED)
Modified: 2005-05-09 09:00 UTC (History)
2 users (show)

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


Attachments
Patch against galculator-1.2.4 which adds '-export-dynamic' to the linker (export-dynamic.patch,257 bytes, patch)
2005-05-04 14:15 UTC, Jim Ramsay (lack) (RETIRED)
Details | Diff
New ebuild which uses the export-dynamic.patch (galculator-1.2.4-r1.ebuild,835 bytes, text/plain)
2005-05-04 14:16 UTC, Jim Ramsay (lack) (RETIRED)
Details
galculator gmodule patch (galculator-1.2.4-gmodule.patch,407 bytes, patch)
2005-05-07 08:37 UTC, John N. Laliberte (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Goes (RETIRED) gentoo-dev 2004-12-15 18:15:24 UTC
The last version of galculator available on Portage is 1.2.3. The last version is 1.2.4. I tested renaming the ebuild and it worked. Please update.
Comment 1 Kenyon Ralph 2005-01-14 12:07:08 UTC
I can confirm, I just renamed the ebuild and sci-calculators/galculator-1.2.4 is working fine here on ~x86.
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2005-03-12 15:56:08 UTC
Was assigned to wrong herd...
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-05-01 16:21:00 UTC
bumped in tree
Comment 4 Olliver Schinagl 2005-05-02 16:03:39 UTC
Don't know what you guys did with this ebuild, but it suddenly no longer works after doing an emerge -avuD world.

(galculator:21983): libglade-WARNING **: could not find signal handler 'on_dec_activate'.
<snip>
(galculator:22079): libglade-WARNING **: could not find signal handler 'on_mplus_button_clicked'.

(galculator:22079): libglade-CRITICAL **: glade_xml_get_widget: assertion `self != NULL' failed
Segmentation fault


(Yes libglade was also updated ... So i guess I'll post this bug there aswell?) I'll try a reboot (sounds pathetic I know) to maybe remove an old version from memory maybe.
Comment 5 Marcelo Goes (RETIRED) gentoo-dev 2005-05-03 06:54:57 UTC
Reopening bug on account of comment #4.
Comment 6 John N. Laliberte (RETIRED) gentoo-dev 2005-05-03 19:12:50 UTC
a new bug should have been opened for this, not reopened since this bug was about a version bump.

are you having issues with the bump vanquirius? 

or did you reopen purely b/c of comment 4?

Can node repost with whether ~ galculator build works for him after his reboot?
Comment 7 Marcelo Goes (RETIRED) gentoo-dev 2005-05-04 11:40:33 UTC
I reopened the bug solely on account of comment #4.
node, please open a new bug next time, it is easier for us to track.
Comment 8 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-04 13:35:03 UTC
I experienced the same problem in 'glurp' after upgrading libglade and other packages.  I found a fix for glurp (Bug 91482) and I assume the galculator fix should be similar - Just make sure that '-export-dynamic' is being passed to the linker.

If I have time I may write a patch/new ebuild for this.
Comment 9 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-04 14:15:56 UTC
Created attachment 58068 [details, diff]
Patch against galculator-1.2.4 which adds '-export-dynamic' to the linker

This patch is for use with the galculator-1.2.4-r1.ebuild also attached to this
bug.  It should go in sci-calculators/galculator/files/
Comment 10 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-04 14:16:49 UTC
Created attachment 58069 [details]
New ebuild which uses the export-dynamic.patch

This ebuild requires the patch also attached to this bug.
Comment 11 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-04 14:18:02 UTC
This fix works for me.  Galculator can work again.

I have also submitted my patch to galculator-general@lists.sourceforge.net
Comment 12 John N. Laliberte (RETIRED) gentoo-dev 2005-05-04 14:26:05 UTC
I have no problems running the version bumped galculator.  What version is libglade for you?  Are you running anything else unstable?  Have you tried re-merging the package after you upgraded the libglade / other things ?  As always, please provide your emerge info.
Comment 13 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-04 14:41:12 UTC
As you can see from the following 'emerge info' I am running ~x86 with latest GCC and everything.  My libglade version is 2.5.1.  I did try downgrading libglade to both 2.4.2 and 2.4.0 with no change in galculator's behaviour.  I also tried an earlier compiler (gcc-3.3.5) also with no effect.

I'm not sure which package (of the many I recently upgraded with 'emerge -uD world') would have been the cause, but I expected either libglade or gcc.  By adding the '-export-dynamic' flag to the linker with my patch, the problem went away.

emerge info:

Portage 2.0.51.21 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0,                           2.6.11-gentoo-r1 i686)
=================================================================
System uname: 2.6.11-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.11
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
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/lib/                          mozilla/defaults/pref /usr/share/config /var /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://cs.ubishops.ca/pub/gentoo                           ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp://gentoo.risq.qc.ca/"
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="x86 X aac alsa apache2 apm avi berkdb bitmap-fonts cdr cjk crypt cups curl                           eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif gimpprint gnome gp                          m gstreamer gtk gtk2 imagemagick imap imlib java jpeg kde ldap libg++ libwww mad                           mikmod mmx mmx2 motif mozilla mp3 mpeg mysql ncurses nls nptl ogg oggvorbis ope                          ngl oss pam pdflib perl php png python qt quicktime readline real samba sasl sdl                           spell sse ssl svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts                           vorbis xml2 xprint xv zlib userland_GNU kernel_linux libc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 14 foser (RETIRED) gentoo-dev 2005-05-05 04:38:09 UTC
what version of pkgconfig are you using ? If it's 0.17 then go back to 0.15 and try rebuild libglade/galculator with that.
Comment 15 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-05 06:56:58 UTC
pkg-config --version returns:
0.15.0
Comment 16 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-05 14:53:21 UTC
Recieved email from Simon Floery (via galculator-general@lists.sourceforge.net):

> Thanks a lot for your contribution! From time to time this problem
> arose in the past but no user, who encountered it, was able to track it down.
> I asked someone who recently reported this problem to try your patch and
> everything works fine now.
>
> I'll update the build process and kick out a new release of galculator ASAP.

The fix I submitted shouldn't affect the basic gentoo ebuild, so the next version bump should get this fixed.
Comment 17 John N. Laliberte (RETIRED) gentoo-dev 2005-05-05 16:10:50 UTC
great, thanks for contacting upstream.  i'll keep an eye out for the new release upstream, if you see it first, please post here.
Comment 18 John N. Laliberte (RETIRED) gentoo-dev 2005-05-07 08:36:31 UTC
okay, heres *hopefully* a good fix for both galculator and glurp.  foser did some research and found a good thread that describes the problem more in detail:
http://mail.gnome.org/archives/desktop-devel-list/2005-January/msg00037.html

foser made good comments and suggested this patch.

Jim, if you could test this patch against galculator, that would be great.  Please post back with the results.
Comment 19 John N. Laliberte (RETIRED) gentoo-dev 2005-05-07 08:37:50 UTC
Created attachment 58273 [details, diff]
galculator gmodule patch
Comment 20 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-09 08:07:26 UTC
This patch also works perfectly, no complaints here.
Comment 21 John N. Laliberte (RETIRED) gentoo-dev 2005-05-09 08:23:56 UTC
okay, a new bug was filed today for the new version of galculator, so i will be testing / committing that shortly.  Also, in the new version it looks like they incorporated your patch, but I think that the one I previously attached is a better way of doing it.  Either way, with the new version, the patch should not be needed.  Thanks for testing!
Comment 22 Jim Ramsay (lack) (RETIRED) gentoo-dev 2005-05-09 08:34:36 UTC
I think either solution is valid.  It's now up to the software developer to include the '-export-dynamic' in cases like this, so whether they do it by explicitly asking pkg-config to provide 'gmodule-2.0' instead of 'gmodule-no-export-2.0' (your patch), or by explicitly specifying '-export-dynamic' in their own LDFLAGS (my patch), the right thing happens.
Comment 23 John N. Laliberte (RETIRED) gentoo-dev 2005-05-09 09:00:24 UTC
committed 1.2.5