kern/161159: FreeBSD-SA-11:05.unix patch causes Linux emulator X
error
Hiroshi Saeki
h-saeki at wmail.plala.or.jp
Fri Sep 30 14:20:10 UTC 2011
>Number: 161159
>Category: kern
>Synopsis: FreeBSD-SA-11:05.unix patch causes Linux emulator X error
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 30 14:20:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Hiroshi Saeki
>Release: FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD freud.jp-media-lab.com.local 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #5: Mon Sep 12 17:43:09 JST 2011 hiroshi at freud.jp-media-lab.com.local:/usr/obj/usr/src/sys/GENERIC amd64
H/W :Dell XPS Notebook L501X
¢÷ My own environment
Operating System : FreeBSD/amd64 8.2-RELEASE-p3
Xorg related:
foo at bar~% pkg_info -Ix xorg
linux-f10-xorg-libs-7.4_1
xorg-7.5.1
xorg-apps-7.5.1
xorg-cf-files-1.0.4
xorg-docs-1.4,1
xorg-drivers-7.5.1
xorg-fonts-100dpi-7.5.1
xorg-fonts-7.5.1
xorg-fonts-75dpi-7.5.1
xorg-fonts-cyrillic-7.5.1
xorg-fonts-miscbitmaps-7.5.1
xorg-fonts-truetype-7.5.1
xorg-fonts-type1-7.5.1
xorg-libraries-7.5.1
xorg-macros-1.15.0
xorg-server-1.7.7_2,1
Linux related:
foo at bar~% pkg_info -Ix linux
ja-linux-JM-20050615
linux-americasarmy-2.5.0_1
linux-f10-alsa-lib-1.0.21_1
linux-f10-alsa-plugins-oss-1.0.21_2
linux-f10-aspell-0.60.6
linux-f10-atk-1.24.0
linux-f10-cairo-1.8.0_1
linux-f10-curl-7.19.6_1
linux-f10-cyrus-sasl2-2.1.22_1
linux-f10-dbus-glib-0.76
linux-f10-dbus-libs-1.2.4
linux-f10-expat-2.0.1
linux-f10-flashplugin-10.3r183.10
linux-f10-fontconfig-2.6.0
linux-f10-gtk2-2.14.7_3
linux-f10-hicolor-icon-theme-0.5
linux-f10-jpeg-6b
linux-f10-libasyncns-0.7
linux-f10-libsigc++20-2.2.2
linux-f10-libssh2-0.18
linux-f10-libv4l-0.6.2
linux-f10-nas-libs-1.9.1
linux-f10-nspr-4.7.6
linux-f10-nss-3.12.3.99.3_1
linux-f10-openldap-2.4.12_1
linux-f10-openssl-0.9.8g
linux-f10-pango-1.28.3
linux-f10-png-1.2.37_1
linux-f10-sdl-1.2.13
linux-f10-sdl_image-1.2.6_2
linux-f10-sqlite3-3.5.9_1
linux-f10-tiff-3.8.2
linux-f10-xorg-libs-7.4_1
linux-firefox-devel-3.5.19
linux-libgtkembedmoz-0.0.20100806
linux-mplayerplug-in-3.55_2 Embed MPlayer into browser
linux-nvu-1.0_2
linux-opera-11.50
linux-realplayer-10.0.9.809.20070726_1
linux-seamonkey-2.0.14
linux-sun-jdk-1.6.0.24
linux_base-f10-10_4
linux_base-fc-4_15
linux_v4l2wrapper-kmod-1.0_2
linuxdoc-1.1_1
linuxlibertine-4.4.1_1
opera-linuxplugins-11.50
above all, I tried:
linux-firefox-devel-3.5.19
linux-opera-11.50
ja-acroread8-8.1.7_3
¢÷ compiled from mailing list
from freebsd-questions at freebsd.org
FreeBSD 9-Beta3 and FlashPlayer
thread, beginning from Thu, 29 Sep 2011 09:45:49 +0200
Operating System: FreeBSD 9.0-BETA3
Linux related:
linux-f10-flashplugin-10.3r183.10
nspluginwrapper-1.4.4
firefox-7.0_1,1 (FreeBSD native)
from freebsd-ports at freebsd.org
Re: FreeBSD 9-Beta3 and FlashPlayer
thread, beginning from Thu, 29 Sep 2011 10:45:48 +0200
Operating System: FreeBSD 9.0-BETA3
FreeBSD 8.3-p3
Linux related:
linux-f10-flashplugin-10.3r183.10
nspluginwrapper-1.4.4
firefox-7.0_1,1 (FreeBSD native)
Linuxulator X11 broken?
thread, beginning from Thu, 29 Sep 2011 12:50:55 +0100
Operating System: 8.2-STABLE FreeBSD 8.2-STABLE #8: Thu Sep 29
10:11:04 BST 2011 on amd64
Linux realted:
flash plugin
skype
citrix
>Description:
¢÷ On my own environment
I upgraded my
FreeBSD/amd64 8.2-RELEASE-p2
system to
FreeBSD/amd64 8.2-RELEASE-p3
by way of
# make world
# make kernel
On my
gnome2-2.32.1_3
desktop environment,
linux-firefox-devel-3.5.19
linux-opera-11.50
ja-acroread8-8.1.7_3
cannot be started.
They can't open display.
log :
linux-firefox-devel-3.5.19
(process:3287): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error: cannot open display: :0.0
linux-opera-11.50
opera: cannot connect to X server :0.0. Error: Invalid argument
ja-acroread8-8.1.7_3
mkdir: cannot create directory `/home': Permission denied
cp: cannot create regular file `/home/foo/.adobe/Acrobat/8.0/Preferences/mozilla/prefs.js': No such file or directory
(process:3348): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(acroread:3348): Gtk-WARNING **: cannot open display: :0.0
I
# portupgrade -fv
linux_base-f10-10_4
linux-f10-xorg-libs-7.4_1
linux-f10-gtk2-2.14.7_3
,but nothing changed.
I searched google by the words of
FreeBSD linux-firefox Error: cannot open display: :0.0
and knew that also on
FreeBSD 9.0-BETA3
FreeBSD/amd64 8.2-STABLE Thu Sep 29 10:11:04 BST 2011
environment, linux application don't start.
I guessed that these errors have relavance to
recent changes to FreeBSD source code itself.
Especially, kernel source code change is suspicious.
So I reverted only kernel to that of
FreeBSD/amd64 8.2-RELEASE-p2.
Andlinux-firefox-devel-3.5.19
linux-opera-11.50
ja-acroread8-8.1.7_3
work fine.
To take error log,
I installed kernel of
FreeBSD/amd64 8.2-RELEASE-p3
and errors occur again.
After finishing taking log,
I installed kernel of
FreeBSD/amd64 8.2-RELEASE-p2
and error ceased.
This error is reproductive.
According to
freebsd-questions at freebsd.org
freebsd-ports at freebsd.org
mailing list,
on other people's
FreeBSD 8.2-RELEASE-p3
system, same errors occur.
Even on
FreeBSD 9.0-BETA3
FreeBSD/amd64 8.2-STABLE Thu Sep 29 10:11:04 BST 2011
systems, same errors occur.
Perhaps patch file in FreeBSD Security Advisory
is problematic.
FreeBSD-SA-11:04.compress
is patch for userland command,
so this has no relavance to errors.
FreeBSD-SA-11:05.unix
is patch for kernel,
so this is suspicious.
Someone needs to modify
CVS:
Branch Revision
Path
- -------------------------------------------------------------------------
RELENG_7
src/sys/kern/uipc_usrreq.c 1.206.2.13
RELENG_7_4
src/sys/kern/uipc_usrreq.c 1.206.2.11.4.2
RELENG_7_3
src/sys/kern/uipc_usrreq.c 1.206.2.11.2.2
RELENG_8
src/sys/kern/uipc_usrreq.c 1.233.2.6
RELENG_8_2
src/sys/kern/uipc_usrreq.c 1.233.2.2.2.2
RELENG_8_1
src/sys/kern/uipc_usrreq.c 1.233.2.1.4.2
RELENG_9
src/sys/kern/uipc_usrreq.c 1.244.2.2
- ------------------------------------------------------------------------
I'm sorry, but I am no programmer.
All I can is to submit report,
I can not submit patch.
¢÷ additonal information compiled from
mailing list:
From: Andrew <andrew at flarn.com>
To: freebsd-ports at freebsd.org
Subject: Linuxulator X11 broken?
Date: Thu, 29 Sep 2011 12:50:55 +0100
Sender: owner-freebsd-ports at freebsd.org
> part of ktrace of skype failing to launch:
>
> 64328 skype CALL linux_socketcall(0x1,0xffffca00)
> 64328 skype RET linux_socketcall 7
> 64328 skype CALL linux_socketcall(0x3,0xffffca00)
> 64328 skype STRU struct sockaddr { AF_LOCAL, invalid }
> 64328 skype RET linux_socketcall -1 errno 2 No such file or directory
> 64328 skype CALL close(0x7)
> 64328 skype RET close 0
> 64328 skype CALL linux_socketcall(0x1,0xffffca00)
> 64328 skype RET linux_socketcall 7
> 64328 skype CALL linux_socketcall(0x3,0xffffca00)
> 64328 skype STRU struct sockaddr { AF_LOCAL, /tmp/.X11-unix/X0 }
> 64328 skype RET linux_socketcall -1 errno 22 Invalid argument
> 64328 skype CALL close(0x7)
> 64328 skype RET close 0
> 64328 skype CALL write(0x6,0x9700e01,0x1)
> 64328 skype GIO fd 6 wrote 1 byte
> "@"
> 64328 skype RET write 1
> 64328 skype CALL close(0x6)
> 64328 skype RET close 0
> 64328 skype CALL close(0x5)
> 64328 skype RET close 0
> 64328 skype CALL linux_rt_sigaction(0x11,0xffffca28,0xffffc99c,0x8)
> 64328 skype RET linux_rt_sigaction 0
> 64328 skype CALL linux_exit_group(0x1)
>
From: kaltheat <kaltheat at googlemail.com>
To: freebsd-ports at freebsd.org
Subject: Re: Linuxulator X11 broken?
Date: Thu, 29 Sep 2011 23:11:02 +0200
Sender: owner-freebsd-ports at freebsd.org
> ktrace of firefox trying to play flash via npviewer(nsplugin wrapper)
> shows this:
>
> 31900 initial thread RET nanosleep 0
> 31900 initial thread CALL connect(0x15,0x809241d18,0x42)
> 31900 initial thread STRU struct sockaddr { AF_LOCAL, invalid }
> 31900 initial thread NAMI
> "/tmp/_org_wrapper_NSPlugins_libflashplayer.so_31900-2_1804289383"
> 31900 initial thread RET connect -1 errno 2 No such file or directory
> 31900 initial thread CALL nanosleep(0x7fffffffca30,0x7fffffffca40)
> 31900 initial thread RET nanosleep 0
> 31900 initial thread CALL connect(0x15,0x809241d18,0x42)
> 31900 initial thread STRU struct sockaddr { AF_LOCAL, invalid }
> 31900 initial thread NAMI
> "/tmp/_org_wrapper_NSPlugins_libflashplayer.so_31900-2_1804289383"
> 31900 initial thread RET connect -1 errno 2 No such file or directory
> 31900 initial thread CALL nanosleep(0x7fffffffca30,0x7fffffffca40)
> 31900 initial thread RET nanosleep 0
> 31900 initial thread CALL unlink(0x8093cd150)
> 31900 initial thread NAMI
> "/tmp/_org_wrapper_NSPlugins_libflashplayer.so_31900-2_1804289383"
> 31900 initial thread RET unlink -1 errno 2 No such file or directory
> 31900 initial thread CALL close(0x15)
> 31900 initial thread RET close 0
> 31900 initial thread CALL write(0x2,0x7fffffffc2d0,0x19)
> 31900 initial thread GIO fd 2 wrote 25 bytes
> "*** NSPlugin Wrapper *** "
> 31900 initial thread RET write 25/0x19
> 31900 initial thread CALL write(0x2,0x7fffffffc3b0,0x3e)
> 31900 initial thread GIO fd 2 wrote 62 bytes
> "ERROR: failed to initialize plugin-side RPC client connection
> "
>
>
>How-To-Repeat:
¢÷ On my own environment
These errors are reproductive always
using
FreeBSD/amd64 8.2-RELEASE-p3
kernel.
¢÷ information compiled from
mailing list
These errors are reproductive always
using
FreeBSD 8.2-RELEASE-p3
FreeeBSD/amd64 8.2-STABLE FreeBSD 8.2-STABLE #8: Thu Sep 29
10:11:04 BST 2011
FreeBSD 9.0-BETA3
kernels.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list