Bug 133653 - LUKS password prompt makes Libreoffice crashing
Summary: LUKS password prompt makes Libreoffice crashing
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2020-06-03 21:35 UTC by Germano Massullo
Modified: 2021-07-08 03:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2020-06-03 21:35:36 UTC
In Libreoffice, if you open "Save File" menu, and you browse an umounted LUKS storage, you will be prompted for LUKS password. By the way if instead of typng the password, you press ESC button on your keyboard, Libreoffice will crash.

$ gdb soffice.bin 773682
GNU gdb (GDB) Fedora 9.1-5.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
soffice.bin: File o directory non esistente.
Attaching to process 773682
[New LWP 773689]
[New LWP 773690]
[New LWP 773691]
[New LWP 773692]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f8adaec5b6f in __GI___poll (fds=0x563ee52a1880, nfds=3, timeout=150) at ../sysdeps/unix/sysv/linux/poll.c:29
--Type <RET> for more, q to quit, c to continue without paging--c
29        return SYSCALL_CANCEL (poll, fds, nfds, timeout);
(gdb) continue
Continuing.
[Thread 0x7f8ab3fff700 (LWP 773692) exited]
[New Thread 0x7f8ab3fff700 (LWP 773725)]
[New Thread 0x7f8ac39e6700 (LWP 773726)]
[Thread 0x7f8ac39e6700 (LWP 773726) exited]
[New Thread 0x7f8ac39e6700 (LWP 773730)]
[New Thread 0x7f8ab37fe700 (LWP 773731)]
[New Thread 0x7f8ab2ffd700 (LWP 773732)]
[New Thread 0x7f8a9f5b1700 (LWP 773733)]
[Thread 0x7f8ab2ffd700 (LWP 773732) exited]
[Thread 0x7f8ab37fe700 (LWP 773731) exited]
[Thread 0x7f8ac39e6700 (LWP 773730) exited]

Thread 1 "soffice.bin" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50        return ret;
(gdb) set height 0
(gdb) set print elements 0
(gdb) set print frame-arguments all
(gdb) thread apply all backtrace

Thread 11 (Thread 0x7f8a9f5b1700 (LWP 773733)):
#0  0x00007f8adaec5b6f in __GI___poll (fds=0x563ee681e9c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f8ad3c01ace in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x563ee681e9c0, timeout=<optimized out>, context=0x563ee681eac0) at ../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x563ee681eac0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4042
#3  0x00007f8ad3c01c03 in g_main_context_iteration (context=context@entry=0x563ee681eac0, may_block=may_block@entry=1) at ../glib/gmain.c:4108
#4  0x00007f8ab210afbd in dconf_gdbus_worker_thread (user_data=0x563ee681eac0) at ../gdbus/dconf-gdbus-thread.c:82
#5  0x00007f8ad3c2b812 in g_thread_proxy (data=0x563ee681c120) at ../glib/gthread.c:807
#6  0x00007f8adaa5c432 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f8adaed09d3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f8ab3fff700 (LWP 773725)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f8ad3c50426 in g_cond_wait_until (cond=cond@entry=0x563ee4c77888, mutex=mutex@entry=0x563ee4c77880, end_time=end_time@entry=1542035979825) at ../glib/gthread-posix.c:1588
#2  0x00007f8ad3bd14c1 in g_async_queue_pop_intern_unlocked (queue=0x563ee4c77880, wait=1, end_time=1542035979825) at ../glib/gasyncqueue.c:422
#3  0x00007f8ad3bd1b06 in g_async_queue_timeout_pop (queue=0x563ee4c77880, timeout=timeout@entry=15000000) at ../glib/gasyncqueue.c:545
#4  0x00007f8ad3c2c1b9 in g_thread_pool_wait_for_new_pool () at ../glib/gthreadpool.c:183
#5  g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:411
#6  0x00007f8ad3c2b812 in g_thread_proxy (data=0x563ee657f9e0) at ../glib/gthread.c:807
#7  0x00007f8adaa5c432 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f8adaed09d3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f8ac1a18700 (LWP 773691)):
#0  0x00007f8adaec5b6f in __GI___poll (fds=0x563ee665d1c0, nfds=7, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f8ad3c01ace in g_main_context_poll (priority=<optimized out>, n_fds=7, fds=0x563ee665d1c0, timeout=<optimized out>, context=0x563ee4c8aa10) at ../glib/gmain.c:4346
#2  g_main_context_iterate (context=0x563ee4c8aa10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4042
#3  0x00007f8ad3c01e53 in g_main_loop_run (loop=0x563ee4c8ab00) at ../glib/gmain.c:4241
#4  0x00007f8ad3e556aa in gdbus_shared_thread_func (user_data=0x563ee4c8a9e0) at ../gio/gdbusprivate.c:279
#5  0x00007f8ad3c2b812 in g_thread_proxy (data=0x563ee4c8ee40) at ../glib/gthread.c:807
#6  0x00007f8adaa5c432 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f8adaed09d3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f8ac2219700 (LWP 773690)):
#0  0x00007f8adaec5b6f in __GI___poll (fds=0x563ee4c82cc0, nfds=2, timeout=5399) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f8ad3c01ace in g_main_context_poll (priority=<optimized out>, n_fds=2, fds=0x563ee4c82cc0, timeout=<optimized out>, context=0x563ee4c85510) at ../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x563ee4c85510, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4042
#3  0x00007f8ad3c01c03 in g_main_context_iteration (context=0x563ee4c85510, may_block=may_block@entry=1) at ../glib/gmain.c:4108
#4  0x00007f8ad3c01c51 in glib_worker_main (data=<optimized out>) at ../glib/gmain.c:5996
#5  0x00007f8ad3c2b812 in g_thread_proxy (data=0x563ee4c75700) at ../glib/gthread.c:807
#6  0x00007f8adaa5c432 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f8adaed09d3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f8ac31e5700 (LWP 773689)):
#0  0x00007f8adaed19bf in __libc_accept (fd=11, addr=<optimized out>, addr@entry={<No data fields>}, len=len@entry=0x0) at ../sysdeps/unix/sysv/linux/accept.c:26
#1  0x00007f8adb0f55b3 in osl_acceptPipe (pPipe=0x563ee4b524b0) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/sal/osl/unx/pipe.cxx:380
#2  0x00007f8adb027f82 in osl::Pipe::accept (Connection=@0x7f8ac31e4900: {<osl::Pipe> = {m_handle = 0x0}, <No data fields>}, this=0x563ee4b58380) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/include/osl/pipe.hxx:151
#3  desktop::PipeIpcThread::execute (this=0x563ee4b58350) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/desktop/source/app/officeipcthread.cxx:1136
#4  0x00007f8ada0fcdeb in salhelper::Thread::run (this=0x563ee4b58350) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/salhelper/source/thread.cxx:40
#5  0x00007f8ada0fd084 in osl::threadFunc (param=0x563ee4b58360) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/include/osl/thread.hxx:185
#6  0x00007f8adb0fb178 in osl_thread_start_Impl (pData=0x563ee4b534f0) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/sal/osl/unx/thread.cxx:235
#7  0x00007f8adaa5c432 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f8adaed09d3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f8ad2299c80 (LWP 773682)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f8adadf4895 in __GI_abort () at abort.c:79
#2  0x00007f8ada57c81f in comphelper::SolarMutex::doRelease (this=0x563ee3cadcb0, bUnlockAll=<optimized out>) at /usr/src/debug/libreoffice-6.4.4.2-1.fc32.x86_64/comphelper/source/misc/solarmutex.cxx:64
#3  0x00007f8ac425776d in gtk_dialog_run (dialog=dialog@entry=0x563ee5520600) at gtkdialog.c:1397
#4  0x00007f8ac4289192 in error_message_with_parent (detail=0x563ee681ded0 "Not authorized to perform operation", msg=<optimized out>, parent=<optimized out>) at gtkfilechooserwidget.c:762
#5  error_message (impl=<optimized out>, msg=<optimized out>, detail=0x563ee681ded0 "Not authorized to perform operation") at gtkfilechooserwidget.c:785
#6  0x00007f8ad3ced88a in g_closure_invoke (closure=0x563ee662d080, return_value=return_value@entry=0x0, n_param_values=3, param_values=param_values@entry=0x7ffed9f16dd0, invocation_hint=invocation_hint@entry=0x7ffed9f16d50) at ../gobject/gclosure.c:810
#7  0x00007f8ad3d00423 in signal_emit_unlocked_R (node=node@entry=0x563ee4ea04a0, detail=detail@entry=0, instance=instance@entry=0x563ee4e36240, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffed9f16dd0) at ../gobject/gsignal.c:3742
#8  0x00007f8ad3d06af9 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7ffed9f16f80) at ../gobject/gsignal.c:3498
#9  0x00007f8ad3d06c63 in g_signal_emit (instance=instance@entry=0x563ee4e36240, signal_id=<optimized out>, detail=detail@entry=0) at ../gobject/gsignal.c:3554
#10 0x00007f8ac4341773 in emit_show_error_message (secondary_message=0x7f8aac011a40 "Not authorized to perform operation", primary_message=<optimized out>, view=0x563ee4e36240) at gtkplacesview.c:171
#11 volume_mount_ready_cb (source_volume=0x563ee5380dc0, res=<optimized out>, user_data=user_data@entry=0x563ee4e36240) at gtkplacesview.c:1307
#12 0x00007f8ad3de9e4a in g_task_return_now (task=task@entry=0x7f8aac003c90) at ../gio/gtask.c:1214
#13 0x00007f8ad3deaa3d in g_task_return (task=0x7f8aac003c90, type=<optimized out>) at ../gio/gtask.c:1283
#14 0x00007f8ad3deb4fe in g_task_return (type=G_TASK_RETURN_ERROR, task=<optimized out>) at ../gio/gtask.c:1861
#15 g_task_return_error (task=<optimized out>, error=<optimized out>) at ../gio/gtask.c:1867
#16 0x00007f8aa400ee40 in ?? ()
#17 0x5814c2f49c40e800 in ?? ()
#18 0x0000000000000000 in ?? ()




OS: Fedora 32
Versione: 6.4.4.2
Build ID: 6.4.4.2-1.fc32
Thread CPU: 2; SO: Linux 5.6; Resa interfaccia: predefinito; VCL: gtk3; 
Versione locale: it-IT (it_IT.UTF-8); Lingua interfaccia: it-IT
Calc: threaded
Comment 1 Xisco Faulí 2021-07-07 10:30:03 UTC
Hello Germano,
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 Germano Massullo 2021-07-07 11:04:08 UTC
Cannot reproduce on
Version: 7.1.4.2
Build ID: 10(Build:2)
CPU threads: 12; OS: Linux 5.12; UI render: default; VCL: kf5
Locale: it-IT (it_IT.UTF-8); UI: it-IT
Calc: threaded