I got a backtrace when bug have occurred.

(gdb) backtrace
#0  IO_validate_vtable (vtable=0x7f6dfadba9e0 <_IO_helper_jumps>)
    at ../libio/libioP.h:943
#1  outstring_func (done=0, length=104, 
    string=0x55b1a369a410 "\n(connmand:525): GLib-CRITICAL **: 21:20:35.691: 
g_date_set_time: assertion 'localtime() == NULL' failed", s=0x7ffd508cd470)
    at ./stdio-common/vfprintf-internal.c:239
#2  __vfprintf_internal (s=s@entry=0x7ffd508cd470, 
    format=0x7f6dfb11d7a2 "%s\n", ap=0x7ffd508cf5b0, mode_flags=2)
    at ./stdio-common/vfprintf-process-arg.c:421
#3  0x00007f6dfac4a7fd in buffered_vfprintf (
    s=0x7f6dfadbf680 <_IO_2_1_stderr_>, 
    format=format@entry=0x7f6dfb11d7a2 "%s\n", args=args@entry=0x7ffd508cf5b0, 
    mode_flags=mode_flags@entry=2) at ./stdio-common/vfprintf-internal.c:1748
#4  0x00007f6dfac49863 in __vfprintf_internal (s=<optimized out>, 
    format=0x7f6dfb11d7a2 "%s\n", ap=ap@entry=0x7ffd508cf5b0, 
    mode_flags=mode_flags@entry=2) at ./stdio-common/vfprintf-internal.c:740
#5  0x00007f6dfad0282f in ___fprintf_chk (
    fp=fp@entry=0x7f6dfadbf680 <_IO_2_1_stderr_>, flag=flag@entry=1, 
    format=format@entry=0x7f6dfb11d7a2 "%s\n") at ./debug/fprintf_chk.c:33
#6  0x00007f6dfb0c79bc in fprintf (__fmt=0x7f6dfb11d7a2 "%s\n", 
    __stream=0x7f6dfadbf680 <_IO_2_1_stderr_>)
    at /usr/include/x86_64-linux-gnu/bits/stdio2.h:79
#7  g_log_writer_standard_streams (
    log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, 
    fields=fields@entry=0x7ffd508cf740, n_fields=n_fields@entry=4, 
    user_data=user_data@entry=0x0) at ../../../glib/gmessages.c:2604
#8  0x00007f6dfb0c7ace in g_log_writer_default (
    log_level=G_LOG_LEVEL_CRITICAL, fields=0x7ffd508cf740, n_fields=4, 
    user_data=0x0) at ../../../glib/gmessages.c:2787
#9  0x00007f6dfb0c54b1 in g_log_structured_array (n_fields=4, 
    fields=0x7ffd508cf740, log_level=G_LOG_LEVEL_CRITICAL)
    at ../../../glib/gmessages.c:1984
#10 g_log_structured_array (log_level=G_LOG_LEVEL_CRITICAL, 
    fields=0x7ffd508cf740, n_fields=4) at ../../../glib/gmessages.c:1957
#11 0x00007f6dfb0c59a2 in g_log_default_handler (
    log_domain=log_domain@entry=0x7f6dfb11a00e "GLib", 
    log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, 
    message=message@entry=0x55b1a36ad6e0 "g_date_set_time: assertion 
'localtime() == NULL' failed", unused_data=unused_data@entry=0x0)
    at ../../../glib/gmessages.c:3284
#12 0x00007f6dfb0c5c10 in g_logv (log_domain=0x7f6dfb11a00e "GLib", 
    log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, 
    args=args@entry=0x7ffd508cf890) at ../../../glib/gmessages.c:1392
#13 0x00007f6dfb0c5ec3 in g_log (
    log_domain=log_domain@entry=0x7f6dfb11a00e "GLib", 
    log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, 
    format=format@entry=0x7f6dfb11c2a0 "%s: assertion '%s' failed")
    at ../../../glib/gmessages.c:1461
#14 0x00007f6dfb0c6dbd in g_return_if_fail_warning (
    log_domain=log_domain@entry=0x7f6dfb11a00e "GLib", 
    pretty_function=pretty_function@entry=0x7f6dfb11ace4 "g_date_set_time", 
    expression=expression@entry=0x7f6dfb11acd0 "localtime() == NULL")
    at ../../../glib/gmessages.c:2930
#15 0x00007f6dfb09c477 in g_date_set_time_t (date=date@entry=0x7ffd508cf9f8, 
    timet=<optimized out>) at ../../../glib/gdate.c:1485
#16 0x000055b1a2eb6a38 in process_file (iter=iter@entry=0x7ffd508cfa90, 
    temp_file=temp_file@entry=0x7ffd508cfb10, cur=<optimized out>, 
    cur@entry=0x0, 
    date_change_step_size=date_change_step_size@entry=0x7ffd508cfa68, 
    account_period_offset=1) at ../src/stats.c:488
#17 0x000055b1a2eb7059 in summarize (temp_file=0x7ffd508cfb10, 
    history_file=0x7ffd508cfab0, data_file=0x55b1a366ed70)
    at ../src/stats.c:568
#18 stats_file_history_update (data_file=0x55b1a366ed70) at ../src/stats.c:664
#19 __connman_stats_update (service=service@entry=0x55b1a366f440, 
    roaming=<optimized out>, data=0x55b1a366f5c8) at ../src/stats.c:766
#20 0x000055b1a2eef26f in __connman_service_notify (
    service=service@entry=0x55b1a366f440, rx_packets=2912530, 
    tx_packets=3563329, rx_bytes=780332579, tx_bytes=<optimized out>, 
    rx_errors=<optimized out>, tx_errors=0, rx_dropped=0, tx_dropped=0)
    at ../src/service.c:2473
#21 0x000055b1a2effcee in update_stats (
    ipdevice=ipdevice@entry=0x55b1a3662710, 
    ifname=ifname@entry=0x55b1a36a1860 "wlan0", 
    stats=stats@entry=0x7ffd508cfe10) at ../src/ipconfig.c:540
#22 0x000055b1a2f001db in __connman_ipconfig_newlink (index=index@entry=3, 
    type=type@entry=1, flags=flags@entry=36867, 
    address=address@entry=0x7ffd508cfec0 "**WLAN_MAC_REMOVED**", 
    mtu=<optimized out>, stats=0x7ffd508cfe10) at ../src/ipconfig.c:590
#23 0x000055b1a2f12b69 in process_newlink (bytes=<optimized out>, 
    msg=0x7ffd508cff00, change=0, flags=36867, index=3, type=1)
    at ../src/rtnl.c:454
#24 rtnl_newlink (hdr=0x7ffd508cfef0) at ../src/rtnl.c:970
#25 rtnl_message (len=1480, buf=0x7ffd508cfef0) at ../src/rtnl.c:1406
#26 netlink_event (chan=<optimized out>, cond=<optimized out>, 
    data=<optimized out>) at ../src/rtnl.c:1466
#27 0x00007f6dfb0ba099 in g_main_dispatch (
    context=context@entry=0x55b1a3659440) at ../../../glib/gmain.c:3476
#28 0x00007f6dfb0bd2d7 in g_main_context_dispatch_unlocked (
    context=0x55b1a3659440) at ../../../glib/gmain.c:4284
#29 g_main_context_iterate_unlocked (context=0x55b1a3659440, 
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../../../glib/gmain.c:4349
#30 0x00007f6dfb0bdbdf in g_main_loop_run (loop=0x55b1a363e530)
    at ../../../glib/gmain.c:4551
#31 0x000055b1a2eab188 in main (argc=<optimized out>, argv=<optimized out>)
    at ../src/main.c:972
    

Reply via email to