What exact libevent version are you using?

Does it still happen if you start tmux with EVENT_NOEPOLL=1?

Can you show me the output of the following in gdb:

f 0
p *wp
p wp->pipe_off
p *wp->event->input


On Wed, Mar 09, 2011 at 11:47:17AM +0100, Adam Szkoda wrote:
> Forgive me the terribly late answer, Nicholas.
> 
> I've found this to be the duplicate of this bug:
> http://sourceforge.net/tracker/index.php?func=detail&aid=3154132&group_id=200378&atid=973262
> 
> I'll be happy to provide further information.
> 
> Here's the gdb's output:
> (gdb) bt full
> #0  0x000000000043cd4d in window_pane_read_callback (bufev=0x12a569e0,
> data=0x12a56110) at window.c:630
>         wp = (struct window_pane *) 0x12a56110
>         new_data = 0x39 <Address 0x39 out of bounds>
>         new_size = 46968196059136
>         __func__ = "window_pane_read_callback"
> #1  0x00002ab7a2a5ebb2 in bufferevent_readcb (fd=29, event=<value
> optimized out>, arg=0x12a569e0) at bufferevent_sock.c:182
>         bufev = (struct bufferevent *) 0x12a569e0
>         bufev_p = <value optimized out>
>         input = (struct evbuffer *) 0x12a56be0
>         res = 57
>         what = <value optimized out>
>         howmuch = <value optimized out>
>         readmax = <value optimized out>
> #2  0x00002ab7a2a56cd9 in event_base_loop (base=0x12a1f5c0, flags=1)
> at event.c:1287
>         n = 1
>         evsel = (const struct eventop *) 0x2ab7a2c85160
>         tv = {tv_sec = 0, tv_usec = 497171}
>         tv_p = (struct timeval *) 0x0
>         res = <value optimized out>
>         retval = <value optimized out>
>         __func__ = "event_base_loop"
> #3  0x0000000000429160 in server_loop () at server.c:210
> No locals.
> #4  0x0000000000429141 in server_start () at server.c:201
>         wp = (struct window_pane *) 0x6e
>         pair = {9, 10}
>         cause = 0x101010101010101 <Address 0x101010101010101 out of bounds>
>         tv = {tv_sec = 1, tv_usec = 0}
>         i = 10935
>         __func__ = "server_start"
> #5  0x0000000000403a3c in client_connect (path=0x678380
> "/tmp/tmux-61374252/default", start_server=1) at client.c:79
>         sa = {sun_family = 1, sun_path = "/tmp/tmux-61374252/default",
> '\0' <repeats 81 times>}
>         size = 26
>         fd = 8
>         mode = 0
>         __func__ = "client_connect"
> #6  0x0000000000403c56 in client_main (argc=0, argv=0x7fffe13ca490,
> flags=1) at client.c:153
>         cmd = (struct cmd *) 0x7fffe13ca480
>         cmdlist = (struct cmd_list *) 0x0
>         cmddata = {pid = -1566074894, idx = 10935, argc = -1566287440,
>   argv = 
> "▒*\000\000\000\000\000\000\000\000\000\000▒\233<▒▒\177\000\000\000\000\000\000\000\000\000\000\220\232<▒▒\177\000\000{▒
> ▒8", '\0' <repeats 31 times>,
> "\003\000\n\000\200▒<▒▒\177\000\000`^▒▒▒*\000\000x▒\024\000\000\000\000\000x▒T▒8\000\000\000\220\237<▒▒\177\000\000\027\000\000\000\000\000\000\000ȥ▒\a▒▒▒▒▒\030E\000\000\000\000\000▒\234<▒▒\177\000\000\001\000\000\000\000\000\000\000▒▒
> ▒8", '\0' <repeats 11 times>, "▒\003\000\000\n", '\0' <repeats 11
> times>, "\002\000\000\000\000\000\000\000\000▒<▒▒\177\000\000\203▒
> ▒8\000\000\000▒Y▒▒▒*\000\000\000\000\000"...}
>         cmdflags = 7
>         fd = -1566218341
>         msg = MSG_COMMAND
>         cause = 0xfffffffff420b983 <Address 0xfffffffff420b983 out of bounds>
> #7  0x00000000004355ef in main (argc=0, argv=0x7fffe13ca490) at tmux.c:513
>         pw = (struct passwd *) 0x0
>         oo = (struct options *) 0x6793a0
> ---Type <return> to continue, or q <return> to quit---
>         so = (struct options *) 0x679380
>         wo = (struct options *) 0x678330
>         keylist = (struct keylist *) 0x12a1e370
>         s = 0x7fffe13ce6e2 "vim"
>         path = 0x12a1f550 ""
>         label = 0x12a1f530 "0▒\022"
>         home = 0x7fffe13cf123 "/home/szkoda"
>         var = (char **) 0x7fffe13cacb8
>         opt = -1
>         flags = 1
>         quiet = 0
>         keys = 1
>         __func__ = "main"
> (gdb)

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to