Bug in epoll on Linux, either
a) don't do this or
b) make sure you are using a libevent 1.4 built from their git or
libevent 2 (to avoid a libevent bug) and use EVENT_NOEPOLL=1
On Mon, Apr 25, 2011 at 11:47:52AM -0400, Christian Höltje wrote:
> It took me a while to figure out what was going on in my script, but I
> did figure it out eventually....
>
> If you run this:
> tmux has-session -t "flibbit" 2> /dev/null
>
> Then tmux just freezes. You have to open another terminal to kill it.
>
> Without the "2> /dev/null" it works fine.
>
> Here's a strace, ending where it hangs:
>
> ----------------->8------------cut---------8<--------------------
> getcwd("/home/docwhat", 4096) = 13
> dup(0) = 9
> dup(1) = 10
> dup(2) = 11
> epoll_ctl(3, EPOLL_CTL_ADD, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> epoll_wait(3, {{EPOLLOUT, {u32=8, u64=8}}}, 32, 4294967295) = 1
> epoll_ctl(3, EPOLL_CTL_DEL, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> sendmsg(8, {msg_name(0)=NULL,
> msg_iov(1)=[{"\6\0\0\0\224\20\1\0\6\0\0\0\377\377\377\377/home/holtje\0\6\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\2640B\304\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
> 0B\304\377\177\0\0\0\0\0\0\0\0\0\0d\0\0\0\0\0\0\0\2700B\304\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0s\0\0\0\0\0\0\0\0301B\304\377\177\0\0\7\346D\0\0\0\0\0\0\0\0\0\21\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0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0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\252\273v!\v\177\0\0\0\0\0\0\0\0\0\0\3400B\304\377\177\0\0\0\0\0\0\0\0\0\0`\353\201!\v\177\0\0"...,
> 4244}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET,
> cmsg_type=SCM_RIGHTS, {9}}, msg_flags=0}, 0) = 4244
> close(9) = 0
> epoll_ctl(3, EPOLL_CTL_ADD, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> epoll_wait(3, {{EPOLLOUT, {u32=8, u64=8}}}, 32, 4294967295) = 1
> epoll_ctl(3, EPOLL_CTL_DEL, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> sendmsg(8, {msg_name(0)=NULL,
> msg_iov(1)=[{"\23\0\0\0\20\0\1\0\6\0\0\0\377\377\377\377", 16}],
> msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET,
> cmsg_type=SCM_RIGHTS, {10}}, msg_flags=0}, 0) = 16
> close(10) = 0
> epoll_ctl(3, EPOLL_CTL_ADD, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> epoll_wait(3, {{EPOLLOUT, {u32=8, u64=8}}}, 32, 4294967295) = 1
> epoll_ctl(3, EPOLL_CTL_DEL, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> sendmsg(8, {msg_name(0)=NULL,
> msg_iov(1)=[{"\22\0\0\0\20\0\1\0\6\0\0\0\377\377\377\377", 16}],
> msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET,
> cmsg_type=SCM_RIGHTS, {11}}, msg_flags=0}, 0) = 16
> close(11) = 0
> epoll_ctl(3, EPOLL_CTL_ADD, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> epoll_wait(3, {{EPOLLOUT, {u32=8, u64=8}}}, 32, 4294967295) = 1
> epoll_ctl(3, EPOLL_CTL_DEL, 8, {EPOLLIN|EPOLLOUT, {u32=8, u64=8}}) = 0
> sendmsg(8, {msg_name(0)=NULL,
> msg_iov(1)=[{"\0\0\0\0\34\10\0\0\6\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\3\0\0\0has-session\0-t\0flibbit\0!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\v\177\0\0\0\0\0\0\0\0\0\0
> \0\0\0\377\177\0\0\350\2351!\0\0\0\0\0\0\240\211\204\210\377\377\330\24\226!\0\0\0\0\0\0\0\0\0\0\0\0\327D\21!\1\0\0\0\0\0\0\0\0\0\0\0\0\0`z\204\210\377\377\0\0\0\0\356B\26\376\330\24\226!\0\0\0\0\0\0\0\0\0\0\0\0\310AB\304\377\177\0\0\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0s\0006\32\356B\26\376\350AB\304\377\177\0\0\7\346D\0\0\0\0\0\0\0\0\0\0\0\0\0\240-
> \0\0\0\0\0\360\1\0\0\0\0\0\0\360\1\0\0\0\0\0\0h\2371!\v\177\0\0000\352\201!\v\177\0\0002\365v!\v\177\0\0\1\0\0\0\377\177\0\0\3309\230!\v\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\350\2351!\v\177\0\0D\364v!\v\177\0\0\1\0\0\0\0\0\0\0X\345\201!\v\177\0\0000>B\304\377\177\0\0\0\0\0\0\0\0\0\0\330\2351!\v\177\0\0D\364v!\v\177\0\0\220\31\226!\v\177\0\0X\345\201!\v\177\0\0\3309\230!\v\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0000\363\225!\v\177\0\0\0\0\240\211\204\210\377\377\0\20\226!\v\177\0\0\1\0\0\0\0\0\0\0\27k\202!\v\177\0\0\240?B\304\377\177\0\0\0\0\340|\204\210\377\377\0\0006\32\356B\26\376\1\0\0\0\0\0\0\0\4\0\0\0\24\0\0\0`DB\304\377\177\0\0\320DB\304\377\177\0\0X\32\230!\v\177\0\0\0\0\0\0\0\0\0\0\n\2701!\v\177\0\0\200@B\304\377\177\0\0R\355v!\v\177\0\0\0\0\0\0\0\0\0\0006\rw!\v\177\0\0\370?\230!\v\177\0\0\210DB\304\377\177\0\0\220DB\304\377\177\0\0\237DB\304\377\177\0\0
> \355v!\v\177\0\0`DB\304\377\177\0\0\0\0\0\0\34\0\0\0p\364\225!\v\177\0\0\320DB\304\377\177\0\0002\365v!\v\177\0\0\330\24\226!\v\177\0\0\220\31\226!\v\177\0\0\0\0\0\0\0\0\0\0\n\2701!\v\177\0\0\200@B\304\377\177\0\0\0\0\240~\204\210\377\377\0\0006\32\356B\26\376\252\273v!\v\177\0\0\273\25sB\257\304M\17\221!\374\370\3723\373\17\7\2\4\371\371\31sB`\353\201!\v\177\0\0(BB\304\377\177\0\0\252\273v!\v\177\0\0\307\16\340=\0\0\0\0\300@B\304\377\177\0\0R\345td\4\0\0\0`\353\201!\v\177\0\0XBB\304\377\177\0\0\t\0\0\0\0\0\0\0\3\341G\250\0\0\0\0D\306v!\v\177\0\0@<\331
> \v\177\0\0\204\37\241\2\0\0\0\0\3\0\0\0\0\0\0\0\2442\331
> \v\177\0\0\0\0\0\0\0\0\0\0\300@B\304\377\177\0\0@<\331
> \v\177\0\0x\315\331
> \v\177\0\0\220\31\226!\v\177\0\0\340\n6\0\0\0\0\0000\0\0\0\v\177\0\0<'\331
> \v\177\0\0\0\0\0\0\0\0\0\0\0AB\304\377\177\0\0\0\20\226!\v\177\0\0\0\0\0\0\0\0\0\0\220\355\201!\v\177\0\0\220\31\226!\v\177\0\0\266X\202!\v\177\0\0
> \7\332
> \v\177\0\0\270/\202!\v\177\0\0\0\0\0\0\1\0\0\0\r\6\0\0\1\0\0\0\0\0\0\0\0\0\0\0x\355\201!\v\177\0\0X\23\226!\v\177\0\0"...,
> 2076}], msg_controllen=0, msg_flags=0}, 0) = 2076
> epoll_ctl(3, EPOLL_CTL_ADD, 8, {EPOLLIN, {u32=8, u64=8}}) = 0
> epoll_wait(3,
> ----------------->8------------cut---------8<--------------------
>
> This is on:
> Distributor ID: Ubuntu
> Description: Ubuntu 10.10
> Release: 10.10
> Codename: maverick
> Tmux: 1.4 (self compiled)
>
>
> Ciao!
>
> --
> Computers are useless. They can only give you answers.
> -- Pablo Picasso
>
> The Doctor What: <fill in the blank> http://docwhat.gerf.org/
> docwhat *at* gmail *dot* com KF6VNC
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> tmux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users