Many thx to Nicholas for the 'C-b w' fix:
Try this please. diff --git a/format.c b/format.c index 0e4e873..5f57c72 100644 --- a/format.c +++ b/format.c @@ -365,6 +365,7 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp) unsigned long long size; u_int i; u_int idx; + const char *cwd; size = 0; for (i = 0; i < gd->hsize; i++) { @@ -390,9 +391,11 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp) format_add(ft, "pane_start_command", "%s", wp->cmd); if (wp->cwd != NULL) format_add(ft, "pane_start_path", "%s", wp->cwd); - format_add(ft, "pane_current_path", "%s", osdep_get_cwd(wp->fd)); + if ((cwd = osdep_get_cwd(wp->fd)) != NULL) + format_add(ft, "pane_current_path", "%s", cwd); format_add(ft, "pane_pid", "%ld", (long) wp->pid); - format_add(ft, "pane_tty", "%s", wp->tty); + if (wp->tty != NULL) + format_add(ft, "pane_tty", "%s", wp->tty); } void On Sat, Feb 02, 2013 at 10:53:59AM -0000, Adrian Haughton (BLOOMBERG/ LONDON) wrote: > Hi, > > There's a core, mdb stack shows: > > > ::stack > libc.so.1`strlen+0x50(8db4a, ffbfe7dc, ffbfdec9, 0, 0, 0) > libc.so.1`vsnprintf+0x6c(0, 0, 8db48, ffbfe7d8, 7ffffc00, ff13a518) > vasprintf+0x28(dbc54, 8db48, ffbfe7d8, 8de10, 1010101, 80808080) > xvasprintf+0x1c(dbc54, 8db48, ffbfe7d8, ff1392a4, 0, 7400) > format_add+0x5c(e7658, 8de00, 8db48, 0, 0, 0) > format_window_pane+0x3d8(e7658, eab50, e5ac0, 0, ff262a00, d7bc0) > window_choose_add_window+0x12c(eab50, ffbfead0, e5f70, e5ac0, d5500, d1a68) > cmd_choose_tree_exec+0x728(cef68, ffbfead0, 0, 0, 0, 0) > cmd_exec+0x20(cef68, ffbfead0, 0, 2001, 0, 4) > cmd_list_exec+0xc8(cef50, ffbfead0, d9188, ff1392a4, 0, ffbfead0) > key_bindings_dispatch+0x104(c9b18, eb1d0, 0, 10218, 0, 0) > server_client_handle_key+0x7cc(eb1d0, 77, 1, 0, 1, 0) > tty_keys_next+0x668(fb260, 0, 0, 0, 0, 0) > tty_read_callback+0x18(d52a8, fb260, d52a8, 3c550, 1, d52a8) > libevent-2.0.so.5`bufferevent_readcb+0x168(d52a8, 2, d52a8, 4a930, 2, 4000) > libevent-2.0.so.5`event_process_active_single_queue+0xcc(bede8, bb6e0, 1, > 4a6b4 > , ff226750, deaddc00) > libevent-2.0.so.5`event_process_active+0x30(bede8, 0, 46764, 1, 1, beec4) > libevent-2.0.so.5`event_base_loop+0x4fc(bede8, 1, ff1f64dc, 1, 49f04, 1) > server_loop+0x20(5f88c, bede8, ba5e8, 481b4, 49354, 0) > server_start+0x580(4, c7368, ba670, a7150, feff861c, 4) > client_connect+0x1e4(ba670, 1, ffbff124, 0, 0, 1) > client_main+0x23c(3, ffbffa6c, 8, 0, ff262a00, bede8) > main+0x974(5, ffbffa64, ffbffa7c, ba65c, ff260140, 0) > _start+0x5c(0, 0, 0, 0, 0, 0) > > > > ::regs > %g0 = 0x0000000000000000 %l0 = 0x00000073 > %g1 = 0x0000000063687367 %l1 = 0x00000000 > %g2 = 0x00000000000d7170 %l2 = 0x00000000 > %g3 = 0xfffffffffffe850c %l3 = 0x00001000 > %g4 = 0xffffffffffffffff %l4 = 0x00000000 > %g5 = 0x0000000000000000 %l5 = 0x00000000 > %g6 = 0x0000000000000000 %l6 = 0xff134b31 libc.so.1`_ctype+1 > %g7 = 0x00000000ff262a00 %l7 = 0x00000000 > %o0 = 0x0000000000000000 %i0 = 0x0008db4a > %o1 = 0x00000000fffffaf0 %i1 = 0xffbfe7dc > %o2 = 0x0000000000000000 %i2 = 0xffbfdec9 > %o3 = 0x000000000000002d %i3 = 0x00000000 > %o4 = 0x0000000000000000 %i4 = 0x00000000 > %o5 = 0x000000000000002b %i5 = 0x00000000 > %o6 = 0x00000000ffbfd910 %i6 = 0xffbfe5a0 > %o7 = 0x00000000ff09d67c libc.so.1`_ndoprnt+0x1b40 %i7 = 0xff09fd9c > libc.so.1`vsnprintf+0x6c > > %psr = 0xfe400001 impl=0xf ver=0xe icc=nZvc > ec=0 ef=0 pil=0 s=0 ps=0 et=0 cwp=0x1 > %y = 0x00000000 > %pc = 0xff0320d0 libc.so.1`strlen+0x50 > %npc = 0xff0320d4 libc.so.1`strlen+0x54 > %sp = 0xffbfd910 > %fp = 0xffbfe5a0 > > %wim = 0x00000000 > %tbr = 0x00000000 > > > > <pc-8/4i > libc.so.1`strlen+0x48: add %o2, 0x1, %o2 > add %o2, 0x1, %o2 > ld [%o2], %o1 > sethi %hi(0x1010000), %o4 > > > > <pc ::dis -n 2 > libc.so.1`strlen+0x48: add %o2, 0x1, %o2 > libc.so.1`strlen+0x4c: add %o2, 0x1, %o2 > libc.so.1`strlen+0x50: ld [%o2], %o1 << Fails here > libc.so.1`strlen+0x54: sethi %hi(0x1010000), %o4 > libc.so.1`strlen+0x58: sethi %hi(0x80808000), %o5 > > > > > > ----- Original Message ----- > From: nicholas.marri...@gmail.com > To: adrian.haugh...@ntlworld.com > Cc: tmux-users@lists.sourceforge.net > At: Feb 2 2013 10:48:18 > > Is there a core or can you attach a debugger before doing this so we can > get a backtrace? > > > > On Sat, Feb 02, 2013 at 10:03:39AM +0000, Adrian Haughton wrote: > > Hi, > > > > I recently compiled tmux 1.7 for Solaris and it's all fine other than the > > key sequence 'C-b w' which causes a sigsegv: > > > > Incurred fault #6, FLTBOUNDS %pc = 0xFF0320D0 > > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000 > > Received signal #11, SIGSEGV [default] > > siginfo: SEGSEGV SEGV_MAPERR addr=0x00000000 > > > > Any ideas please? > > > > Cheers, > > > > Adrian > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_jan > > _______________________________________________ > > tmux-users mailing list > > tmux-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/tmux-users > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users