Package: libssh-4
Version: 0.8.6-2
Severity: normal

Dear Maintainer,

There are several cockpit tests that fail on hppa.  For example, when I
run test-sshbridge, the following backtrace is generated:

dave@mx3210:~/debian/cockpit/cockpit-185$ ./test-sshbridge
/ssh-bridge/echo-message: 120   ../sysdeps/hppa/dl-machine.h: No such file or 
directory.
#0  0xf8bf9894 in elf_machine_fixup_plt
#1  0xf8bf9894 in _dl_fixup (l=<optimized out>, reloc_arg=<optimized out>)
#2  0x000228e0 in gdb_stack_trace () at src/common/cockpittest.c:676
#3  0x000228e0 in cockpit_test_signal_backtrace (sig=-110285496)
#4  0xf96d2a14 in <signal handler called> ()
#5  0xf715a41c in  () at /usr/lib/hppa-linux-gnu/libssh.so.4
#6  0xf718d5bc in crypto_scalarmult_curve25519_ref ()
#7  0xf718ca0c in crypto_scalarmult_curve25519_ref_base ()
#8  0xf715590c in ssh_client_curve25519_init (session=0x20)
#9  0xf71515c0 in dh_handshake (session=0x20) at ./src/client.c:267
#10 0xf71515c0 in ssh_client_connection_callback (session=0x20)
#11 0xf715b068 in ssh_packet_kexinit
#12 0xf71667f8 in ssh_packet_process (session=0x1a, type=1 '\001')
#13 0xf7166fc4 in ssh_packet_socket_callback
#14 0xf7172730 in ssh_socket_pollcallback
#15 0xf716e95c in ssh_poll_ctx_dopoll (ctx=0x1, timeout=<optimized out>)
#16 0xf716fa8c in ssh_handle_packets (session=0x20, timeout=<optimized out>)
#17 0xf716fb88 in ssh_handle_packets_termination
#18 0xf7151bf8 in ssh_connect (session=0x20) at ./src/client.c:580
#19 0x0001999c in cockpit_ssh_connect
#20 0x0001999c in cockpit_ssh_relay_start (outfd=-110290132, self=0x20)
#21 0x0001999c in cockpit_ssh_relay_new
#22 0x00016554 in main (argc=<optimized out>, argv=<optimized out>)
Error: signal Segmentation fault:
/home/dave/debian/cockpit/cockpit-185/cockpit-ssh[0x228ec]

** (mock-sshd:15409): CRITICAL **: 17:36:37.579: key exchange failed: Socket 
error: disconnected
Alarm clock

The fault in frame 5 occurs in a long branch stub.  It is caused because
the PIC register, $r19, has been corrupted.  When I disabled
crypto_scalarmult_curve25519_ref (), it appears that it was not compiled
as PIC code, yet the stub assumes it has been called from PIC code.  This
causes the segmentation fault.

So far, I haven't figured out how crypto_scalarmult_curve25519_ref and
crypto_scalarmult_curve25519_ref_base are built.

Regards,
Dave Anglin

-- System Information:
Debian Release: buster/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.14.94+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libssh-4 depends on:
ii  libc6             2.28-5
ii  libgssapi-krb5-2  1.17-1
ii  libssl1.1         1.1.1a-1
ii  zlib1g            1:1.2.11.dfsg-1

libssh-4 recommends no packages.

libssh-4 suggests no packages.

-- no debconf information

Reply via email to