[Debian-on-mobile-maintainers] Bug#968106: phosh: Shell doesn't start

Michel Le Bihan michel at lebihan.pl
Sat Aug 8 19:09:24 BST 2020


Package: phosh
Version: 0.4.3-1
Severity: grave
Justification: renders package unusable

Hello,

On a freshly created Debian sid live system:
```
sudo mmdebstrap --include=linux-image-amd64,live-boot,xserver-xorg-video-
all,phosh --arch amd64 sid debian-live-root http://ftp.pl.debian.org/debian/
sudo chroot debian-live-root passwd
sudo chroot debian-live-root useradd -m -s /bin/bash -p $(openssl passwd -1
123456) user
sudo chroot debian-live-root systemctl enable phosh
cp debian-live-root/vmlinuz .; cp debian-live-root/initrd.img .
sudo mksquashfs debian-live-root root.squashfs -comp lz4
python3 -m http.server -b localhost 8080
qemu-system-x86_64 -machine accel=kvm -m 4G -device virtio-net-pci,netdev=net0
-serial stdio -monitor vc     -netdev
user,id=net0,hostfwd=tcp::2222-:22,guestfwd=tcp:10.0.2.252:8080-tcp:localhost:8080,hostname=debian-
live     -kernel ./vmlinuz -initrd ./initrd.img -append "console=ttyS0
ip=frommedia boot=live nopersistence
fetch=http://10.0.2.252:8080/root.squashfs"
```
(last command is to start the test VM)

Phosh doesn't start. On the console I see:
```
traps: phoc[362] trap int3 ip:7f684a6d9585 sp:7ffccc2cfe90 error:0 in
libglib-2.0.so.0.6400.4[7f684a69f000+81000]
```

When attempting to start it manually:
```
user at debian:~$ phoc

(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.384:
[backend/session/logind.c:760] Failed to get seat id: No data available

(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.393: [backend/session/direct-
ipc.c:30] Do not have root privileges; cannot become DRM master

(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.396:
[backend/session/session.c:96] Failed to load session backend

(phoc:468): phoc-wlroots-CRITICAL **: 18:03:33.405: [backend/backend.c:286]
Failed to start a DRM session

(phoc:468): phoc-server-ERROR **: 18:03:33.407: Could not create backend
[   76.891092] traps: phoc[468] trap int3 ip:7feeea992585 sp:7ffe555d1130
error:0 in libglib-2.0.so.0.6400.4[7feeea958000+81000]
Trace/breakpoint trap
```

```
user at debian:~$ phoc -E '/usr/bin/phosh -U' -C /usr/share/phosh/phoc.ini

(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.976:
[backend/session/logind.c:760] Failed to get seat id: No data available

(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.978: [backend/session/direct-
ipc.c:30] Do not have root privileges; cannot become DRM master

(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.981:
[backend/session/session.c:96] Failed to load session backend

(phoc:517): phoc-wlroots-CRITICAL **: 18:04:01.983: [backend/backend.c:286]
Failed to start a DRM session

(phoc:517): phoc-server-ERROR **: 18:04:01.986: Could not create backend
```

Starting phosh as root doesn't help:
```
root at debian:~# phosh
/usr/bin/phosh: 12: gnome-session: not found

(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.488:
[backend/session/logind.c:760] Failed to get seat id: No data available

(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.490:
[backend/session/direct.c:176] Could not get current tty number: Inappropriate
ioctl for device

(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.494:
[backend/session/session.c:96] Failed to load session backend

(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.496: [backend/backend.c:195]
failed to start a session

(phoc:558): phoc-wlroots-CRITICAL **: 18:06:37.498: [backend/backend.c:235]
failed to start backend 'drm'

(phoc:558): phoc-server-ERROR **: 18:06:37.500: Could not create backend
```

root at debian:~# phoc -E '/usr/bin/phosh -U' -C /usr/share/phosh/phoc.ini

(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.418:
[backend/session/logind.c:760] Failed to get seat id: No data available

(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.421:
[backend/session/direct.c:176] Could not get current tty number: Inappropriate
ioctl for device

(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.425:
[backend/session/session.c:96] Failed to load session backend

(phoc:611): phoc-wlroots-CRITICAL **: 18:07:10.428: [backend/backend.c:286]
Failed to start a DRM session

(phoc:611): phoc-server-ERROR **: 18:07:10.431: Could not create backend
```

It's also possible that I missed an important step, but I couldn't find
anything related in the doc.

Michel Le Bihan



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'unstable'), (600, 'experimental'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages phosh depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.36.0-1
ii  fonts-lato                                   2.0-2
ii  gsettings-desktop-schemas                    3.36.1-1
ii  libc6                                        2.31-2
ii  libcairo2                                    1.16.0-4
pn  libfeedback-0.0-0                            <none>
ii  libgcr-base-3-1                              3.36.0-2
ii  libgcr-ui-3-1                                3.36.0-2
ii  libgdk-pixbuf2.0-0                           2.40.0+dfsg-5
ii  libglib2.0-0                                 2.64.4-1
ii  libgnome-desktop-3-19                        3.36.4-1
ii  libgtk-3-0                                   3.24.20-1
ii  libhandy-0.0-0                               0.0.13-2
ii  libnm0                                       1.26.0-1
ii  libpam0g                                     1.3.1-5
ii  libpango-1.0-0                               1.44.7-4
ii  libpolkit-agent-1-0                          0.105-29
ii  libpolkit-gobject-1-0                        0.105-29
ii  libpulse-mainloop-glib0                      13.0-5
ii  libpulse0                                    13.0-5
ii  libsecret-1-0                                0.20.3-1
ii  libupower-glib3                              0.99.11-2
ii  libwayland-client0                           1.18.0-1
pn  phoc                                         <none>

Versions of packages phosh recommends:
pn  feedbackd         <none>
ii  gnome-session     3.36.0-2
ii  iio-sensor-proxy  3.0-1

phosh suggests no packages.



More information about the Debian-on-mobile-maintainers mailing list