The same problem appears when I try to add another keyboard layout using gnome keyboard properties configuration dialog. Addind another layout with setxkbmap works fine, however. I'll try ltrace tomorrow.