Bug 232997

Summary: TeXmacs unusable: segfauls directly on startup
Product: [openSUSE] openSUSE 10.3 Reporter: Dieter Jurzitza <dieter.jurzitza>
Component: OtherAssignee: Anja Stock <ast>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aj, andreas.hanke, mauro.cremonini, mmarek, pgajdos
Version: Alpha 1   
Target Milestone: ---   
Hardware: i586   
OS: SUSE Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: This is to make guile-1.6.7-19 compile in userspace & prepare reusability of TeXmacs
This is required to make TeXmacs build with the old version of guile from 10.1
Accept higher version numbers of maxima
This is the specfile that includes the maxima-patch

Description Dieter Jurzitza 2007-01-09 22:03:17 UTC
Due to a too up to date guile release (more or equally recent than 1.8) TeXmacs dies immediatly after call with a message clarifying that it is incompatible with the version of guile in use.

Therefore there are three options:

1.) remove TeXmacs package as it is useless now,
2.) build, and install a second guile package at some location in /usr/local and make TeXmacs use this one.
3.) Fix TeXmacs.

Though sad, (1) is probably the easiest thing to achieve. I tried to build guile 1.6x rpm on opensuse10.2, but the compilation fails, I do not understand why. If someone is volunteering to support my efforts I would be more than happy if I can support by any means, just let me know.

This issue may but not neccessarily needs to be related to the TeXmacs bug on x64.
Comment 1 Siegfried Olschner 2007-01-10 16:02:05 UTC
Dear screening team, can you help? Thx.
Comment 2 Matej Horvath 2007-01-10 16:33:48 UTC
Please what version of TeXmacs are you using? 

temporary workaround:
If you don't need the newest guile, you can uninstall it, download the old version 
http://ftp.opensuse.org/pub/opensuse/distribution/SL-10.1/inst-source/suse/i586/guile-1.6.7-19.i586.rpm  
and try to install it: 'rpm -i guile-1.6.7-19.i586.rpm' (as root). Then you should ignore all guile upgrades until the TeXmacs gets upgraded.
Comment 3 Dieter Jurzitza 2007-01-11 18:50:31 UTC
Created attachment 112529 [details]
This is to make guile-1.6.7-19 compile in userspace & prepare reusability of TeXmacs

This is a patch to make the old guile from 10.1 compile on SuSE 10.2 in userspace to prepare usage of TeXmacs again.
Comment 4 Dieter Jurzitza 2007-01-11 18:52:45 UTC
Created attachment 112530 [details]
This is required to make TeXmacs build with the old version of guile from 10.1

TeXmacs 10.2 is linked against libguile. You cannot simply replace guile without recompiling TeXmacs.
Due to the package-separation in guile and guile-devel in 10.2 that did not exist in 10.1, this patch is required.
Comment 5 Dieter Jurzitza 2007-01-11 19:07:59 UTC
Howto get TeXmacs work again:
1.) uninstall guile, guile-devel and TeXmacs

rpm -e --nodeps TeXmacs
rpm -e --nodeps guile-devel
rpm -e --nodeps guile

2.) install the source packages of guile from 10.1 and TeXmacs from 10.2:
rpm -hiv TeXmacs-1.0.6.6-14.src.rpm
rpm -hiv guile-1.6.7-19.src.rpm

cd /usr/src/packages/SPECS (need attachements id's 112529 & 112530)

cat TeXmacs.spec.patch | patch -p0
cat guile.spec.patch | patch -p0

rpmbuild -ba guile.spec
after completion, install guile-1.6.2-20.i586.rpm

rpm -hiv /usr/src/packages/RPMS/i586/guile-1.6.2-20.i586.rpm

rpmbuild -ba TeXmacs.spec
after completion, install TeXmacs-1.0.6.6-15.i586.rpm

rpm -hiv /usr/src/packages/RPMS/i586/TeXmacs-1.0.6.6-15.i586.rpm

TeXmacs works again. I could not test against x86_64 as I have no appropriate system at hand. Someone volunteering for this?

Comment 6 Mauro Cremonini 2007-02-27 12:26:20 UTC
Hi, I followed until:

rpmbuild -ba guile.spec

but then:

+ libtoolize -c --force --ltdl
/var/tmp/rpm-tmp.10851: line 61: libtoolize: command not found
error: Bad exit status from /var/tmp/rpm-tmp.10851 (%build)

what's wrong?
thank you
Mauro
Comment 7 Dieter Jurzitza 2007-02-27 13:04:17 UTC
Hi,
you have to install libtool, otherwise things may not compile; probably the dependency on libtool is missing in the list of dependencies in the spec-file of guile.
Take care



Dieter Jurzitza
Comment 8 Andreas Hanke 2007-02-27 13:05:20 UTC
Why has this bug beem marked as RESOLVED WORKSFORME? This is still completely broken on openSUSE 10.3 Alpha 1.

The information in comment 2 is -as usual- not required to handle this bug, the version is simply "the one that ships with openSUSE 10.3 Alpha 1".

# LANG=en_US.UTF-8 texmacs
Guile 1.8.0 is uncompatible with earlier versions.
Please recompile TeXmacs with an older version of Guile,
since TeXmacs is likely to crash with Guile 1.8.0.
Any help for fixing this problem would be appreciated.
Segmentation fault

I'm not attaching a backtrace because inst-source-debug is currently broken (it was last updated 20070122). This bug should be easily reproducible for anyone.
Comment 9 Mauro Cremonini 2007-02-27 14:08:58 UTC
Thank you for the hint! I should have found it myself :-). 
Now it works!
Thanks, 
Mauro
Comment 10 Mauro Cremonini 2007-02-27 14:34:16 UTC
...and remember to add "| 5.10.0" to line 21 in /usr/lib/TeXmacs/bin/tm_maxima otherwise texmacs cannot run maxima.
bye.
Mauro
Comment 11 Andreas Hanke 2007-02-27 20:35:02 UTC
I have just compiled TeXmacs myself from CVS against the standard guile package that ships with openSUSE 10.3 Alpha 1, and this works without crashing and without local hacks.

The issue seems to be fixed upstream => A version upgrade (or backport) might help.
Comment 12 Dieter Jurzitza 2007-02-27 21:01:52 UTC
Created attachment 121387 [details]
Accept higher version numbers of maxima

This is a patch to include the suggestion from Mauro Cremonini into current source tree of TeXmacs and make TeXmacs work with the current release of maxima as available from packman.
Comment 13 Dieter Jurzitza 2007-02-27 21:03:10 UTC
Created attachment 121388 [details]
This is the specfile that includes the maxima-patch

This is the specfile for TeXmacs to use the maxima patch.
Comment 14 Andreas Hanke 2007-02-27 21:15:57 UTC
A patch equivalent to this one is already present in upstream CVS:

http://www.texmacs.org/cgi-bin/cvsweb.cgi/src/plugins/maxima/bin/tm_maxima.diff?r1=1.13&r2=1.14
http://www.texmacs.org/cgi-bin/cvsweb.cgi/src/plugins/maxima/bin/tm_maxima.diff?r1=1.14&r2=1.15

I suggest to be patient and wait until someone does a version upgrade before providing more input and patches.
Comment 15 Michal Vaner 2007-03-05 16:57:59 UTC
Upgrading to the newest version solved this.
Comment 16 Dieter Jurzitza 2007-03-12 18:07:22 UTC
Hi,
I thought I had been assigning this originally to openSUSE 10.2, someone else must have put 10.3 in. Not so sure about it.
TeXmacs is *broken* in 10.2. Nevertheless, there is no upgrade version in the patches for 10.2, so why is this marked as *resolved*? IMHO there should be an upgrade package at least, otherwise this resolving is more or less theoretical.

Thanks for clarifying,
take care



Dieter Jurzitza
Comment 18 Michal Marek 2007-03-13 10:29:59 UTC
(In reply to comment #16)
> TeXmacs is *broken* in 10.2. Nevertheless, there is no upgrade version in the
> patches for 10.2, so why is this marked as *resolved*?

It's fixed in Factory (future openSUSE 10.3). Let's ask Anja & AJ about an online update for 10.2.
Comment 19 Anja Stock 2007-03-13 14:04:04 UTC
yes, please do an update for 10.2. SWAMPID is 8870
Thanks
Comment 20 Petr Gajdos 2007-03-23 16:05:11 UTC
I have submitted the package.
Comment 21 Petr Gajdos 2007-03-26 11:30:05 UTC
fixed
Comment 22 Marcus Meissner 2007-03-27 14:57:55 UTC
just approved the update. thanks!
Comment 23 Dieter Jurzitza 2007-03-27 19:26:36 UTC
Tested successfully. Thank you for fixing this.
Take care



Dieter Jurzitza