EXALAB / AnLinux-App

AnLinux allow you to run Linux on Android without root access.
Apache License 2.0
1.6k stars 236 forks source link

Signal 9 #440

Closed Winitom closed 7 months ago

Winitom commented 7 months ago

Hi

~ $ termux-info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=12118
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.sahilister.in/termux/termux-main stable main
Updatable packages:
command-not-found/stable 2.4.0-1 aarch64 [upgradable from: 2.4.0]
termux-tools version:
1.39.5
Android version:
13
Kernel build information:
Linux localhost 5.4.210-qgki-ga0625577f991 #1 SMP PREEMPT Thu Aug 24 13:47:45 UTC 2023 f2fs-hash:9d9bfdfd40 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
2109119DG
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
root@localhost:~# uname -a
Linux localhost 5.4.210-qgki-ga0625577f991 #1 SMP PREEMPT Thu Aug 24 13:47:45 UTC 2023 f2fs-hash:9d9bfdfd40 aarch64 GNU/Linux

Debian in.

root@localhost:~# vncserver-start

New 'remote-desktop' desktop is localhost:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log

root@localhost:~# xfce4-about

(xfce4-about:29051): Gtk-WARNING **: 16:01:24.245: Content added to the action area of a dialog using header bars

(xfce4-about:29051): Gtk-WARNING **: 16:01:24.246: Content added to the action area of a dialog using header bars
glibtop(c=29051): [ERROR] open (/proc/stat): Permission denied
Aborted

But access to this XFCE is possible with AVNC client and Vinagre. After a few seconds client displays gray scale and Termux give a signal 9 -->

Screenshot_2023-12-05-15-23-53-218_com termux

After pressed "Enter" Termux breaks and close.

root@localhost:~# cat /root/.vnc/localhost\:1.log
05/12/23 18:56:15 Xvnc version TightVNC-1.3.10
05/12/23 18:56:15 Copyright (C) 2000-2009 TightVNC Group
05/12/23 18:56:15 Copyright (C) 1999 AT&T Laboratories Cambridge
05/12/23 18:56:15 All Rights Reserved.
05/12/23 18:56:15 See http://www.tightvnc.com/ for information on TightVNC
05/12/23 18:56:15 Desktop name 'remote-desktop' (localhost:1)
05/12/23 18:56:15 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
05/12/23 18:56:15 Listening for VNC connections on TCP port 5901
xrdb: No such file or directory
xrdb: can't open file '/root/.Xresources'
/usr/bin/startxfce4: X server already running on display :1
xfce4-session: No SSH authentication agent found

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.600: XSync extension too old (3.0).

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.602: The display does not support the XRender extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.603: The display does not support the XRandr extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.604: The display does not support the XRes extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.606: The display does not support the XComposite extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.607: The display does not support the XDamage extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.608: The display does not support the XFixes extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.609: The display does not support the XPresent extension.

(xfwm4:10935): xfwm4-WARNING **: 18:56:18.611: Compositing manager disabled.
xfwm4-Message: 18:56:19.131: Unsupported keyboard modifier '<Super>Tab'
xfwm4-Message: 18:56:19.133: Unsupported keyboard modifier '<Super>KP_Up'
xfwm4-Message: 18:56:19.133: Unsupported keyboard modifier '<Super>KP_Left'
xfwm4-Message: 18:56:19.134: Unsupported keyboard modifier '<Super>KP_Right'
xfwm4-Message: 18:56:19.135: Unsupported keyboard modifier '<Super>KP_Down'
xfwm4-Message: 18:56:19.136: Unsupported keyboard modifier '<Super>KP_End'
xfwm4-Message: 18:56:19.136: Unsupported keyboard modifier '<Super>KP_Next'
xfwm4-Message: 18:56:19.137: Unsupported keyboard modifier '<Super>KP_Home'
xfwm4-Message: 18:56:19.138: Unsupported keyboard modifier '<Super>KP_Page_Up'

(xfwm4:10935): xfwm4-WARNING **: 18:56:19.217: Cannot find visual format on screen 0

(xfwm4:10935): GLib-CRITICAL **: 18:56:19.218: g_hash_table_destroy: assertion 'hash_table != NULL' failed

(xfsettingsd:10945): xfsettingsd-CRITICAL **: 18:56:19.605: No RANDR extension found in display :1.0. Display settings won't be applied.
Xlib:  extension "XInputExtension" missing on display ":1.0".

(xfsettingsd:10945): xfsettingsd-CRITICAL **: 18:56:19.606: XI is not present.

(xfsettingsd:10945): xfsettingsd-CRITICAL **: 18:56:19.610: Failed to initialize the Xkb extension.

(xfsettingsd:10945): xfsettingsd-CRITICAL **: 18:56:19.611: Failed to initialize the Accessibility extension.
xfwm4-Message: 18:56:19.765: Unsupported keyboard modifier '<Super>Tab'
xfwm4-Message: 18:56:19.765: Unsupported keyboard modifier '<Super>KP_Up'
xfwm4-Message: 18:56:19.765: Unsupported keyboard modifier '<Super>KP_Left'
xfwm4-Message: 18:56:19.765: Unsupported keyboard modifier '<Super>KP_Right'
xfwm4-Message: 18:56:19.766: Unsupported keyboard modifier '<Super>KP_Down'
xfwm4-Message: 18:56:19.766: Unsupported keyboard modifier '<Super>KP_End'
xfwm4-Message: 18:56:19.766: Unsupported keyboard modifier '<Super>KP_Next'
xfwm4-Message: 18:56:19.766: Unsupported keyboard modifier '<Super>KP_Home'
xfwm4-Message: 18:56:19.767: Unsupported keyboard modifier '<Super>KP_Page_Up'

** (xiccd:10975): CRITICAL **: 18:56:20.695: RandR extension is not working on display :1.0

** (xiccd:10975): CRITICAL **: 18:56:20.720: Failed to connect to colord: Could not connect: No such file or directory
Failure: Module initialization failed

** (light-locker:10980): ERROR **: 18:56:20.845: session_id is not set, is /proc mounted with hidepid>0?

(polkit-gnome-authentication-agent-1:10994): polkit-gnome-1-WARNING **: 18:56:20.884: Error getting authority: Error initializing authority: Could not connect: No such file or directory
[Parent 10960, Main Thread] WARNING: read-only dup failed (Permission denied); not using memfd: file ./ipc/chromium/src/base/shared_memory_posix.cc:255

(xfce4-panel:10948): garcon-CRITICAL **: 18:56:21.070: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed

(xfdesktop:10957): GVFS-RemoteVolumeMonitor-WARNING **: 18:56:21.099: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported

(xfce4-panel:10948): garcon-CRITICAL **: 18:56:21.120: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed

(xfce4-panel:10948): garcon-CRITICAL **: 18:56:21.168: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed

(xfce4-panel:10948): garcon-CRITICAL **: 18:56:21.211: garcon_gtk_menu_get_desktop_actions_menu: assertion 'actions != NULL' failed

** (xfdesktop:10957): WARNING **: 18:56:21.533: Failed to get system bus: Could not connect: No such file or directory

(wrapper-2.0:10968): GLib-GIO-CRITICAL **: 18:56:21.553: g_file_new_for_path: assertion 'path != NULL' failed

(wrapper-2.0:10968): GLib-GIO-CRITICAL **: 18:56:21.553: g_file_monitor_file: assertion 'G_IS_FILE (file)' failed

(wrapper-2.0:10968): GLib-GObject-WARNING **: 18:56:21.554: invalid (NULL) pointer instance

(wrapper-2.0:10968): GLib-GObject-CRITICAL **: 18:56:21.554: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(wrapper-2.0:10968): Gtk-WARNING **: 18:56:21.555: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.
[GFX1-]: glxtest: cannot access /sys/bus/pci

(xfce4-session:10897): xfce4-session-WARNING **: 18:56:21.652: failed to run script: Failed to execute child process “/usr/bin/pm-is-supported” (No such file or directory)

(xfce4-session:10897): xfce4-session-WARNING **: 18:56:21.664: failed to run script: Failed to execute child process “/usr/bin/pm-is-supported” (No such file or directory)

(xfce4-session:10897): xfce4-session-WARNING **: 18:56:21.693: failed to run script: Failed to execute child process “/usr/bin/pm-is-supported” (No such file or directory)

** (wrapper-2.0:10967): WARNING **: 18:56:21.697: Binding 'XF86AudioLowerVolume' failed!

(wrapper-2.0:10967): pulseaudio-plugin-WARNING **: 18:56:21.698: Could not have grabbed volume control keys. Is another volume control application (xfce4-volumed) running?

** (wrapper-2.0:10967): WARNING **: 18:56:21.699: Binding 'XF86AudioPlay' failed!

(wrapper-2.0:10967): pulseaudio-plugin-WARNING **: 18:56:21.699: Could not have grabbed multimedia control keys.

(wrapper-2.0:11010): Gtk-WARNING **: 18:56:21.761: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner XfceArrowButton)

(wrapper-2.0:10968): Gtk-WARNING **: 18:56:21.764: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
system-config-printer-applet: failed to connect to system D-Bus

(wrapper-2.0:10967): Gtk-WARNING **: 18:56:21.914: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PulseaudioButton)
[GFX1]: no fonts - init: 1 fonts: 13 loader: 0
[GFX1]: no fonts - init: 1 fonts: 13 loader: 0
[Parent 10960, IPC I/O Parent] WARNING: process 11159 exited on signal 11: file ./ipc/chromium/src/base/process_util_posix.cc:264
[Parent 10960, IPC I/O Parent] WARNING: process 11205 exited on signal 11: file ./ipc/chromium/src/base/process_util_posix.cc:264

(wrapper-2.0:10967): pulseaudio-plugin-WARNING **: 18:56:43.783: Disconected from the PulseAudio server. Attempting to reconnect in 5 seconds.

(wrapper-2.0:10967): Gtk-WARNING **: 18:56:43.793: Could not find the icon 'audio-volume-muted-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases

(wrapper-2.0:10967): Gtk-WARNING **: 18:56:43.794: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)

(Thunar:10952): thunar-WARNING **: 18:56:43.807: Name 'org.xfce.FileManager' lost on the message dbus.

(Thunar:10952): thunar-WARNING **: 18:56:43.807: Name 'org.freedesktop.FileManager1' lost on the message dbus.

(xfsettingsd:10945): libxfce4ui-WARNING **: 18:56:43.815: ICE I/O Error

(xfsettingsd:10945): libxfce4ui-WARNING **: 18:56:43.816: Disconnected from session manager.
/root/.vnc/xstartup: line 3: 10897 Segmentation fault      startxfce4

(xfwm4:10935): libxfce4ui-WARNING **: 18:56:43.816: ICE I/O Error

(xfwm4:10935): libxfce4ui-WARNING **: 18:56:43.816: Disconnected from session manager.

(xfce4-panel:10948): libxfce4ui-WARNING **: 18:56:43.817: ICE I/O Error

(xfce4-panel:10948): libxfce4ui-WARNING **: 18:56:43.817: Disconnected from session manager.
**
Wnck:ERROR:../libwnck/xutils.c:2348:default_icon_at_size: assertion failed: (base)
Bail out! Wnck:ERROR:../libwnck/xutils.c:2348:default_icon_at_size: assertion failed: (base)

(wrapper-2.0:10968): Gdk-WARNING **: 18:56:43.826: GdkWindow 0x3c00005 unexpectedly destroyed

(wrapper-2.0:10966): Gdk-WARNING **: 18:56:43.832: GdkWindow 0x3000005 unexpectedly destroyed

(wrapper-2.0:10966): GLib-GObject-WARNING **: 18:56:43.833: invalid (NULL) pointer instance

(wrapper-2.0:10966): GLib-GObject-CRITICAL **: 18:56:43.833: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(wrapper-2.0:10966): Gdk-CRITICAL **: 18:56:43.833: gdk_frame_clock_end_updating: assertion 'GDK_IS_FRAME_CLOCK (frame_clock)' failed

(wrapper-2.0:10966): Gdk-ERROR **: 18:56:43.833: The program 'wrapper-2.0' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow'.
  (Details: serial 231 error_code 3 request_code 18 (core protocol) minor_code 0)
  (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 GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Parent 10960, Main Thread] WARNING: pipe error: Function not implemented: file ./ipc/chromium/src/chrome/common/ipc_channel_posix.cc:724
[Parent 10960, Main Thread] WARNING: pipe error: Function not implemented: file ./ipc/chromium/src/chrome/common/ipc_channel_posix.cc:724
[Parent 10960, Main Thread] WARNING: pipe error: Function not implemented: file ./ipc/chromium/src/chrome/common/ipc_channel_posix.cc:724
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

How do could I help ?

Winitom commented 7 months ago

A try with Ubuntu and XFCE give only a grey display after connected with vnc client.

root@localhost:~# vncserver-start                                                                               New 'remote-desktop' desktop is localhost:1             
Starting applications specified in /root/.vnc/xstartup  Log file is /root/.vnc/localhost:1.log                                                                          root@localhost:~# cat /root/.vnc/localhost\:1.log
05/12/23 19:32:33 Xvnc version TightVNC-1.3.10
05/12/23 19:32:33 Copyright (C) 2000-2009 TightVNC Group05/12/23 19:32:33 Copyright (C) 1999 AT&T Laboratories Cambridge
05/12/23 19:32:33 All Rights Reserved.                  05/12/23 19:32:33 See http://www.tightvnc.com/ for information on TightVNC                                      05/12/23 19:32:33 Desktop name 'remote-desktop' (localhost:1)                                                   05/12/23 19:32:33 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t                                        05/12/23 19:32:33 Listening for VNC connections on TCP port 5901                                                Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring                                               Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring                                              xrdb: No such file or directory                         xrdb: can't open file '/root/.Xresources'               /bin/startxfce4: X server already running on display :1
xfce4-session: No SSH authentication agent found        
(xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.689: Failed to spawn gpg-agent: Failed to close file descriptor for child process (Invalid argument)                                                                  (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.715: Unable to launch "xfwm4": Failed to close file descriptor for child process (Invalid argument)                                                                   (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.719: Unable to launch "xfsettingsd": Failed to close file descriptor for child process (Invalid argument)                                                             (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.722: Unable to launch "xfce4-panel": Failed to close file descriptor for child process (Invalid argument)
                                                        (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.726: Unable to launch "Thunar": Failed to close file descriptor for child process (Invalid argument)                                                                  (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.729: Unable to launch "xfdesktop": Failed to close file descriptor for child process (Invalid argument)
                                                        (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.740: Unable to launch "xdg-user-dirs-update" (specified by autostart/xdg-user-dirs.desktop): Failed to close file descriptor for child process (Invalid argument)                                                             (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.746: Unable to launch "xiccd" (specified by autostart/xiccd.desktop): Failed to close file descriptor for child process (Invalid argument)                            
(xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.751: Unable to launch "xfce4-screensaver" (specified by autostart/xfce4-screensaver.desktop): Failed to close file descriptor for child process (Invalid argument)                                                            (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.756: Unable to launch "/usr/lib/aarch64-linux-gnu/xfce4/notifyd/xfce4-notifyd" (specified by autostart/xfce4-notifyd.desktop): Failed to close file descriptor for child process (Invalid argument)                                                                                   (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.764: Unable to launch "xfsettingsd" (specified by autostart/xfsettingsd.desktop): Failed to close file descriptor for child process (Invalid argument)
                                                        (xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.769: Unable to launch "start-pulseaudio-x11" (specified by autostart/pulseaudio.desktop): Failed to close file descriptor for child process (Invalid argument)

(xfce4-session:27511): xfce4-session-WARNING **: 19:32:35.775: Unable to launch "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" (specified by autostart/polkit-gnome-authentication-agent-1.desktop): Failed to close file descriptor for child process (Invalid argument)                                                                                                             05/12/23 19:32:37 Got connection from client 192.168.121.192                                                    05/12/23 19:32:37 Using protocol version 3.8            05/12/23 19:32:46 Full-control authentication passed by 192.168.121.192                                         05/12/23 19:32:46 Pixel format for client 192.168.121.192:                                                      05/12/23 19:32:46   32 bpp, depth 24, little endian     05/12/23 19:32:46   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0                                      05/12/23 19:32:46   no translation needed               05/12/23 19:32:46 Using tight encoding for client 192.168.121.192                                               05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -309                                 05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -258                                 05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -261                                 05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -308                                 05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -223
05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -307                                 05/12/23 19:32:46 Enabling LastRect protocol extension for client 192.168.121.192                               05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding 1464686185
05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -259                                 05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -314
05/12/23 19:32:46 Enabling full-color cursor updates for client 192.168.121.192                                 05/12/23 19:32:46 Enabling X-style cursor updates for client 192.168.121.192                                    05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding -257                                 05/12/23 19:32:46 rfbProcessClientNormalMessage: ignoring unknown encoding 16                                   05/12/23 19:33:04 Client 192.168.121.192 gone           05/12/23 19:33:04 Statistics:                           05/12/23 19:33:04   key events received 0, pointer events 278                                                   05/12/23 19:33:04   framebuffer updates 2, rectangles 27, bytes 2016                                            05/12/23 19:33:04     LastRect markers 2, bytes 24
05/12/23 19:33:04     cursor shape updates 1, bytes 82  05/12/23 19:33:04     tight rectangles 24, bytes 1910
05/12/23 19:33:04   raw bytes equivalent 6291480, compression ratio 3293.968586
Winitom commented 7 months ago

https://saicharankandukuri.github.io/posts/termux-signal9-fix/#the-easy-way

This work fine, thanks 😊.

Winitom commented 7 months ago

Screenshot_2023-12-06-16-41-44-829_com gaurav avnc