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

Suckless Simple Terminal gives a aborted #10150

Closed
ghost opened this issue Aug 6, 2021 · 6 comments
Closed

Suckless Simple Terminal gives a aborted #10150

ghost opened this issue Aug 6, 2021 · 6 comments
Labels
bug report Something is not working properly. help wanted Help is wanted in order to solve the issue. x11 Issue is related to stuff requiring X11 environment or x11-packages.

Comments

@ghost
Copy link

ghost commented Aug 6, 2021

IMG_20210806_220545

Problem description
Can't run Suckless Simple Terminal it giving me aborted (sigabrt)

Steps to reproduce

Start a tigervnc server
export a display server export DISPLAY=:1
Open a st

Expected behavior

I want to open suckless simple terminal

System information

Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:

sources.list

deb https://grimler.se/termux-packages-24 stable main

game-repo (sources.list.d/game.list)

deb https://grimler.se/game-packages-24 games stable

science-repo (sources.list.d/science.list)

deb https://grimler.se/science-packages-24 science stable

x11-repo (sources.list.d/x11.list)

deb https://grimler.se/x11-packages x11 main
Updatable packages:
m4/stable 1.4.19 aarch64 [upgradable from: 1.4.18-3]
Android version:
11
Kernel build information:
Linux localhost 4.14.180-perf-g43fb8887b4f5 termux/x11-packages#1 SMP PREEMPT Wed Jul 21 00:37:56 CST 2021 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
M2007J20CG

@Yisus7u7
Copy link
Contributor

Yisus7u7 commented Aug 6, 2021

st is already a very old terminal , there are already replacements available.

pkg install roxterm

Or

pkg install aterm

@ghost
Copy link

ghost commented Aug 6, 2021

It doesn't work because incompatible with Android 11 and not because it is old software.

I use less than 5-10% of available packages and do not tracking what works on various OS versions or not.

@Yisus7u7
Copy link
Contributor

Yisus7u7 commented Aug 6, 2021

It doesn't work because incompatible with Android 11 and not because it is old software.

I use less than 5-10% of available packages and do not tracking what works on various OS versions or not.

Does it require any patches?

@ghost
Copy link

ghost commented Aug 6, 2021

Needs something like this into main() function:

void *lib_handle = dlopen("libc.so", RTLD_LAZY);
if (lib_handle) {
    bool (*android_mallopt)(int opcode, void* arg, size_t arg_size) = dlsym(lib_handle, "android_mallopt");
    if (android_mallopt) {
        int android_malloc_tag_level = 0;
        android_mallopt(8, &android_malloc_tag_level, sizeof(android_malloc_tag_level));
    }
    dlclose(lib_handle);
}

@ghost
Copy link

ghost commented Aug 19, 2021

It still doesn't work after patch and logcat shows this:

Scudo ERROR: misaligned pointer when deallocating address 0x006245ce8c98

- seems like there is a bug in st code.

thunder-coding referenced this issue Apr 19, 2022
Doesn't fix issue completely.

Abort message: 'Scudo ERROR: misaligned pointer when deallocating address 0x006245ce8c98

https://github.com/termux/x11-packages/issues/407
@thunder-coding thunder-coding transferred this issue from termux/x11-packages Apr 19, 2022
@xtkoba xtkoba added the x11 Issue is related to stuff requiring X11 environment or x11-packages. label Apr 19, 2022
@xtkoba
Copy link
Contributor

xtkoba commented Apr 24, 2022

The error reported in #10150 (comment) is not relevant to tagged pointers but seems kind of "invalid free()" which is also reproducible on my environment (Android 8.1.0 aarch64). I would like it to have a separate issue, #10124. Thanks.

@xtkoba xtkoba closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly. help wanted Help is wanted in order to solve the issue. x11 Issue is related to stuff requiring X11 environment or x11-packages.
Projects
None yet
Development

No branches or pull requests

3 participants