Many thx to Nicholos 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 2 Feb 2013, at 10:48, Nicholas Marriott <nicholas.marri...@gmail.com> wrote:

> 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

Reply via email to