Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X apps problem with MIT-SHM #26

Open
bkauler opened this issue Sep 28, 2018 · 1 comment
Open

X apps problem with MIT-SHM #26

bkauler opened this issue Sep 28, 2018 · 1 comment

Comments

@bkauler
Copy link

bkauler commented Sep 28, 2018

The pflask docs show an example of running chromium:

$ pflask --user=$USER --mount=tmp:$HOME -- chromium --disable-setuid-sandbox

However, running Xorg apps, for me anyway, is not that simple. For a start, you would be using the Xorg "abstract socket", which means DISPLAY variable must be set. Yesterday, I did this, to run Leafpad (running as root):

# pflask --chroot=container --keepenv -- leafpad

...with the "--keepenv", it worked, otherwise complained about undefined DISPLAY.

This morning, tried exactly the same thing, this time got a "badaccess" error and leafpad crashed. Why it worked yesterday and not today, I have no idea, however, I do recognise the symptom, it was discussed in the Puppy Forum here:

http://murga-linux.com/puppy/viewtopic.php?p=941005&sid=9a24d5bc588a849a2b155d65740fcb52#941005

So, trying this:

# pflask --chroot=container --keepenv --no-ipcns
# leafpad

...and leafpad works immediately. However, if do this:

# pflask --chroot=container --keepenv
# leafpad
The program 'leafpad' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 354 error_code 10 request_code 130 minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
# leafpad

...then have the problem that have to run leafpad twice. After the first failure, all X apps will run ok first time. The above is not stating that it is a shm problem, maybe it is something else.

If anyone has any thought on this, please contribute. It would be very nice if X apps would run without needing the "--noipcns"!

@ghedo
Copy link
Owner

ghedo commented Oct 1, 2018

FWIW the pflask --user=$USER --mount=tmp:$HOME -- chromium --disable-setuid-sandbox command still works fine for me, but maybe chromium does something special, and the behaviour could be different between different applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants