Bug 78165 - Crash of accountsservices on gdm startup
Summary: Crash of accountsservices on gdm startup
Status: RESOLVED NOTOURBUG
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium critical
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-01 18:57 UTC by Maciej Piechotka
Modified: 2014-05-01 20:19 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Maciej Piechotka 2014-05-01 18:57:45 UTC
[New LWP 903]
[New LWP 905]
[New LWP 906]
[New LWP 904]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.2/libstdc++.so.6.0.18-gdb.py", line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
  File "/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python/libstdcxx/v6/printers.py", line 54
    raise ValueError, "Cannot find type %s::%s" % (str(orig), name)
                    ^
SyntaxError: invalid syntax
Core was generated by `/usr/libexec/accounts-daemon'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  g_str_hash (v=0x0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/ghash.c:1802
1802	/var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/ghash.c: No such file or directory.

Thread 4 (Thread 0x7f7359829700 (LWP 904)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
No locals.
#1  0x00007f735ace34f5 in g_cond_wait_until (cond=cond@entry=0x17d4dc8, mutex=mutex@entry=0x17d4dc0, end_time=end_time@entry=50059128) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gthread-posix.c:892
        ts = {tv_sec = 50, tv_nsec = 59128000}
        status = <optimized out>
#2  0x00007f735ac77f51 in g_async_queue_pop_intern_unlocked (queue=0x17d4dc0, wait=wait@entry=1, end_time=50059128) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gasyncqueue.c:422
        retval = <optimized out>
        __FUNCTION__ = "g_async_queue_pop_intern_unlocked"
#3  0x00007f735ac78518 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gasyncqueue.c:570
        end_time = <optimized out>
#4  0x00007f735acc7086 in g_thread_pool_wait_for_new_task (pool=0x17d4d60) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gthreadpool.c:262
        task = <optimized out>
#5  g_thread_pool_thread_proxy (data=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gthreadpool.c:296
        task = 0x0
        pool = 0x17d4d60
#6  0x00007f735acc6725 in g_thread_proxy (data=0x17d6c00) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gthread.c:764
        thread = 0x17d6c00
#7  0x00007f735a496ff3 in start_thread (arg=0x7f7359829700) at pthread_create.c:309
        __res = <optimized out>
        pd = 0x7f7359829700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140133399697152, 1381449581859063449, 0, 140133434736640, 140133421311696, 140133399697152, -1311297262670690663, -1311302299608529255}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        robust = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#8  0x00007f735a99b6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 3 (Thread 0x7f7358827700 (LWP 906)):
#0  0x00007f735a99200d in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007f735aca1844 in g_main_context_poll (priority=2147483647, n_fds=2, fds=0x7f73500010c0, timeout=-1, context=0x7f735400e5a0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:4028
        poll_func = 0x7f735acb0410 <g_poll>
#2  g_main_context_iterate (context=0x7f735400e5a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3729
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 2
        allocated_nfds = 2
        fds = 0x7f73500010c0
#3  0x00007f735aca1b6a in g_main_loop_run (loop=0x7f735400e530) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3928
        __FUNCTION__ = "g_main_loop_run"
#4  0x00007f735b2b9646 in gdbus_shared_thread_func (user_data=0x7f735400e570) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/gio/gdbusprivate.c:273
        data = 0x7f735400e570
#5  0x00007f735acc6725 in g_thread_proxy (data=0x17d72d0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gthread.c:764
        thread = 0x17d72d0
#6  0x00007f735a496ff3 in start_thread (arg=0x7f7358827700) at pthread_create.c:309
        __res = <optimized out>
        pd = 0x7f7358827700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140133382911744, 1381449581859063449, 0, 140133434736640, 140133421311696, 140133382911744, -1311299456325237095, -1311302299608529255}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        robust = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#7  0x00007f735a99b6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 2 (Thread 0x7f7359028700 (LWP 905)):
#0  0x00007f735a99200d in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007f735aca1844 in g_main_context_poll (priority=2147483647, n_fds=2, fds=0x7f734c0008c0, timeout=-1, context=0x17d6ad0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:4028
        poll_func = 0x7f735acb0410 <g_poll>
#2  g_main_context_iterate (context=context@entry=0x17d6ad0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3729
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 2
        allocated_nfds = 2
        fds = 0x7f734c0008c0
#3  0x00007f735aca194c in g_main_context_iteration (context=0x17d6ad0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3795
        retval = <optimized out>
#4  0x00007f735aca1989 in glib_worker_main (data=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:5541
No locals.
#5  0x00007f735acc6725 in g_thread_proxy (data=0x17d6c50) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gthread.c:764
        thread = 0x17d6c50
#6  0x00007f735a496ff3 in start_thread (arg=0x7f7359028700) at pthread_create.c:309
        __res = <optimized out>
        pd = 0x7f7359028700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140133391304448, 1381449581859063449, 0, 140133434736640, 140133421311696, 140133391304448, -1311296157253482855, -1311302299608529255}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        robust = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#7  0x00007f735a99b6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 1 (Thread 0x7f735b920740 (LWP 903)):
#0  g_str_hash (v=0x0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/ghash.c:1802
        p = 0x0
        h = 5381
#1  0x00007f735ac90af0 in g_hash_table_lookup_node (hash_return=<synthetic pointer>, key=0x0, hash_table=0x17f4640) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/ghash.c:368
        node_hash = <optimized out>
        hash_value = <optimized out>
        have_tombstone = 0
        step = 0
        node_index = <optimized out>
        first_tombstone = 0
#2  g_hash_table_insert_internal (hash_table=0x17f4640, key=0x0, value=0x0, keep_new_key=1) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/ghash.c:1171
        key_hash = <optimized out>
#3  0x000000000040a5bc in user_classify_is_blacklisted (username=0x17f6450 "root") at user-classify.c:113
        i = <optimized out>
        exclusions = 0x17f4640
#4  user_classify_is_human (uid=0, username=0x17f6450 "root", shell=<optimized out>, password_hash=password_hash@entry=0x0) at user-classify.c:200
No locals.
#5  0x0000000000408588 in load_entries (daemon=daemon@entry=0x17da0c0, users=users@entry=0x17f45e0, entry_generator=entry_generator@entry=0x408e40 <entry_generator_fgetpwent>) at daemon.c:251
        generator_state = 0x17f3a00
        pwent = 0x7f735ac52d80 <resbuf>
        user = <optimized out>
        __FUNCTION__ = "load_entries"
#6  0x00000000004086e9 in reload_users (daemon=0x17da0c0) at daemon.c:309
        local = <optimized out>
        iter = {dummy1 = 0x17d7f00, dummy2 = 0x7f735ac9eb1e <g_source_unref_internal+254>, dummy3 = 0x2, dummy4 = 1, dummy5 = 0, dummy6 = 0x17ce2b0}
        old_users = <optimized out>
        name = 0x1
        user = 0x0
#7  reload_users_timeout (daemon=0x17da0c0) at daemon.c:357
No locals.
#8  0x00007f735aca153d in g_main_dispatch (context=0x17ce2b0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3064
        dispatch = 0x7f735ac9e410 <g_idle_dispatch>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x17da0c0
        callback = 0x4086b0 <reload_users_timeout>
        cb_funcs = 0x7f735af8a8e0 <g_source_callback_funcs>
        cb_data = 0x17e47f0
        need_destroy = <optimized out>
        source = 0x17e4780
        current = 0x17cc660
        i = 0
#9  g_main_context_dispatch (context=context@entry=0x17ce2b0) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3663
No locals.
#10 0x00007f735aca18a8 in g_main_context_iterate (context=0x17ce2b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3734
        max_priority = 200
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 1
        fds = <optimized out>
#11 0x00007f735aca1b6a in g_main_loop_run (loop=0x17d6a10) at /var/tmp/portage/dev-libs/glib-2.40.0/work/glib-2.40.0/glib/gmain.c:3928
        __FUNCTION__ = "g_main_loop_run"
#12 0x00000000004080e0 in main (argc=1, argv=0x7fff8851ecb8) at main.c:219
        error = 0x0
        ret = 1
        flags = <optimized out>
        context = 0x17cdf80
        replace = 0
        show_version = 0
        entries = {{long_name = 0x41797c "version", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x622b54 <show_version>, description = 0x419520 "Output version information and exit", arg_description = 0x0}, {long_name = 0x419460 "replace", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x622b50 <replace>, description = 0x419468 "Replace existing instance", arg_description = 0x0}, {long_name = 0x419482 "debug", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x622b58 <debug>, description = 0x419488 "Enable debugging code", arg_description = 0x0}, {long_name = 0x0, short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x0, description = 0x0, arg_description = 0x0}}
From                To                  Syms Read   Shared Object Library
                                        No          linux-vdso.so.1
0x00007f735b55e8b0  0x00007f735b569972  Yes         /usr/lib64/libpolkit-gobject-1.so.0
0x00007f735b216000  0x00007f735b2dbb4b  Yes         /usr/lib64/libgio-2.0.so.0
0x00007f735af98c00  0x00007f735afc6996  Yes         /usr/lib64/libgobject-2.0.so.0
0x00007f735ac73510  0x00007f735ad0b71a  Yes         /usr/lib64/libglib-2.0.so.0
0x00007f735a8d2690  0x00007f735a9fa913  Yes         /lib64/libc.so.6
0x00007f735a6ad390  0x00007f735a6ae265  Yes         /usr/lib64/libgmodule-2.0.so.0
0x00007f735b92c830  0x00007f735b943cd4  Yes         /usr/lib64/libsystemd.so.0
0x00007f735a494980  0x00007f735a4a0c11  Yes         /lib64/libpthread.so.0
0x00007f735a27a810  0x00007f735a286d40  Yes         /lib64/libz.so.1
0x00007f735a065200  0x00007f735a0711b6  Yes         /lib64/libresolv.so.2
0x00007f7359e5abd0  0x00007f7359e5f154  Yes         /usr/lib64/libffi.so.6
0x00007f735b773ba0  0x00007f735b78c5a0  Yes         /lib64/ld-linux-x86-64.so.2
0x00007f7359c56090  0x00007f7359c56b2e  Yes         /lib64/libdl.so.2
0x00007f7359a34e50  0x00007f7359a48c40  Yes         /lib64/liblzma.so.5
0x00007f735982c900  0x00007f735982f74c  Yes         /lib64/librt.so.1
0x00007f734bdeae60  0x00007f734bdf6d46  Yes         /usr/lib64/gio/modules/libgioremote-volume-monitor.so
0x00007f734bbda330  0x00007f734bbdee1e  Yes         /usr/lib64/gio/modules/libdconfsettings.so
0x00007f734b7b3e10  0x00007f734b7c9436  Yes         /usr/lib64/libproxy.so.1
0x00007f734b00d3d0  0x00007f734b4ada8a  Yes         /usr/lib64/libjavascriptcoregtk-3.0.so.0
0x00007f734ac02590  0x00007f734ac6613a  Yes         /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libstdc++.so.6
0x00007f734a993ac0  0x00007f734a9a2da5  Yes         /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1
0x00007f734a6234b0  0x00007f734a72d2a5  Yes         /usr/lib64/libicui18n.so.52
0x00007f734a261b50  0x00007f734a31145b  Yes         /usr/lib64/libicuuc.so.52
0x00007f7349f1a880  0x00007f7349f7e5c6  Yes         /lib64/libm.so.6
0x00007f73486a75f0  0x00007f73486a76d5  Yes (*)     /usr/lib64/libicudata.so.52
0x00007f734849f6e0  0x00007f73484a3ff3  Yes         /lib64/libnss_compat.so.2
0x00007f734828aca0  0x00007f7348296183  Yes         /lib64/libnsl.so.1
0x00007f734807d720  0x00007f73480836c1  Yes         /lib64/libnss_nis.so.2
0x00007f7347e70850  0x00007f7347e774b5  Yes         /lib64/libnss_files.so.2
(*): Shared library is missing debugging information.
$1 = 0x0
$2 = 0x0
rax            0x1	1
rbx            0x4186c8	4294344
rcx            0x1	1
rdx            0x0	0
rsi            0x0	0
rdi            0x0	0
rbp            0x17f4640	0x17f4640
rsp            0x7fff8851e968	0x7fff8851e968
r8             0x418482	4293762
r9             0x1	1
r10            0x0	0
r11            0x80	128
r12            0x17f6450	25125968
r13            0x17da0c0	25010368
r14            0x7f735ac9e410	140133421147152
r15            0x17e4780	25053056
rip            0x7f735ac91aa0	0x7f735ac91aa0 <g_str_hash>
eflags         0x10202	[ IF RF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
Dump of assembler code for function g_str_hash:
=> 0x00007f735ac91aa0 <+0>:	movsbl (%rdi),%edx
   0x00007f735ac91aa3 <+3>:	mov    $0x1505,%eax
   0x00007f735ac91aa8 <+8>:	test   %dl,%dl
   0x00007f735ac91aaa <+10>:	je     0x7f735ac91ac6 <g_str_hash+38>
   0x00007f735ac91aac <+12>:	nopl   0x0(%rax)
   0x00007f735ac91ab0 <+16>:	mov    %eax,%ecx
   0x00007f735ac91ab2 <+18>:	add    $0x1,%rdi
   0x00007f735ac91ab6 <+22>:	shl    $0x5,%ecx
   0x00007f735ac91ab9 <+25>:	add    %ecx,%edx
   0x00007f735ac91abb <+27>:	add    %edx,%eax
   0x00007f735ac91abd <+29>:	movsbl (%rdi),%edx
   0x00007f735ac91ac0 <+32>:	test   %dl,%dl
   0x00007f735ac91ac2 <+34>:	jne    0x7f735ac91ab0 <g_str_hash+16>
   0x00007f735ac91ac4 <+36>:	repz retq 
   0x00007f735ac91ac6 <+38>:	repz retq 
End of assembler dump.


0.6.37 is affected but 0.6.35 is working fine.
Comment 1 Stef Walter 2014-05-01 19:19:00 UTC
Could you point us to the exact sources for the accountsservice you are running? Are you building accountsservice from upstream or running a (possibly patched) packaged version?

It's likely that someone has put a NULL in default_excludes list.
Comment 2 Maciej Piechotka 2014-05-01 20:19:01 UTC
Ok. I've found the patch causing problem (I've thought that it's unpatched).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.