The kernel msg is just a sign of the program hitting an error

Doing
$ ./mock-sshd --user=bug --port 1234 -v

attaching gdb

and then issuing the client cmd
$ ssh -i test_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 
-p 1234 bug@localhost cat /etc/os-release

leads to this server segfault

Program received signal SIGSEGV, Segmentation fault.
0x000002aa02e02e84 in fd_data (fd=<error reading variable: Cannot access memory 
at address 0x3ffce57fe94>, 
    revents=<error reading variable: Cannot access memory at address 
0x3ffce57fe90>, 
    user_data=<error reading variable: Cannot access memory at address 
0x3ffce57fe88>) at mock-sshd.c:164
164     {
(gdb) bt
#0  0x000002aa02e02e84 in fd_data (fd=<error reading variable: Cannot access 
memory at address 0x3ffce57fe94>, 
    revents=<error reading variable: Cannot access memory at address 
0x3ffce57fe90>, 
    user_data=<error reading variable: Cannot access memory at address 
0x3ffce57fe88>) at mock-sshd.c:164
#1  0x000003ffa9b32128 in ssh_poll_ctx_dopoll (ctx=ctx@entry=0x2aa04d545a0, 
timeout=timeout@entry=-1)
    at /usr/src/libssh-0.10.5-2/src/poll.c:736
#2  0x000003ffa9b33732 in ssh_handle_packets 
(session=session@entry=0x2aa04d54ae0, timeout=timeout@entry=-1)
    at /usr/src/libssh-0.10.5-2/src/session.c:682
#3  0x000003ffa9b338e4 in ssh_handle_packets_termination 
(session=session@entry=0x2aa04d54ae0, timeout=<optimized out>, 
    fct=fct@entry=0x3ffa9b33d30 <ssh_flush_termination>, 
user=user@entry=0x2aa04d54ae0)
    at /usr/src/libssh-0.10.5-2/src/session.c:751
#4  0x000003ffa9b33dc6 in ssh_blocking_flush (session=0x2aa04d54ae0, 
timeout=<optimized out>)
    at /usr/src/libssh-0.10.5-2/src/session.c:550
#5  0x000003ffa9b1a0dc in ssh_channel_flush (channel=0x2aa04db9bd0) at 
/usr/src/libssh-0.10.5-2/src/channels.c:1433
#6  ssh_channel_send_eof (channel=0x2aa04db9bd0) at 
/usr/src/libssh-0.10.5-2/src/channels.c:1316
...

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libssh in Ubuntu.
https://bugs.launchpad.net/bugs/2024064

Title:
  libssh dep8 fails on ppc64el/s390x

Status in libssh package in Ubuntu:
  New

Bug description:
  Reporting this bug for documentation purposes.  libssh's dep8 test is
  failing on ppc64el/s390x.

  I tried reproducing it in a ppc64el canonistack box, but the test
  always passes there.  migration-reference/0 didn't help.

  It's interesting to notice that the test succeeds on debci, which
  leads me to believe that this is something really particular to our
  autopkgtest infra.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libssh/+bug/2024064/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to