FS#48304 - [glib2] gsettings SIGSEV on user invocation

Attached to Project: Arch Linux
Opened by Alad Wenter (Alad) - Tuesday, 23 February 2016, 01:54 GMT
Last edited by Jan de Groot (JGC) - Monday, 13 June 2016, 21:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When running gsettings with any argument, it segfaults, for example:

zsh: segmentation fault (core dumped) /usr/bin/gsettings help

Strace: https://ptpb.pw/qPNe

gdb:

Reading symbols from /usr/bin/gsettings...Reading symbols from /usr/lib/debug/usr/bin/gsettings.debug...done.
done.
(gdb) run help
Starting program: /usr/bin/gsettings help
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
g_settings_schema_source_ref (source=0x0) at gsettingsschema.c:210
210 g_atomic_int_inc (&source->ref_count);
(gdb) bt full
#0 g_settings_schema_source_ref (source=0x0) at gsettingsschema.c:210
No locals.
#1 0x0000000000401cbe in main (argc=2, argv=0x7fffffffe998)
at gsettings-tool.c:700
function = <optimized out>
need_settings = <optimized out>

I've also tried with a different user, to the same effect.

Additional info:
* package version(s)
2.46.2-2
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 13 June 2016, 21:40 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Tuesday, 23 February 2016, 12:18 GMT
This is caused by missing /usr/share/glib-2.0/schemas/gschemas.compiled

I'll add a post_install operation to glib2 to generate that file.
Comment by Alad Wenter (Alad) - Tuesday, 23 February 2016, 13:36 GMT
  • Field changed: Percent Complete (100% → 0%)
After upgrading, it mentions: "No schema files found: doing nothing." and gsettings still segfaults
Comment by Alad Wenter (Alad) - Tuesday, 23 February 2016, 23:56 GMT
Installing gsettings-desktop-schemas stops it from segfaulting (though it's not a dependency of glib2)
Comment by Alad Wenter (Alad) - Monday, 29 February 2016, 13:10 GMT
With the patch from glib2-2.46.2-4, I get "No schemas installed" rather than a segfault. Thanks!

Loading...