[MacPorts] #67539: openssh @9.3p1_1 Nearly all client programs crash with Segmentation Fault.

MacPorts noreply at macports.org
Thu Jun 1 08:59:27 UTC 2023


#67539: openssh @9.3p1_1 Nearly all client programs crash with Segmentation Fault.
------------------------+----------------------
  Reporter:  snowflake  |      Owner:  artkiver
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.99
Resolution:             |   Keywords:
      Port:  openssh    |
------------------------+----------------------

Comment (by snowflake):

 I build ssh with debugging symbols with Apple Clang 14 and got this:

 {{{
 Process 87087 launched:
 '/opt/local/var/macports/build/_Users_davidevans_macports_sources_github
 .com_macports_macports-ports_net_openssh/openssh/work/openssh-9.3p1/ssh'
 (x86_64)
 Process 87087 stopped
 * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
 (code=1, address=0x0)
     frame #0: 0x00007ff819b39a82
 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 194
 libsystem_platform.dylib`:
 ->  0x7ff819b39a82 <+194>: movb   (%rsi,%r8), %cl
     0x7ff819b39a86 <+198>: movb   %cl, (%rdi,%r8)
     0x7ff819b39a8a <+202>: subq   $0x1, %rdx
     0x7ff819b39a8e <+206>: je     0x7ff819b39aa4            ; <+228>
 Target 0: (ssh) stopped.
 (lldb) bt
 * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
 (code=1, address=0x0)
   * frame #0: 0x00007ff819b39a82
 libsystem_platform.dylib`_platform_memmove$VARIANT$Haswell + 194
     frame #1: 0x000000010006daf6 ssh`pwcopy(pw=0x0000600003308020) at
 misc.c:462:18 [opt]
     frame #2: 0x0000000100003300 ssh`main(ac=<unavailable>,
 av=0x0000600000008010) at ssh.c:678:7 [opt]
     frame #3: 0x00007ff8197b541f dyld`start + 1903
 (lldb) up
 warning: ssh was compiled with optimization - stepping may behave oddly;
 variables may not be available.
 frame #1: 0x000000010006daf6 ssh`pwcopy(pw=0x0000600003308020) at
 misc.c:462:18 [opt]
    459  {
    460          struct passwd *copy = xcalloc(1, sizeof(*copy));
    461
 -> 462          copy->pw_name = xstrdup(pw->pw_name);
    463          copy->pw_passwd = xstrdup(pw->pw_passwd == NULL ? "*" :
 pw->pw_passwd);
    464  #ifdef HAVE_STRUCT_PASSWD_PW_GECOS
    465          copy->pw_gecos = xstrdup(pw->pw_gecos);
 (lldb)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67539#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list