rendered paste bodyFrom: Peter Zelezny <zed@xchat.org>
To: Yuri Pankov <yuri.pankov@gmail.com>
Subject: Re: xchat-2.8.2 crashes when compiled with --enable-socks
Date: Mon, 7 May 2007 16:17:45 +1000
X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.8; i686-pc-linux-gnu)
Message-Id: <20070507161745.3379b82d.zed@xchat.org>
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.5
On Mon, 7 May 2007 10:03:38 +0400
"Yuri Pankov" <yuri.pankov@gmail.com> wrote:
> Hi,
>
> Xchat-2.8.2 crashes at startup when compiled with --enable-socks.
>
> FreeBSD darklight.abyss 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon May 7
> 08:34:40 MSD 2007
> root@darklight.abyss:/usr/obj/usr/src/sys/DARKLIGHT amd64
>
> socks5-1.0.11
>
> CFLAGS:
> -pipe -g
>
> configure args:
> --enable-nls --enable-ipv6 --enable-socks --disable-python
> --enable-tcl=no --disable-dbus --disable-spell --enable-perl
> --prefix=/usr/local --build=amd64-portbld-freebsd7.0
>
> backtrace:
>
> GNU gdb 6.1.1 [FreeBSD]
[snip]
> [New Thread 0x803619400 (LWP 100076)]
>
> Program exited normally.
>
> (here I just select "Skip network list at startup" and press "Close")
>
> (gdb) run
> Starting program: /usr/local/bin/xchat
> warning: Unable to get location for thread creation breakpoint: generic error
> [New LWP 100115]
> [New Thread 0x803619400 (LWP 100115)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x803619400 (LWP 100085)]
> 0x00000008033c8516 in _fmt (format=0x5bd6f3 "H:%M] ", t=0x396a140,
> pt=0x7fffffffd691 "�\003\b", ptlim=0x7fffffffd710 "",
> warnp=0x7fffffffd63c) at /usr/src/lib/libc/stdtime/strftime.c:247
> 247 pt = _conv(t->tm_hour,
> fmt_padding[PAD_FMT_SHMS][PadIndex],
> (gdb) bt full
> #0 0x00000008033c8516 in _fmt (format=0x5bd6f3 "H:%M] ", t=0x396a140,
> pt=0x7fffffffd691 "�\003\b", ptlim=0x7fffffffd710 "",
> warnp=0x7fffffffd63c) at /usr/src/lib/libc/stdtime/strftime.c:247
> year = 6018801
> yday = 0
> wday = 2
> w = 0
> Ealternative = 0
> Oalternative = 0
> PadIndex = 0
> tptr = (struct lc_time_T *) 0x803581c40
> #1 0x00000008033c8bec in strftime (s=0x7fffffffd690 "[�\003\b",
> maxsize=128, format=0x5bd6f1 "[%H:%M] ", t=0x396a140)
> at /usr/src/lib/libc/stdtime/strftime.c:95
> p = 0x80 <Error reading address 0x80: Bad address>
> warn = 0
Hi,
Are you saying it doesn't crash without --enable-socks? That option is obsolete,
I wouldn't use it. It only adds -lsocks to the link line, but nothing more
useful than that.
Maybe something wrong with libc, those inputs to strftime look fine to me. I don't
think I can help debug a freebsd/64-bit system.
Regards,
Peter.