termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.06k stars 3k forks source link

[Bug]: Bad system call #18214

Closed cj2kl closed 11 months ago

cj2kl commented 11 months ago

Problem description

After updating termux system this morning, some application cannot be started in x11.

What steps will reproduce the bug?

In X11, aterm session:

~ $ xfce4-terminal 
Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined
Bad system call
~ $ emacs
Fatal error 31: Bad system call
Bad system call
~ $ ^C
~ $ 

What is the expected behavior?

App. run

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=8954
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://mirror.mwt.me/termux/main stable main
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/24 termux extras
# x11-repo (sources.list.d/x11.list)
deb https://mirror.mwt.me/termux/x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.39.1
Android version:
10
Kernel build information:
Linux localhost 3.18.124-21708663 #1 SMP PREEMPT Mon Jul 25 18:45:06 KST 2022 armv8l Android
Device manufacturer:
samsung
Device model:
SM-T590
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
com.termux.boot versionCode:7
com.termux.styling versionCode:30
com.termux.tasker versionCode:6
com.termux.widget versionCode:13
com.termux.window versionCode:15
twaik commented 11 months ago
  1. Does it happen in termux or proot-distro?
  2. Please, attach strace log.
strace emacs
cj2kl commented 11 months ago

In termux

partial-apt_term.log strace-emacs.txt

licy183 commented 11 months ago

Hello, please download debs from https://github.com/termux/termux-packages/actions/runs/6471699727, install it and test whether this PR fixes this issue. Thanks!

cj2kl commented 11 months ago

Yes, the debs fixed the problem. Thanks! :)

Both xfce4-terminal and emacs are running ok.

Is there anything else I must do?

licy183 commented 11 months ago

Yes, the debs fixed the problem.

Both xfce4-terminal and emacs are running ok.

Is there anything else I must do?

No, nothing more. Thanks for your testing! I'll merge this PR now.