Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
It's ok, the problem is that when NetBSD implemented strnvis they rather stupidly changed the argument order and FreeBSD picked up the functions from them. Please give the configure.ac change in my last mail a go. Thanks On Mon, Dec 02, 2013 at 07:51:17PM -0500, Eitan Adler wrote: > On Mon, Dec

Re: Fwd: tmux failed to start server

2013-12-02 Thread Balaji Venkataraman
On Mon, Dec 2, 2013 at 4:38 PM, wrote: > If you run eg "touch ./tmux.c; make" in the source directory now, what > are the commands it outputs? $ touch ./tmux.c; make gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" -DPACKAGE_VERSION=\"1.8\" -DPACKAGE_STRING=\"tmux\ 1.8\" -DPACKAGE_BUGREPORT

Re: Segfault when doing "tmux info"

2013-12-02 Thread Eitan Adler
On Mon, Dec 2, 2013 at 6:55 PM, Nicholas Marriott wrote: > Honestly, you are not making this easy... I'm sorry... I'm trying to provide what you are asking for; I supplied *ent previously but will supply it again here. gdb$ up #1 0x000800fec57f in ?? () from /lib/libc.so.7 gdb$ up #2 0x00

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
try this please, although i'm not sure if this is what i want to do at least i'll know if it works you'll need to rerun autogen.sh and then configure diff --git a/configure.ac b/configure.ac index ceb37db..644b283 100644 --- a/configure.ac +++ b/configure.ac @@ -312,6 +312,16 @@ AM_CONDITIONAL(NO

Fwd: tmux failed to start server

2013-12-02 Thread Balaji Venkataraman
Re-sending with gzipped config.log as the msg. size was too large. On Mon, Dec 2, 2013 at 3:57 PM, Nicholas Marriott wrote: > Are you very sure that you are pointing tmux LD_LIBRARY_PATH to the same > libevent version as you built again? > > If you used old libevent headers with new libevent libr

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
Never mind, looks like FreeBSD's strnvis argument order is different from OpenBSD's, looking to see when that happened. On Mon, Dec 02, 2013 at 11:55:32PM +, Nicholas Marriott wrote: > Honestly, you are not making this easy... > > Could you just do "p *ent" and "p *code" from this frame in

Re: tmux failed to start server

2013-12-02 Thread Nicholas Marriott
Are you very sure that you are pointing tmux LD_LIBRARY_PATH to the same libevent version as you built again? If you used old libevent headers with new libevent libraries or vice versa it will probably not work. Please show me the configure line you used. On Mon, Dec 02, 2013 at 03:50:45PM -08

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
Honestly, you are not making this easy... Could you just do "p *ent" and "p *code" from this frame in gdb? With -O0 you should hopefully see something like: (gdb) p *ent $1 = {code = TTYC_BEL, type = TTYCODE_STRING, name = 0x3c00cf68 "bel"} (gdb) p *code $2 = {type = TTYCODE_STRING, value = {str

tmux failed to start server

2013-12-02 Thread Balaji Venkataraman
Hi - I downloaded and built tmux-1.8 (also had to download and install libevent-2.0 locally). I don't have root access on this machine. I'm not able to get tmux to work and after going through various mailings lists/questions, I still don't have an answer to why tmux fails to run. I have LD_LIBRARY

Re: Segfault when doing "tmux info"

2013-12-02 Thread Eitan Adler
On Mon, Dec 2, 2013 at 4:57 PM, Nicholas Marriott wrote: > yeah give that a try if you can gdb$ p/x ent $1 = 0x478030 gdb$ p/x *ent $2 = { code = 0x1, type = 0x1, name = 0x4789f0 } (lldb) thread backtrace * thread #1: tid = 0, 0x00080104a01b libc.so.7`strlen(str=0x0050) + 1

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
yeah give that a try if you can On Mon, Dec 02, 2013 at 04:52:50PM -0500, Eitan Adler wrote: > On Mon, Dec 2, 2013 at 10:09 AM, Nicholas Marriott > wrote: > > I need to see inside the ent and code structures. Can you use gdb and > > then do "p *ent" and "p *code" from frame 3? Or whatever frame i

Re: Segfault when doing "tmux info"

2013-12-02 Thread Eitan Adler
On Mon, Dec 2, 2013 at 10:09 AM, Nicholas Marriott wrote: > I need to see inside the ent and code structures. Can you use gdb and > then do "p *ent" and "p *code" from frame 3? Or whatever frame it shows > is in cmd_server_info_exec. gdb says "No symbol "ent" in current context." lldb says (const

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
I need to see inside the ent and code structures. Can you use gdb and then do "p *ent" and "p *code" from frame 3? Or whatever frame it shows is in cmd_server_info_exec. On Mon, Dec 02, 2013 at 09:52:19AM -0500, Eitan Adler wrote: > On Mon, Dec 2, 2013 at 3:52 AM, Nicholas Marriott > wrote: > >

Re: Segfault when doing "tmux info"

2013-12-02 Thread Eitan Adler
On Mon, Dec 2, 2013 at 3:52 AM, Nicholas Marriott wrote: > Show me "bt full" from gdb please gdb761$ bt full #0 strlen (str=0x50 ) at /usr/src/lib/libc/string/strlen.c:100 lp = va = vb = p = #1 0x000800fc657f in istrsenvisx (mbdst=0x7fffafd0 "", dlen=

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
Also please go to frame 3 (in cmd_server_info_exec) and show me "p *ent" and "p *code". On Sun, Dec 01, 2013 at 11:31:09PM -0500, Eitan Adler wrote: > Hi all, > > I can reproducibly crash tmux by doing "tmux info". > > Debugging information follows. Please let me know if I can provide > anythi

Re: Segfault when doing "tmux info"

2013-12-02 Thread Nicholas Marriott
Show me "bt full" from gdb please Original message From: Eitan Adler Date: 02/12/2013 04:31 (GMT+00:00) To: tmux-users@lists.sourceforge.net Subject: Segfault when doing "tmux info" Hi all, I can reproducibly crash tmux by doing "tmux info". Debugging information follo