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

Setting G_SLICE env variable to any non-empty value freezes GLib programs #7118

Closed
khaledhosny opened this issue Oct 14, 2020 · 8 comments · Fixed by #7121
Closed

Setting G_SLICE env variable to any non-empty value freezes GLib programs #7118

khaledhosny opened this issue Oct 14, 2020 · 8 comments · Fixed by #7121

Comments

@khaledhosny
Copy link

While debugging harfbuzz/harfbuzz#2697, I found that any non-empty value of this env variable freezes GLib applications. E.g.

#include <glib.h>
int main(int argc, char** argv) {
  g_print("Test\n");
}

Building with gcc test.c -o test $(pkg-config --cflags --libs glib-2.0). Runnig without the env variable set is fine, setting it to even just G_SLICE=' ' will cause the program to just freeze (nothing is printed and not returning either).

@lazka
Copy link
Member

lazka commented Oct 14, 2020

Thanks! I was seeing the same thing with pygobject but didn't investigate yet.

@lazka
Copy link
Member

lazka commented Oct 14, 2020

I can confirm that downgrading glib to 2.64.5 fixes things.

@lazka
Copy link
Member

lazka commented Oct 15, 2020

Bisected and filed an issue in glib: https://gitlab.gnome.org/GNOME/glib/-/issues/2225

@khaledhosny
Copy link
Author

Thanks, I did suspect it is this commit but didn’t mange to build glib and verify.

@khaledhosny
Copy link
Author

Thanks!

@lazka
Copy link
Member

lazka commented Oct 17, 2020

the fix is in the repo now

@khaledhosny
Copy link
Author

I confirm that HarfBuzz CI builds are fixed now. Thanks again for the quick fix.

@lazka
Copy link
Member

lazka commented Oct 17, 2020

Thanks for figuring out the cause!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants