PARI/GP Bug report logs -
#1798
pthread-related bug on Solaris
Reported by: Igor Schein <igorschein@gmail.com>
Date: Fri, 18 Mar 2016 19:33:01 UTC
Severity: normal
Found in version git
Done: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
Bug is archived. No further changes may be made.
Full log
🔗
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 8 Oct 2018 11:46:15 +0200
with message-id <20181008094615.GA13418@math.u-bordeaux.fr>
and subject line Re: Bug#1798: pthread-related bug on Solaris
has caused the PARI/GP Bug report #1798,
regarding pthread-related bug on Solaris
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact allomber@math.u-bordeaux.fr
immediately.)
--
1798: /cgi-bin/bugreport.cgi?bug=1798
PARI/GP Bug Tracking System
Contact allomber@math.u-bordeaux.fr with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Package: pari
Version: git
GP/PARI CALCULATOR Version 2.8.0 (development 18700-3cadb51)
ix86 running solaris (ix86/GMP-4.3.2 kernel) 32-bit version
compiled: Mar 18 2016, gcc version 4.8.2 (GCC)
threading engine: pthread
(readline v5.2 disabled, extended help enabled)
Copyright (C) 2000-2016 The PARI Group
PARI/GP is free software, covered by the GNU General Public License, and
comes
WITHOUT ANY WARRANTY WHATSOEVER.
Type ? for help, \q to quit.
Type ?15 for how to get moral (and possibly technical) support.
parisize = 4000000, primelimit = 500000
echo = 1 (on)
? bnfisprincipal(bnfinit(x^2-x-57),[5,1;0,1])
*** at top-level: bnfisprincipal(bnfin
*** ^--------------------
*** bnfisprincipal: bug in PARI/GP (Segmentation Fault), please report.
Debug version works fine with pthread.
Thanks
Igor
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
* Igor Schein [2016-03-30 20:56]:
> On Fri, Mar 18, 2016 at 3:50 PM, Bill Allombert <
> Bill.Allombert@math.u-bordeaux.fr> wrote:
>
> > On Fri, Mar 18, 2016 at 03:21:13PM -0400, Igor Schein wrote:
> > > Package: pari
> > > Version: git
> > >
> > > GP/PARI CALCULATOR Version 2.8.0 (development 18700-3cadb51)
> > > ix86 running solaris (ix86/GMP-4.3.2 kernel) 32-bit version
> > > compiled: Mar 18 2016, gcc version 4.8.2 (GCC)
> > > threading engine: pthread
> > > (readline v5.2 disabled, extended help enabled)
> > >
> > > Copyright (C) 2000-2016 The PARI Group
> > >
> > > PARI/GP is free software, covered by the GNU General Public License, and
> > > comes
> > > WITHOUT ANY WARRANTY WHATSOEVER.
> > >
> > > Type ? for help, \q to quit.
> > > Type ?15 for how to get moral (and possibly technical) support.
> > >
> > > parisize = 4000000, primelimit = 500000
> > > echo = 1 (on)
> > > ? bnfisprincipal(bnfinit(x^2-x-57),[5,1;0,1])
> > > *** at top-level: bnfisprincipal(bnfin
> > > *** ^--------------------
> > > *** bnfisprincipal: bug in PARI/GP (Segmentation Fault), please report.
> > >
> > > Debug version works fine with pthread.
> >
> > I do not know how good is the TLS support in this configuration.
> > Your example does not actually run any threads, so it is purely
> > a TLS issue.
> >
> > Could you try
> > polmodular(127)
> >
> > Cheers,
> > Bill
> >
>
> I was able to work around the said SEGV by configuring with
> CFLAGS=-fno-tree-loop-vectorize
>
> When I do use -ftree-loop-vectorize, I get the following stack trace (for
> what it's worth):
>
> #0 getrand () at ../src/basemath/random.c:134
> #1 0x079eb2c0 in bnfisprincipal0 (bnf=0xfe5d0e00, x=<optimized out>,
> flag=1) at ../src/basemath/buch2.c:1902
> #2 0x07d62ae5 in closure_eval (C=C@entry=0xfe5d0fb4) at
> ../src/language/eval.c:1305
> #3 0x07d6425c in closure_return (C=<optimized out>) at
> ../src/language/eval.c:614
> #4 closure_evalres (C=0xfe5d0fb4) at ../src/language/eval.c:1585
> #5 0x08071ca6 in gp_main_loop (ismain=ismain@entry=1) at ../src/gp/gp.c:371
> #6 0x08072912 in main (argc=<optimized out>, argv=<optimized out>) at
> ../src/gp/gp.c:598
>
> I get the identical behavior with both
> gcc version 4.8.2 (GCC)
> and
> gcc version 6.0.0 20160327 (experimental) (GCC)
Closing this issue.
Thanks for your report !
K.B.
--
Karim Belabas, IMB (UMR 5251) Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux Fax: (+33) (0)5 40 00 21 23
351, cours de la Liberation http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France) http://pari.math.u-bordeaux.fr/ [PARI/GP]
`
Send a report that this bug log contains spam.
Bill Allombert <allomber@math.u-bordeaux.fr>.
Last modified:
Sat Aug 26 18:17:31 2023;
Machine Name:
pari
PARI/GP Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.