Ticket #588 (closed crash: fixed)

Opened 12 months ago

Last modified 10 months ago

Xvfb from 2.7.2 missing strndup on Snow Leopard

Reported by: gnwiii@… Owned by: jeremyhu@…
Priority: Blocker Milestone: 2.7.3
Component: xserver Version: 2.7.2 (xserver-1.12.2)
Keywords: Xvfb strndup Cc:

Description

Attempting to run Xvfb from Xquartz 2.7.2 on 10.6.8 I get:

$ uname -r
10.8.0
$ ls -l /opt/X11/bin/Xvfb
-rwxr-xr-x  1 root  wheel  2791840 Jun  1 16:15 /opt/X11/bin/Xvfb
$ /opt/X11/bin/Xvfb :2
dyld: lazy symbol binding failed: Symbol not found: _strndup
  Referenced from: /opt/X11/bin/Xvfb
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _strndup
  Referenced from: /opt/X11/bin/Xvfb
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap

http://lists.macosforge.org/pipermail/xquartz-changes/2011-November/001351.html indicates that strndup should always be included for cases where xquartz is compiiled on 10.7 but targets 10.6.

Change History

comment:1 Changed 12 months ago by jeremyhu@…

  • Status changed from new to assigned
  • Priority changed from Not Set to Blocker
  • Milestone set to 2.7.3

Well that just fixed XQuartz. I didn't realize the Xvfb (and maybe other DDXs) were affected as well.

comment:2 Changed 12 months ago by jeremyhu@…

As a workaround, just install 2.7.1, backup /opt/X11/bin/Xvfb, install 2.7.2, then replace its Xvfb with the old one.

comment:3 Changed 11 months ago by jeremyhu@…

  • Status changed from assigned to closed
  • Resolution set to fixed

This will be fixed in the first rc of 2.7.3

comment:4 Changed 10 months ago by xquartz.macosforge.org@…

Any chance Xnest is also affected? Getting the below after upgrade to 2.7.3 rc2

$ Xnest :9 -query 192.168.1.102
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
_XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 2
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for local
dyld: lazy symbol binding failed: Symbol not found: _strndup
  Referenced from: /opt/X11/bin/Xnest
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _strndup
  Referenced from: /opt/X11/bin/Xnest
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap

comment:5 follow-up: ↓ 6 Changed 10 months ago by jeremyhu@…

Yeah, sorry... there was a problem with the fix in 2.7.3_rc2. It will be fixed in 2.7.3.

comment:6 in reply to: ↑ 5 Changed 10 months ago by xquartz.macosforge.org@…

Replying to jeremyhu@…:

Yeah, sorry... there was a problem with the fix in 2.7.3_rc2. It will be fixed in 2.7.3.

Thanks for confirming, I'll wait for .3

comment:7 Changed 10 months ago by jeremyhu@…

No need to wait. It's out.

Note: See TracTickets for help on using tickets.