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

 
 

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

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

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Wed 16 Jun 2010 02:25:16 PM UTC  
 
Category: NonePriority: 5 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.0.7.4Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

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>
Project 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>
Project 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>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by samjam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup