On Mon, Dec 14, 1998 at 10:46:54 +0100, Niels M�ller wrote:
> "J.H.M. Dassen (Ray)" <[EMAIL PROTECTED]> writes:
> > Linux/Alpha: both client and server dump core. The warnings I used
> > (-Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes
> > -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
> > -Wmissing-declarations -W -Wcast-qual -Wwrite-strings -Wcast-align)
> > don't point to an obvious cause.
> > Client:
>
> > #0 0x15555923ca0 in memmove ()
> > #1 0x1200116f0 in lsh_list_alloc (class=0x1201204b8, length=0,
> > element_size=17179869220) at xalloc.c:171
> > #2 0x1200116f0 in lsh_list_alloc (class=0x1201204b8, length=0,
> > element_size=17179869220) at xalloc.c:171
>
> This looks strange. There are two instances of the same stackframe
> (lsh_list_alloc does *not* recurse or something like that), and the
> element_size argument are ridiculous, as you note. The calls are
> almost certainly instances of the macro
>
> #define alloc_int_list(n) \
> ((struct int_list *) lsh_list_alloc(&CLASS(int_list), (n), sizeof(int)))
>
> I would think that gdb is a little confused.
I suspect so too. I've had a few other cases on that machine where gdb
didn't behave properly.
> I have one hypothesis, for the crash, though: Underflow in the lines
> if length is 0 and size_t is unsigned. Could you try this patch?
It improves things. Connecting gets further now.:
Server (Linux/Alpha):
$ ./lshd -p 4711 -v
server_initiate()
Client version: SSH-2.0-lsh_0.0 lsh - a free ssh
handle_dh_init()
Recieved debug: Key exchange successful!
Garbage collecting while idle...
gc_mark: Memory corrupted!
Aborted
Client (Linux/Intel):
penguin ray 11:24 ~/devel/lsh > ./lsh -v -p 4711 alpha-quadrant.cistron.nl -l
jdassen
Client version: SSH-2.0-lsh_0.0 lsh - a free ssh
Server version: SSH-2.0-lshd_0.0 lsh - a free ssh
handle_dh_reply()
Recieved debug: Key exchange successful!
Password for jdassen:
User authentication successful.
Connection died, for reason 1.
Garbage collecting while idle...
Objects alive: 81, garbage collected: 47
Using lsh on Alpha and lshd on Intel results in "lsh: Connection failed:
Network is unreachable", although the Intel is pingable.
Ray
--
Cyberspace, a final frontier. These are the voyages of my messages,
on a lightspeed mission to explore strange new systems and to boldly go
where no data has gone before.