I'm sure the bug is in libcanberra at least in Quantal. I'm can reproduce the bug with gksu, evince and emacs.
Also, I think I've found real cause for the bug. Patch 10_no_nonnative_crash.patch is applied twice in ubuntu version. This patch was integrated in upstream version 0.29, but was not removed from debian/patches. This lead to usage of gdk_error_trap_push without corresponding gdk_error_trap_pop. I've published a fix in my branch: https://code.launchpad.net/~abone/ubuntu/raring/libcanberra/fix-1075928 Also I'm trying to publish prebuilt packages for Quantal and Raring in my PPA, but have some issues with it: https://launchpad.net/~abone/+archive/ubuntu-fixes -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libcanberra in Ubuntu. https://bugs.launchpad.net/bugs/1075928 Title: Please, silence IA__gdk_error_trap_pop: assertion `gdk_error_traps != NULL' failed Status in “libcanberra” package in Ubuntu: Confirmed Bug description: On Kubuntu 12.10, whenever a gtk application is opened from the konsole, the terminal gets flooded with Gdk-CRITICAL **: IA__gdk_error_trap_pop: assertion `gdk_error_traps != NULL' failed which makes the konsole almost impossible to use after a gtk application has been backgrounded. The only way to start gtk apps from the konsole (or a terminal) keeping the konsole usable is to start them redirecting stderr to /dev/null, which should not be the case. This message turns a probably innocuous bug in gtk apps into a severe annoyance also to the konsole. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libcanberra/+bug/1075928/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp