GNOME Bugzilla – Bug 662271
SIGSEGV running dconf update
Last modified: 2011-11-01 13:49:49 UTC
Hi. Sometimes when running 'dconf update', it crashes with a segfault. (gdb) run update Starting program: /usr/local/bin/dconf update Program received signal SIGSEGV, Segmentation fault. [Switching to process 11569, thread 0x202719000] string_get (self=0x20c3f4000 "/org/gnome/settings-daemon/plugins/font/active", index=-1) at dconf-update.c:64 64 return result; (gdb) bt full
+ Trace 228866
Created attachment 200372 [details] [review] dconf update: don't access before start of string Fix a crash caused by attempting to dereference index -1 of a string. This is very obviously a bug, but has only become a problem on OpenBSD where the allocator will apparently hand out addresses at the very start of a page with invalid memory immediately before. Problem caught by Antoine Jacoutot. test please?
> test please? Thanks Ryan, this patch fixes the crash for me.
Attachment 200372 [details] pushed as 0941519 - dconf update: don't access before start of string Thanks for testing.