bugGNU TeXmacs - Bugs: bug #30158, tm_shell hangs sessions on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30158: tm_shell hangs sessions on non-zero exit code

Submitter:  Sam Liddicott <samjam>
Submitted:  Wed 16 Jun 2010 02:25:16 PM UTC
   
 
Category:  None Priority:  5 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.0.7.4
Fixed Release:  None Fixed Release: 
Keywords: 

Wed 01 Mar 2017 07:51:08 AM UTC, comment #4: 

Seems fixed and no news. Closing.

Philippe Joyez <pjoyez>
Group Member
Mon 07 Jul 2014 12:21:28 PM UTC, comment #3: 

I can't reproduce it. Is it still valid?

Francois Poulain <fpoulain>
Group Member
Wed 16 Jun 2010 09:16:13 PM UTC, comment #2: 

It's nothing to do with the exit code; just sometimes the shell session stays busy even though the command spawned by tm_shell has quit.

echo hello

will eventually hang if run often enough

1.0.7.3 is fine, just 1.0.7.4 has the problem .... hmm... I wonder if it is running tm_shell from 1.0.7.3 which is .deb installed, 1.0.7.4 is run from TEXMACSPATH install.

Sam Liddicott <samjam>
Group Member
Wed 16 Jun 2010 02:36:43 PM UTC, comment #1: 

strace -f of the tm_shell show when running:
/bin/false || echo failed: $?

Process 25046 attached - interrupt to quit
read(0, "/bin/false || echo failed: $?\n", 4096) = 30
write(3, "/bin/false || echo failed: $?\n", 30) = 30
write(1, "\2verbatim:", 10)             = 10
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 1 (in [3], left {0, 0})
read(3, "failed: 1\r\ntmshell$ ", 1024) = 20
write(1, "failed: 1\r\n", 11)           = 11
write(1, "\5", 1)                       = 1
read(0,


I'm not sure what is going on; even this fails:

bash -c "/bin/false || echo failed: $?"
but this works
bash -c "/bin/true || echo failed: $?"

yet as commands they both have a zero exit code...

...in fact it seems as though often the second command of any tm_shell hangs and leaves "busy"

Sam Liddicott <samjam>
Group Member
Wed 16 Jun 2010 02:25:16 PM UTC, original submission:  

If I execute: /bin/false
as part of a shell session, then all further commands in that session hang.


Sam Liddicott <samjam>
Group Member

 

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

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 pjoyez (Posted a comment)
  • -email is unavailable- added by samjam (Submitted the item)
  •  

    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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-01 pjoyez Open/ClosedOpen Closed
    2014-07-07 fpoulain StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code