-
Notifications
You must be signed in to change notification settings - Fork 74
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
Reproducible SIGSEGV with st.font_fallback #159
Comments
i've just got same crash even when specified font name correctly (and without extra |
hmm, for some reason i could reproduce it only with arch default build flags, but not when building locally in aur i could temporary work it around with this: diff --git a/PKGBUILD b/PKGBUILD
index 14e847e..5ec78ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,11 @@ license=('MIT')
depends=('libxft')
makedepends=('ncurses' 'libxext' 'git')
source=("git+https://github.com/gnotclub/${_pkgname}.git")
sha1sums=('SKIP')
+options=('!buildflags')
provides=(
${_pkgname} mb playing with build flags could help in your situations as well? later on i'll try to look into it |
arch flags
st default flags:
|
i found a moment to debug it - apparently it's caused by |
see #164 |
, Fixes: #144, Fixes: #165) (#164) * fix building with -flto=auto * fix: rename back default_fallback_fonts to font2 for backwards-compatibility with local users' config.h * fix(x: zoomabs): fix fallback fonts' handling when zooming (Fixes: #144) * fix(xst: xtdb_load: font_fallback): add missing return statements on font loading error * chore: fix GH CI * fix(xst: reload): init and load spare fonts (aka font2), call xhints after resize (fixes: #165)
Hey, I've been working on writing an OpenBSD port for this and noticed this compiler warning (please bear in mind throughout this issue that I'm not a C developer):
I looked at the relevant code:
config.def.h line 9:
xst.c line 65:
What I realized is that you can reliably cause xst to dump a core file by passing a comma (either alone or as a trailing comma) to
st.font_fallback
because it incrementscount
:It seems like it leads into undefined behavior. I'm unsure what the best way to address this would be, but wanted to bring it to your attention all the same.
The text was updated successfully, but these errors were encountered: