Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conky crashes on docker container startup #946

Closed
code1x1 opened this issue Feb 25, 2020 · 0 comments
Closed

conky crashes on docker container startup #946

code1x1 opened this issue Feb 25, 2020 · 0 comments

Comments

@code1x1
Copy link

code1x1 commented Feb 25, 2020

Issue

Conky crashes if i start docker container. The number of containers seams not to be the problem. It crashes if I start a single container or a container cluster with 10 or more.

I am able to restart conky while the container cluster is running.

Information

This happens on two machines

  1. Debian Buster
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation H77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Polaris11] (rev ff)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)
  1. Ubuntu 18.04
    Ryzen 5 2600
    16 GB Ram
    rx 480 4GB

Config

cat .conkyrc 
conky.config = {
-- Conky settings #
        background = false,
        update_interval = 1,

        cpu_avg_samples = 2,
        net_avg_samples = 2,

        override_utf8_locale = true,

        double_buffer = true,
        no_buffers = true,

        text_buffer_size = 2048,
    --imlib_cache_size 0

        temperature_unit = 'celsius',

-- With class override, gets images to display properly (black bg)
    own_window_argb_visual = true, 
        own_window_argb_value = 0,

-- Window specifications #
    own_window_class = override,
        own_window = true,
-- XFCE4 = desktop, sinon 'normal'
        own_window_type = 'desktop',
        own_window_transparent = true,

-- XFCE4 - undecorate not working
        own_window_hints = 'sticky,skip_taskbar,skip_pager,below',

        border_inner_margin = 0,
        border_outer_margin = 0,

        minimum_width = 520, 
    minimum_height = 600,
        maximum_width = 520,

        alignment = 'top_right',
        gap_x = 20,
        gap_y = 112,

-- Graphics settings #
        draw_shades = false,
        draw_outline = false,
        draw_borders = false,
        draw_graph_borders = false,

-- useless
        default_shade_color = 'red',
        default_outline_color = 'green',

-- Text settings #
        use_xft = true,
        override_utf8_locale = true,
    font = 'Play:normal:size=8',
        xftalpha = 0.9,
        uppercase = false,

-- TEXT color
        default_color = '#333333',

    color0 = '#165cc4',
    color1 = '#ffffff',

        lua_load = '~/.conky/conky-grapes/rings-v2_gen.lua',
        lua_draw_hook_pre = 'conky_main',

    diskio_avg_samples = 2
};

conky.text = [[
${voffset 12}${color1}${goto 106}${freq_g cpu0} Ghz${alignr 330}${hwmon 1 temp 1} °C
#${voffset 16}${color1}${goto 106}${freq_g cpu0} Ghz${alignr 330}${acpitemp} °C
## CPU ###################
${voffset 1}${goto 120}${color1}CPU 1${alignr 330}${color1}${cpu cpu1}%
${voffset 1}${goto 120}${color1}CPU 2${alignr 330}${color1}${cpu cpu2}%
${voffset 1}${goto 120}${color1}CPU 3${alignr 330}${color1}${cpu cpu3}%
${voffset 1}${goto 120}${color1}CPU 4${alignr 330}${color1}${cpu cpu4}%
${goto 49}${voffset 12}${color1}${top name 1}${alignr 306}${top cpu 1}%
${goto 50}${color1}${top name 2}${alignr 306}${top cpu 2}%
${goto 50}${color1}${top name 3}${alignr 306}${top cpu 3}%
${font Michroma:size=10}${color0}${goto 80}${voffset 4}CPU
## DISKIO ################
${voffset -130}${goto 378}${font}${color1}${top_io name 1}${alignr 30}${top_io io_write 1}%
${goto 378}${voffset 1}${color1}${top_io name 2}${alignr 30}${top_io io_write 2}%
${goto 378}${voffset 1}${color1}${top_io name 3}${alignr 30}${top_io io_write 3}%
${goto 370}${voffset 4}${color1}disk writes${alignr 30}${diskio_write}%
${goto 370}${color1}disk reads${alignr 30}${diskio_read}%
${font Michroma:size=10}${color0}${goto 418}${voffset 1}IO WAIT

## MEMORY ################
${font Michroma:size=10}${color0}${goto 420}${voffset 59}MEMORY
${voffset 8}${font}${goto 324}${voffset -2}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 324}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 324}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${voffset 16}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${voffset 1}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}

## FILESYSTEMS #################
${goto 70}${voffset -81}/${color1}${alignr 310}${fs_used /} / ${fs_size /}
${goto 70}${voffset -1}/boot${color1}${alignr 310}${fs_used /boot} / ${fs_size /boot}
${font Michroma:size=10}${color0}${goto 68}${voffset 18}FILESYSTEM

## INTERNET ################
${font Michroma:size=10}${color0}${voffset 16}${goto 344}INTERNET INFO
${font}${color1}${alignr 54}${voffset -2}Interface    enp3s0
${font}${color1}${goto 298}${voffset 2}Up${goto 370}${color1}${totalup enp3s0} / ${color1}${upspeed enp3s0}
${goto 298}${color1}Down${goto 370}${color1}${totaldown enp3s0} / ${color1}${downspeed enp3s0}
${goto 300}${voffset 4}Local IP${goto 370}${addr enp3s0}
${goto 300}${voffset 0}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${voffset -24}

## TIME ########################
${font Michroma:size=10}${alignr 300}${voffset -50}${color0}${time %a} ${color0}${time %x}
${font Michroma:size=18}${alignr 318}${color1}${voffset -4}${time %H}:${time %M}
## BATTERY #####################
#{{ BATTERY }}
## OS
${font Michroma:bold:size=11}${color0}${voffset 90}${alignc}${execi 3600 awk -F '=' '/PRETTY_NAME/ { print $2 }' /etc/os-release | tr -d '"'}
]];

Backtrace.

(gdb) run -c ~/.conkyrc 
Starting program: /usr/bin/conky -c ~/.conkyrc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
conky: desktop window (200014) is subwindow of root window (3a0)
conky: window type - desktop
conky: drawing to created window (0x1600002)
conky: drawing to double buffer
[New Thread 0x7ffff110a700 (LWP 23197)]
[New Thread 0x7ffff0909700 (LWP 23198)]
[Detaching after fork from child process 23199]
[Detaching after fork from child process 23200]
[New Thread 0x7ffff0108700 (LWP 23202)]
[New Thread 0x7fffef907700 (LWP 23204)]
[New Thread 0x7fffef106700 (LWP 23205)]
[New Thread 0x7fffee905700 (LWP 23206)]
[New Thread 0x7fffee104700 (LWP 23207)]
[New Thread 0x7fffed903700 (LWP 23208)]
conky: too many interfaces used (limit is 64)
[Thread 0x7ffff110a700 (LWP 23197) exited]
[Thread 0x7ffff0909700 (LWP 23198) exited]
terminate called after throwing an instance of 'std::system_error'
  what():  Resource deadlock avoided

Thread 4 "conky" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff0108700 (LWP 23202)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        set = {__val = {0, 140737220998648, 0, 0, 0, 18374967954648334080, 0, 2305878331024736256, 0, 
            0, 0, 0, 0, 0, 0, 0}}
        pid = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
#1  0x00007ffff67ed535 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {
              0 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0x7fffe8003cb8}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff6bb7983 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#3  0x00007ffff6bbd8c6 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#4  0x00007ffff6bbd901 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#5  0x00007ffff6bbdb34 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#6  0x00007ffff6bb9a55 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#7  0x00007ffff6be6d6c in std::thread::join() () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#8  0x00005555555c3fb3 in conky::priv::callback_base::stop() ()
No symbol table info available.
#9  0x00005555555a3d49 in conky::priv::callback_base::deleter(conky::priv::callback_base*) ()
No symbol table info available.
#10 0x00005555555c3e65 in ?? ()
No symbol table info available.
#11 0x00005555555c4650 in std::_Hashtable<conky::callback_handle<conky::priv::callback_base>, conky::callback_handle<conky::priv::callback_base>, std::allocator<conky::callback_handle<conky::priv::callback_base> >, std::__detail::_Identity, bool (*)(conky::callback_handle<conky::priv::callback_base> const&, conky::callback_handle<conky::priv::callback_base> const&), unsigned long (*)(conky::callback_handle<conky::priv::callback_base> const&), std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::~_Hashtable()
    ()
No symbol table info available.
#12 0x00007ffff6804d8c in __run_exit_handlers (status=1, listp=0x7ffff6986718 <__exit_funcs>, 
    run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
        atfct = <optimized out>
        onfct = <optimized out>
        cxafct = <optimized out>
        f = <optimized out>
        new_exitfn_called = 121
        cur = 0x55555588d200
#13 0x00007ffff6804eba in __GI_exit (status=<optimized out>) at exit.c:139
No locals.
#14 0x00005555555ad26f in get_net_stat(char const*, void*, void*) ()
No symbol table info available.
#15 0x00005555555ca120 in update_net_stats() ()
No symbol table info available.
#16 0x00005555555c3ee3 in conky::priv::callback_base::start_routine() ()
--Type <RET> for more, q to quit, c to continue without paging--c
No symbol table info available.
#17 0x00007ffff6be6b2f in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#18 0x00007ffff7f8bfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
        ret = <optimized out>
        pd = <optimized out>
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737221003008, -7005558003763052133, 140737488345278, 140737488345279, 140737221003008, 140737488345664, 7005527599515369883, 7005540456660271515}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#19 0x00007ffff68c44cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
(gdb) 
@code1x1 code1x1 closed this as completed Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant