Bug 144760 - sysutils/tmux: shell not working in tmux any more
Summary: sysutils/tmux: shell not working in tmux any more
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 12:30 UTC by Erwan David
Modified: 2010-04-06 03:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwan David 2010-03-15 12:30:08 UTC
latest tmux port does not work with either zsh or sh : shell has display
problems, and session may even block (seen when using less).

How-To-Repeat: tmux new-session with zsh or sh as shell : prompt does not appear. After
several press on return it may appear but line editing is broken.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-03-15 18:16:50 UTC
Responsible Changed
From-To: freebsd-bugs->wen

Make this a ports PR, fix synopsis, and assign.
Comment 2 wenheping 2010-03-16 00:36:31 UTC
Hi,

   Would you give a more detailed description of how about
the error produced ? I tested with sh and csh, it work well.


Regards,
wen
Comment 3 Alex Trull 2010-03-16 11:32:58 UTC
Hello Wen & Co.

I can confirm seeing this bug in tmux 1.2 on a relatively recent releng_7/amd64 jail.

All shells seemed to be affected, with or without special tmux configuration (I use the screen-like bindings, but the bug was present with and without them).

Have rolled back to tmux 1.1 now which fixes the issue.

It looked like there was an issue with screen updating - you typed something in and nothing echoed back. Starting a fresh tmux session just came back with blank screens.

Regards,

Alex
Comment 4 Erwan David 2010-03-16 20:38:55 UTC
Le Tue 16/03/2010, wen heping disait
> Hi,
> 
>    Would you give a more detailed description of how about
> the error produced ? I tested with sh and csh, it work well.
> 
> 
> Regards,
> wen
> 

I was told it works on FreeBSD 8, but I am under 7.2, and cannot upgrade OS 
right now.

Symptoms are the same for any shell :

tmux new-session : nothing is shown
Return -> % is written
Return -> prompt is written
then cycle, return after a command shows a %, then return->result then 
return->prompt

When a command issues more than 1 page result everything is blocked in the 
client

C-b d detachs, then tmux kill-session kills everything.

TERM variables are OK : xterm-color before launching tmux (ssh from MacOS X 
terminal.app or from an xterm under linux), screen inside tmux

-- 
Erwan
Comment 5 me 2010-03-16 20:58:07 UTC
Hi all,

I'm seeing the same issue.  My uname -a is

FreeBSD eponine.barakmich.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed 
Apr 23 01:45:39 PDT 2008     
root@fantine.barak.photonzero.com:/usr/obj/usr/src/sys/BARAK0AMD64  amd64

Erwan's description is the same as mine -- blank screen; pressing 
"Enter" a few times shows % followed by an (older) prompt line. I have 
tried many different shells, and the result is the same.

I can confirm I tried it on FreeBSD 8.0-RELEASE inside a virtual machine 
and tmux 1.2 worked just fine, so there's something subtly different.

Downloaded and compiled my own copy of tmux 1.1 and it didn't show any 
trouble. I wonder what changed?

--Barak
Comment 6 Erwan David 2010-03-16 22:16:24 UTC
On #tmux, I got the following info :
setting export EVENT_NOKQUEUE=1 and everything works.
It seems tmux hits a bug on FreeBSD 7 kqueue implementation.
It should work better with defining HAVE_BROKEN_KQUEUE in configure for 
FreeBSD 7.

-- 
Erwan
Comment 7 Ryan Steinmetz 2010-04-03 17:22:05 UTC
I've submitted ports/145349 to resolve this issue.

-r
Comment 8 Wen Heping freebsd_committer freebsd_triage 2010-04-06 03:55:28 UTC
State Changed
From-To: open->closed

Fixed.