PARI/GP Bug report logs - #1616
\r cannot read long file names

version graph

Package: pari; Maintainer for pari is Aurel Page <aurel.page@normalesup.org>; Source for pari is src:pari.

Reported by: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>

Date: Mon, 29 Sep 2014 12:03:01 UTC

Severity: normal

Found in version 2.7.2

Done: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list@pari.math.u-bordeaux.fr, Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>:
Bug#1616; Package pari. (Mon, 29 Sep 2014 12:03:01 GMT) (full text, mbox, link).


Acknowledgement sent to Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
New Bug report received and forwarded. Copy sent to Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>. (Mon, 29 Sep 2014 12:03:01 GMT) (full text, mbox, link).


Message #5 received at submit@pari.math.u-bordeaux.fr (full text, mbox, reply):

From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
To: submit@pari.math.u-bordeaux.fr
Subject: \r cannot read long file names
Date: Mon, 29 Sep 2014 13:47:17 +0200
Package: pari
Version: 2.7.2

Hello Karim,

\r cannot deal with very long filenames:

? system(Str("echo Pi >",100!));
? 100!
%2 = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
? \r 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
  ***   get_sep: argument too long (< 128 chars).

? read("93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000")
%3 = 3.1415926535897932384626433832795028842

The source code says
src/language/default.c

#ifdef MAXPATHLEN
#  define GET_SEP_SIZE MAXPATHLEN
#else
#  define GET_SEP_SIZE 128
#endif

but MAXPATHLEN is not defined.

Cheers,
Bill.



Information forwarded to bug-submit-list@pari.math.u-bordeaux.fr:
Bug#1616; Package pari. (Mon, 29 Sep 2014 20:03:01 GMT) (full text, mbox, link).


Acknowledgement sent to Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>:
Extra info received and forwarded to list. (Mon, 29 Sep 2014 20:03:02 GMT) (full text, mbox, link).


Message #10 received at 1616@pari.math.u-bordeaux.fr (full text, mbox, reply):

From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
To: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>, 1616@pari.math.u-bordeaux.fr
Subject: Re: Bug#1616: \r cannot read long file names
Date: Mon, 29 Sep 2014 21:49:01 +0200
* Bill Allombert [2014-09-29 14:03]:
> \r cannot deal with very long filenames:
> 
> ? system(Str("echo Pi >",100!));
> ? 100!
> %2 = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
> ? \r 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
>   ***   get_sep: argument too long (< 128 chars).

Fix in commit 43d88cb9. (We may assume that PARI stack is available, so
use it instead of a fixed static buffer.)

Thanks !

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`



Reply sent to Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>:
You have taken responsibility. (Sat, 01 Nov 2014 15:18:02 GMT) (full text, mbox, link).


Notification sent to Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
Bug acknowledged by developer. (Sat, 01 Nov 2014 15:18:02 GMT) (full text, mbox, link).


Message #15 received at 1616-close@pari.math.u-bordeaux.fr (full text, mbox, reply):

From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
To: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>, 1616-close@pari.math.u-bordeaux.fr
Subject: Re: Bug#1616: \r cannot read long file names
Date: Sat, 1 Nov 2014 16:05:07 +0100
* Karim Belabas [2014-09-29 21:49]:
> * Bill Allombert [2014-09-29 14:03]:
> > \r cannot deal with very long filenames:
> > 
> > ? system(Str("echo Pi >",100!));
> > ? 100!
> > %2 = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
> > ? \r 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
> >   ***   get_sep: argument too long (< 128 chars).
> 
> Fix in commit 43d88cb9. (We may assume that PARI stack is available, so
> use it instead of a fixed static buffer.)

Closing this bug.

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`



Bug archived. Request was from Debbugs Internal Request <allomber@math.u-bordeaux.fr> to internal_control@pari.math.u-bordeaux.fr. (Sun, 30 Nov 2014 06:24:01 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Bill Allombert <allomber@math.u-bordeaux.fr>. Last modified: Wed May 7 23:09:49 2025; Machine Name: pari

PARI/GP Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.