On Sun, Jun 17, 2012, at 11:00 PM, Thomas Adam wrote:
> OK, I had to do a few things differently to you.  Does the following
> help?
> 
> diff --git a/trunk/cmd.c b/trunk/cmd.c
> index 7aefeff..09b4922 100644
> --- a/trunk/cmd.c
> +++ b/trunk/cmd.c
> @@ -1303,7 +1303,7 @@ cmd_get_default_path(struct cmd_ctx *ctx, const
> char *cwd)
>               /* Empty or relative path. */
>               if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL)
>                       root = ctx->cmdclient->cwd;
> -               else if (ctx->curclient != NULL)
> +               else if (ctx->curclient != NULL && s->curw != NULL)
>                       root = osdep_get_cwd(s->curw->window->active->pid);
>               else
>                       return (s->cwd);

Yes, this helps! I have applied the patch against the current version (I
am using a git repo synchronized with the svn one), tried to reproduce
the segfault several times but it seems to be fixed. Thanks a lot. I
guess you do not need the  backtrace anymore (if you need it nonetheless
let me know)
Giorgio 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to