First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 45446
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: glowwormy@web.de
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
singular-2.0.5-gentoo.diff The new patchset for Singular patch glowwormy@web.de 2004-03-22 15:55 0000 3.39 KB Details | Diff
singular-2.0.5-r3.ebuild.diff A few changes to the ebuild (mainly for the online help) patch glowwormy@web.de 2004-03-25 08:48 0000 828 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 45446 depends on: Show dependency tree
Bug 45446 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-03-22 15:51 0000
When running singular (2.0.4-r1 and 2.0.5) I get Segmentation fault while doing
normal work. For example when typing the example in
http://www.singular.uni-kl.de/Manual/2-0-4/sing_10.htm#SEC16 it crashes.

Reproducible: Always
Steps to Reproduce:
As described above



Expected Results:  
In my opinion its another path issue. I checked the files and wrote a patch for
singular-2.0.5 which should also work with 2.0.4.
Also, building singular twice is not such a good idea (the standard target is
install, so doing make in source_compile isnt such a good idea). The einstalls
in source_install should be sufficent. I removed also some links to
/var/tmp/portage from the source by this patches.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc1-love3)
=================================================================
System uname: 2.6.4-rc1-love3 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.13p1
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu/"
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="3dnow X aalib alsa apache2 apm avi berkdb bonobo cdr crypt cups dga doc
dvd
encode esd faad foomaticdb gdbm gif ginac gnome gpm gtk gtk2 gtkhtml guile hbci
imap imlib java jpeg libg++ libwww lirc mad mikmod mmx motif mpeg mysql nas
ncurses nls offensive oggvorbis opengl oss pam pdflib perl png python qt qtmt
quicktime readline samba sasl sdl slang spell sse ssl svga tcltk tcpd tetex
truetype usb v4l x86 xml2 xmms xv xvid zlib"

------- Comment #1 From glowwormy@web.de 2004-03-22 15:55:19 0000 -------
Created an attachment (id=27823) [details]
The new patchset for Singular

------- Comment #2 From glowwormy@web.de 2004-03-22 15:56:38 0000 -------
Okay, I think now just the remove of the make in src_install from the ebuild is
missing.

------- Comment #3 From Patrick Kursawe 2004-03-22 23:37:10 0000 -------
Um... the removal of _which_ make there? I count quite a few.
Didn't manage to segfault singular the way you described.
But your patch looks very reasonable.

------- Comment #4 From glowwormy@web.de 2004-03-23 00:52:08 0000 -------
There's exactly one make (make CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die
"make failed", line 52) in src_compile. The rest are einstalls...

------- Comment #5 From glowwormy@web.de 2004-03-23 00:55:12 0000 -------
By the way, did you add these ${CFLAGS}, ${CXXFLAGS}? do they have any effect?
For the Segfaults: I don't know exactly when they occur, but I more or less
started using Singular yesterday, and it crashed a few times. So I changed to
the static, precompiled version and checked the sources later. I will try today
with the new compiled Singular 2.0.5 again and see what happens

------- Comment #6 From glowwormy@web.de 2004-03-23 01:02:46 0000 -------
Oh yes, and when your already at it: There a a few filenames/pathnames in
feResource.cc which I didn't find, mostly related to the documentation
(SINGULAR_INFO_FILE (singular.hlp), SINGULAR_IDX_FILE (singular.idx), the html
docu ...). When you've got time, would you mind to check this out?

------- Comment #7 From Patrick Kursawe 2004-03-23 01:30:54 0000 -------
I suggest you count again :-)
- each einstall is a "make (tons of options) install"
- there are a few more "make"s run when "doc" is in USE

The *FLAGS are used for some compiler runs, not all.
About the pathnames, please tell me a few commands to check if they work or not - I really have no clue how to use singular, just committed the ebuild, for the case you remember bug #26115

------- Comment #8 From glowwormy@web.de 2004-03-23 01:42:26 0000 -------
makes in __SOURCE_COMPILE__!!!!

------- Comment #9 From glowwormy@web.de 2004-03-23 01:46:06 0000 -------
The easiest way to check out if the helpfiles are installed, simply start
singular and type "help reduce;". Right now you will get the output:

// ** Could not get IdxFile. 
// ** Either set environment variable SINGULAR_IDX_FILE to IdxFile,
// ** or make sure that IdxFile is at /usr/doc/singular.idx
   ? cannot open `help.cnf`
// ** Displaying help in browser 'dummy'.
// ** Use 'system("--browser", <browser>);' to change browser,
// ** where <browser> can be: "dummy", "emacs".
   ? No functioning help browser available.
   ? error occurred in STDIN line 1: `help reduce;`

while you should get something like this:

> help reduce;
// ** Displaying help in browser 'xinfo'.
// ** Use 'system("--browser", <browser>);' to change browser,
// ** where <browser> can be: "xinfo", "info", "builtin", "dummy", "emacs".
running `xterm -e info -f
/home/wolfs/projects/Singular/Singular/2-0-5/info/singular.hlp --node='reduce'
&`

------- Comment #10 From Patrick Kursawe 2004-03-23 01:55:25 0000 -------
I referred to your comment #2 where you said that you "think now just the
remove of the make in src_install from the ebuild is missing", and I asked of
which one. So please stop screaming and thanks for comment #9 :-)

------- Comment #11 From glowwormy@web.de 2004-03-23 02:03:25 0000 -------
sorry, typing and thinking don't coincide always... I meant src_compile

------- Comment #12 From Patrick Kursawe 2004-03-23 07:02:00 0000 -------
Just added -r2 which actually gives me some reasonable output when I try "help
reduce;" - could you please check what I broke this time? :-)

------- Comment #13 From glowwormy@web.de 2004-03-23 16:31:05 0000 -------
O.K., lets try it with 

{"xterm",     'X',    feResBinary,"XTERM",                "%d/X11R6/bin/xterm",             ""},

instead of 

{"xterm",     'X',    feResBinary,"XTERM",                "%b/X11R6/bin/xterm",             ""},

(its in singular-2.0.5-r2-gentoo.diff line 101)

------- Comment #14 From Patrick Kursawe 2004-03-23 23:30:34 0000 -------
Ok, should be enough for now. Please re-open this bug if you find something
else. Thanks alot.

------- Comment #15 From glowwormy@web.de 2004-03-24 04:50:41 0000 -------
in singular-2.0.5-r3.ebuild you have to replace 

epatch  $FILESDIR/${P}-r2-gentoo.diff

with

epatch  $FILESDIR/${P}-r3-gentoo.diff
                      ^^^^

------- Comment #16 From Patrick Kursawe 2004-03-24 06:03:13 0000 -------
Ouch. This is the "this should definitely not happen" category of errors.
Thanks.

------- Comment #17 From glowwormy@web.de 2004-03-25 08:48:21 0000 -------
Created an attachment (id=28004) [details]
A few changes to the ebuild (mainly for the online help)

------- Comment #18 From glowwormy@web.de 2004-03-25 08:50:40 0000 -------
Finally i checked to more things out: The hmtl weren't installed because they
were created to late and have the extension .htm. And the missing file help.cnf
was in the LIB directory. I also added the file COPYING in the LIB-dir to the
installed files, because it includes the copyright of the Libraries. That
should do it for now.

------- Comment #19 From Patrick Kursawe 2004-03-26 04:33:48 0000 -------
Thank you very much again. -r4 will be there soon. Quite a busy week for
Singular :-)

First Last Prev Next    No search results available      Search page      Enter new bug