bugGNU Parallel - Bugs: bug #63130, parallel does not work on Perl...

 
 

bug #63130: parallel does not work on Perl 5.30.0 onwards

Submitter:  Harischandra Achari <harischandra1982>
Submitted:  Thu 29 Sep 2022 08:40:45 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 09 Dec 2022 06:42:51 AM UTC, comment #6: 

I am not the OP; I'm just passing by because I had the same problem and found a fix.

I had set an environment variable (PERL5OPT) that made UTF-8 the default PerlIO layer for input streams. I'm running GNU Parallel 20161222 and Perl 5.32.1 on Debian GNU/Linux 11 (bullseye), though that shouldn't make any difference as to reproducibility.

Broken:

env PERL5OPT=Ci parallel echo ::: test

prints sysread() isn't allowed on :utf8 handles at /usr/bin/parallel line 8410.

Works:

env PERL5OPT= parallel echo ::: test

prints test

If the OP had something like my setup, try prefixing Parallel commands with env PERL5OPT= or remove the environment variable PERL5OPT from one's ~/.bashrc or ~/.profile. The Perl man page says:

Note that if the filehandle has been marked as ":utf8", "sysread" will throw an exception.

I'm no one official, but I think this means the bug is not in GNU Parallel; it's a quirk when running under unusual Perl setups. HTH

Anonymous
Sun 13 Nov 2022 08:33:16 PM UTC, comment #5: 

No input for a month.

Re-open the bug when you add information.

Ole Tange <tange>
Group administrator
Tue 11 Oct 2022 07:50:33 AM UTC, comment #4: 


> Note: This issue is platform independent, can be reproduced in any platform with Perl version above 5.30.0


This is not the case.

I use 5.34.0 on Ubuntu 22.04 and I do not have the problem. I have compiled 5.36.0 on the same system, and I still do not have the problem. This tells me that it is a problem in your environment.

I ask you again: Please follow https://www.gnu.org/software/parallel/man.html#bug-dependent-on-environment

Given the output from uname, it looks as if this might be an Amazon issue. But that will be easier to determine if you follow https://www.gnu.org/software/parallel/man.html#bug-dependent-on-environment

Ole Tange <tange>
Group administrator
Fri 07 Oct 2022 02:48:22 PM UTC, comment #3: 

More information in provided about the issue. Kindly have a look.

Harischandra Achari <harischandra1982>
Mon 03 Oct 2022 07:03:07 AM UTC, comment #2: 

Included more information about the issue.

Error text :

sysread() isn't allowed on :utf8 handles at /sv/app/parallel/product/parallel-20220922/bin/parallel line 11500.

Parallel version:

$ parallel --version
GNU parallel 20220922
Copyright (C) 2007-2022 Ole Tange, http://ole.tange.dk and Free Software
Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: https://www.gnu.org/software/parallel

When using programs that use GNU Parallel to process data for publication
please cite as described in 'parallel --citation'.


Failing case :

$ ls -1 | parallel --max-args=2 echo
Academic tradition requires you to cite works you base your article on.
If you use programs that use GNU Parallel to process data for an article in a
scientific publication, please cite:

  Tange, O. (2022, September 22). GNU Parallel 20220922 ('Elizabeth').
  Zenodo. https://doi.org/10.5281/zenodo.7105792

This helps funding further development; AND IT WON'T COST YOU A CENT.
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.

More about funding GNU Parallel and the citation notice:
https://www.gnu.org/software/parallel/parallel_design.html#citation-notice

To silence this citation notice: run 'parallel --citation' once.

Come on: You have run parallel 15 times. Isn't it about time
you run 'parallel --citation' once to silence the citation notice?

sysread() isn't allowed on :utf8 handles at /sv/app/parallel/product/parallel-20220922/bin/parallel line 11500.

Perl Version:

$ perl -v

This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-linux

Copyright 1987-2022, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.


Platform :
$ uname -a
Linux cbtest 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Note: This issue is platform independent, can be reproduced in any platform with Perl version above 5.30.0

Harischandra Achari <harischandra1982>
Sun 02 Oct 2022 01:48:38 PM UTC, comment #1: 

Thanks for your report.

I cannot reproduce your problem, neither on 5.34.0 nor 5.36.0.

Please follow: https://www.gnu.org/software/parallel/man.html#bug-dependent-on-environment

Ole Tange <tange>
Group administrator
Thu 29 Sep 2022 08:40:45 AM UTC, original submission:  

Hi,
I'm getting below error while running parallel tool on Perl 5.36.0

sysread() isn't allowed on :utf8 handles at /sv/app/parallel/product/parallel-20220922/bin/parallel line 11500.

Kindly let me know if the parallel utility is supported on Perl 5.30.0 onwards, if not let me know when are you planning to upgrade.

Regards,
Hari.

Harischandra Achari <harischandra1982>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by harischandra1982 (Posted a comment)
  • -email is unavailable- added by tange (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-11-13 tange Open/ClosedOpen Closed
    2022-10-05 harischandra1982 Carbon-CopyRemoved 333839 -
    2022-10-02 tange StatusNone Need Info
        Assigned toNone tange

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code