bugGNU Parallel - Bugs: bug #53138, tmux_length() returns negativ...

 
 

bug #53138: tmux_length() returns negativ number

Submitter:  None
Submitted:  Mon 12 Feb 2018 10:53:31 PM 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
   

Tue 16 Jun 2020 02:22:54 PM UTC, comment #3: 

I encountered this issue on Arch as well.

Tmux reads the locale env variables to make sure that it can use UTF-8.
As I understand it, there are 3 variables available for this, in the order of priority: LC_ALL, LC_CTYPE, LANG.
If one is unset, it falls back to the next.

On some systems (e.g. default Arch), LC_ALL and LC_CTYPE are unset, relying on LANG only.

Currently only LC_CTYPE is passed through.
If it is unset, tmux fails when run silently to check for max command length.

Adding LANG to @keep in ::qqx fixes the issue.

Aron Hoffmann <aronhoff>
Sun 25 Mar 2018 12:04:22 AM UTC, comment #2: 

Re-open this bug when you can reproduce the bug on a VirtualBox.

Ole Tange <tange>
Group administrator
Tue 27 Feb 2018 10:50:39 PM UTC, comment #1: 

I cannot reproduce this.

Please follow https://www.gnu.org/software/parallel/man.html#REPORTING-BUGS and reproduce the bug on a VirtualBox.

Ole Tange <tange>
Group administrator
Mon 12 Feb 2018 10:53:31 PM UTC, original submission:  

$ parallel --tmux echo {} ::: 1
parallel: Error: Command line too long (6 >= -33) at input 0: 1

This happens because
tmux_length() returns a negativ number on at least my Arch machine.

I think it is the $tmuxcmd that is not working because
::qqx($tmuxcmd) is empty.

$ head -2 <(bash --version) <(./parallel --version) <(perl --version)
==> /dev/fd/63 <==
GNU bash, version 4.4.18(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.

==> /dev/fd/62 <==
GNU parallel 20180123
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018

==> /dev/fd/61 <==

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-thread-multi

Anonymous

 

(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 aronhoff (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-25 tange StatusNone Need Info
        Assigned toNone tange
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code