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

Core dump json_node_unref #583

Open
grimpy opened this issue Oct 8, 2023 · 5 comments
Open

Core dump json_node_unref #583

grimpy opened this issue Oct 8, 2023 · 5 comments
Labels
bug An issue that is confirmed as a bug

Comments

@grimpy
Copy link

grimpy commented Oct 8, 2023

Current Behavior

Application core dumps when running in background

Expected Behavior

No Crash

Desktop

Other (please specify)

Other Desktop

sway

Operating System

Arch

Installed from

Built from source (Other)

Version

nightly

Devices

KDE Connect (Android)

Plugins

No response

Logs

17:36:37.2089                           Json: CRITICAL: json_node_unref: assertion 'JSON_NODE_IS_VALID (node)' failed
malloc(): unaligned tcache chunk detected
[1]    238822 IOT instruction (core dumped)  valent

Screenshots

No response

@grimpy grimpy added the triage An issue that needs confirmation and labeling label Oct 8, 2023
@andyholmes
Copy link
Owner

Thanks for the report, do you have the coredump available?

@grimpy
Copy link
Author

grimpy commented Oct 8, 2023

no, Ill try to reproduce it when coredump is enabled...

@andyholmes andyholmes added needs info An issue that needs more information and removed triage An issue that needs confirmation and labeling labels Oct 8, 2023
@grimpy
Copy link
Author

grimpy commented Nov 20, 2023

       Message: Process 128832 (valent) of user 1000 dumped core.
                
                Stack trace of thread 128962:
                #0  0x00007fb160f5d83c n/a (libc.so.6 + 0x8e83c)
                #1  0x00007fb160f0d668 raise (libc.so.6 + 0x3e668)
                #2  0x00007fb160ef54b8 abort (libc.so.6 + 0x264b8)
                #3  0x00007fb160ef6390 n/a (libc.so.6 + 0x27390)
                #4  0x00007fb160f677b7 n/a (libc.so.6 + 0x987b7)
                #5  0x00007fb160f6c45c n/a (libc.so.6 + 0x9d45c)
                #6  0x00007fb160f5b865 n/a (libc.so.6 + 0x8c865)
                #7  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128834:
                #0  0x00007fb160fdd73d syscall (libc.so.6 + 0x10e73d)
                #1  0x00007fb1620332b7 g_cond_wait (libglib-2.0.so.0 + 0xb32b7)
                #2  0x00007fb161fa51b4 n/a (libglib-2.0.so.0 + 0x251b4)
                #3  0x00007fb16200da7e n/a (libglib-2.0.so.0 + 0x8da7e)
                #4  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #5  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #6  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128835:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb162038276 n/a (libglib-2.0.so.0 + 0xb8276)
                #2  0x00007fb161fd8162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                #3  0x00007fb161fd81b2 n/a (libglib-2.0.so.0 + 0x581b2)
                #4  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #5  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #6  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128837:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb162038276 n/a (libglib-2.0.so.0 + 0xb8276)
                #2  0x00007fb161fdab97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
                #3  0x00007fb16224014c n/a (libgio-2.0.so.0 + 0x11214c)
                #4  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #5  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #6  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128840:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb162038276 n/a (libglib-2.0.so.0 + 0xb8276)
                #2  0x00007fb161fdab97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
                #3  0x0000558b79723ce8 n/a (valent + 0x37ce8)
                #4  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #5  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #6  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128836:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb162038276 n/a (libglib-2.0.so.0 + 0xb8276)
                #2  0x00007fb161fd8162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                #3  0x00007fb15b277fde n/a (libdconfsettings.so + 0x5fde)
                #4  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #5  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #6  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128832:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb162038276 n/a (libglib-2.0.so.0 + 0xb8276)
                #2  0x00007fb161fd8162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                #3  0x00007fb16220db16 g_application_run (libgio-2.0.so.0 + 0xdfb16)
                #4  0x0000558b7970e945 n/a (valent + 0x22945)
                #5  0x00007fb160ef6cd0 n/a (libc.so.6 + 0x27cd0)
                #6  0x00007fb160ef6d8a __libc_start_main (libc.so.6 + 0x27d8a)
                #7  0x0000558b7970eb65 _start (valent + 0x22b65)
                
                Stack trace of thread 128851:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128849:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128846:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128848:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128847:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128855:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128964:
                #0  0x00007fb160fdd73d syscall (libc.so.6 + 0x10e73d)
                #1  0x00007fb162033c93 g_cond_wait_until (libglib-2.0.so.0 + 0xb3c93)
                #2  0x00007fb161fa5185 n/a (libglib-2.0.so.0 + 0x25185)
                #3  0x00007fb161fa52e7 g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x252e7)
                #4  0x00007fb16200e36e n/a (libglib-2.0.so.0 + 0x8e36e)
                #5  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #6  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #7  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128850:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128864:
                #0  0x00007fb160fdd73d syscall (libc.so.6 + 0x10e73d)
                #1  0x00007fb1620332b7 g_cond_wait (libglib-2.0.so.0 + 0xb32b7)
                #2  0x00007fb161fa51b4 n/a (libglib-2.0.so.0 + 0x251b4)
                #3  0x00007fb161fa521c g_async_queue_pop (libglib-2.0.so.0 + 0x2521c)
                #4  0x0000558b79750884 n/a (valent + 0x64884)
                #5  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #6  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #7  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128853:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128966:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb1621c7ad6 g_socket_condition_timed_wait (libgio-2.0.so.0 + 0x99ad6)
                #2  0x00007fb1621c7e28 n/a (libgio-2.0.so.0 + 0x99e28)
                #3  0x00007fb1621a7ef5 g_input_stream_read (libgio-2.0.so.0 + 0x79ef5)
                #4  0x00007fb158382ffb n/a (libgiognutls.so + 0xaffb)
                #5  0x00007fb160d51015 n/a (libgnutls.so.30 + 0x151015)
                #6  0x00007fb160c41063 n/a (libgnutls.so.30 + 0x41063)
                #7  0x00007fb160c44630 n/a (libgnutls.so.30 + 0x44630)
                #8  0x00007fb158388498 n/a (libgiognutls.so + 0x10498)
                #9  0x00007fb15838b10b n/a (libgiognutls.so + 0x1310b)
                #10 0x00007fb15838b745 n/a (libgiognutls.so + 0x13745)
                #11 0x00007fb1621a7ef5 g_input_stream_read (libgio-2.0.so.0 + 0x79ef5)
                #12 0x00007fb162170cd1 n/a (libgio-2.0.so.0 + 0x42cd1)
                #13 0x00007fb162171944 g_buffered_input_stream_fill (libgio-2.0.so.0 + 0x43944)
                #14 0x00007fb16217afe7 g_data_input_stream_read_line (libgio-2.0.so.0 + 0x4cfe7)
                #15 0x00007fb16217b151 g_data_input_stream_read_line_utf8 (libgio-2.0.so.0 + 0x4d151)
                #16 0x00007fb162429210 n/a (libvalent-1.so.1.0.0 + 0x35210)
                #17 0x00007fb1621dbdb8 n/a (libgio-2.0.so.0 + 0xaddb8)
                #18 0x00007fb16200e4d3 n/a (libglib-2.0.so.0 + 0x8e4d3)
                #19 0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #20 0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #21 0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128845:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128970:
                #0  0x00007fb160fd1f6f __poll (libc.so.6 + 0x102f6f)
                #1  0x00007fb162038276 n/a (libglib-2.0.so.0 + 0xb8276)
                #2  0x00007fb161fdab97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
                #3  0x00007fb162422098 n/a (libvalent-1.so.1.0.0 + 0x2e098)
                #4  0x00007fb16200b9f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                #5  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #6  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128852:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                
                Stack trace of thread 128854:
                #0  0x00007fb160f584ae n/a (libc.so.6 + 0x894ae)
                #1  0x00007fb160f5ad40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                #2  0x00007fb129ed1b5c n/a (iris_dri.so + 0xd1b5c)
                #3  0x00007fb129f1ca0c n/a (iris_dri.so + 0x11ca0c)
                #4  0x00007fb160f5b9eb n/a (libc.so.6 + 0x8c9eb)
                #5  0x00007fb160fdf7cc n/a (libc.so.6 + 0x1107cc)
                ELF object binary architecture: AMD x86-64

core.valent.1000.38e797467f9645e3b9fffca6499ee531.128832.1700461504000000.zst.gz

Today it reproduced and i managed to get the coredump

@andyholmes andyholmes added bug An issue that is confirmed as a bug and removed needs info An issue that needs more information labels Nov 22, 2023
@andyholmes
Copy link
Owner

Thanks, I'll look into this when I find time.

@andyholmes
Copy link
Owner

Sorry, I couldn't manage to get debug symbols working with the core dump you sent me. If it happens again, please use:

# Find the core dump for valent
$ coredumptcl list
#
$ flatpak-coredumpctl -m <PID> ca.andyholmes.Valent

You may have to install the debug symbols:

$ flatpak install --include-debug ca.andyholmes.Valent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that is confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants