Ticket #390 (closed usability: fixed)

Opened 3 years ago

Last modified 3 years ago

DISPLAY gets changed incorrectly by X11 libs

Reported by: tgl@… Owned by: jeremyhu@…
Priority: Blocker Milestone: 2.5.1
Component: x11-libs Version: dev (xorg-server-1.8-apple)
Keywords: regression Cc:

Description

A Perl Tk script that worked fine with 2.5.0 (and many previous versions) fails with 2.5.1 beta2, reporting:

_X11TransSocketINETConnect() can't get address for org.macosforge.xquartz:6000: nodename nor servname provided, or not known

couldn't connect to display "org.macosforge.xquartz:0.0" at /Library/Perl/5.10.0/darwin-thread-multi-2level/Tk/MainWindow.pm line 55.

MainWindow->new() at /Users/tgl/lib/listener_frontend.pl line 64

(I hadn't tried beta1 so I'm not sure whether the behavior was different in it.)

Unfortunately this script is part of my daily workflow so it's kind of critical for me :-(

Change History

comment:1 Changed 3 years ago by tgl@…

If you have Perl Tk installed then a sufficient reproducer is

perl -e 'use Tk; MainWindow->new'

comment:2 Changed 3 years ago by tgl@…

Further experimentation shows that ssh X11 forwarding is also broken: on the remote machine I get

org.macosforge.xquartz: unknown host. (nodename nor servname provided, or not known) X connection to localhost:10.0 broken (explicit kill or server shutdown).

Going to have to revert to 2.5.0, since this means that nothing that I want to do with X11 works :-(

comment:3 Changed 3 years ago by tgl@…

On further review, this seems to be caused by the mistaken setting of $DISPLAY that is currently being discussed on xquartz-dev.

comment:4 Changed 3 years ago by jeremyhu@…

  • Status changed from new to closed
  • Version changed from dev (xorg-server-1.8-apple) to 2.5.0 (xserver-1.7)
  • Resolution set to invalid
  • Milestone set to 2.5.1

comment:5 Changed 3 years ago by jeremyhu@…

  • Status changed from closed to reopened
  • Component changed from xserver to x11-libs
  • Summary changed from Perl Tk can't connect to 2.5.1_beta2 to DISPLAY gets changed incorrectly by X11 libs
  • Priority changed from major to blocker
  • Version changed from 2.5.0 (xserver-1.7) to dev (xorg-server-1.8-apple)
  • Resolution invalid deleted

comment:6 Changed 3 years ago by jeremyhu@…

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

comment:7 Changed 3 years ago by jeremyhu@…

This will be fixed in 2.5.1_beta3 or 2.5.1_rc1

Note: See TracTickets for help on using tickets.