[Libreoffice-bugs] [Bug 107039] Crash on Close after acknowledging save changes - mutex issue ( steps in comment 34)

2018-01-03 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=107039

Tor Lillqvist  changed:

   What|Removed |Added

   Assignee|libreoffice-b...@lists.free |t...@iki.fi
   |desktop.org |

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 107039] Crash on Close after acknowledging save changes - mutex issue ( steps in comment 34)

2018-01-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=107039

--- Comment #41 from Tor Lillqvist  ---
Explanation to the backtraces in Comment #39: 

Thread 1 is attempting to lock the oslMutexImpl at 0x2ad7eb0. It has already
locked the SolarMutex at slot #16, in
DocumentStorageModifyListener::modified().

Thread 6 is attempting to lock the SolarMutex. It has already locked the same
mutex that thread 1 is attempting to lock when creating the AutoRecovery object
being used around slot #14.

Thus the suggested patch makes sure we lock the SolarMutex first, in the code
at slot #14.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 107039] Crash on Close after acknowledging save changes - mutex issue ( steps in comment 34)

2018-01-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=107039

--- Comment #40 from Tor Lillqvist  ---
Tentative fix in https://gerrit.libreoffice.org/#/c/47249/

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 107039] Crash on Close after acknowledging save changes - mutex issue ( steps in comment 34)

2018-01-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=107039

--- Comment #39 from Tor Lillqvist  ---
Here are the backtraces from the two threads that deadlock, as far as I
understand:

(gdb) i thr
  Id   Target Id Frame 
* 1Thread 0x7f4957d49ac0 (LWP 3567) "soffice.bin" 0x7f4956ee23bd in
__lll_lock_wait () from /lib64/libpthread.so.0
  2Thread 0x7f492f897700 (LWP 3569) "rtl_cache_wsupd" 0x7f4956edf1f6 in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  3Thread 0x7f492d28e700 (LWP 3572) "PipeIPC" 0x7f49572085eb in accept
() from /lib64/libc.so.6
  4Thread 0x7f4925d1b700 (LWP 3574) "SelectionManage" 0x7f49571fb30b in
poll () from /lib64/libc.so.6
  5Thread 0x7f492551a700 (LWP 3576) "ICEConnectionWo" 0x7f49571fb30b in
poll () from /lib64/libc.so.6
  6Thread 0x7f492dca1700 (LWP 3583) "DocumentEventNo" 0x7f4956ee23bd in
__lll_lock_wait () from /lib64/libpthread.so.0
  7Thread 0x7f490c90e700 (LWP 3584) "UNO AffineBridg" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  8Thread 0x7f490c10d700 (LWP 3585) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  9Thread 0x7f48f664f700 (LWP 3586) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  10   Thread 0x7f48f654e700 (LWP 3587) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  11   Thread 0x7f48f644d700 (LWP 3588) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  12   Thread 0x7f48f634c700 (LWP 3589) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  13   Thread 0x7f48f624b700 (LWP 3590) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  14   Thread 0x7f48f614a700 (LWP 3591) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  15   Thread 0x7f48f6049700 (LWP 3592) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  16   Thread 0x7f48ef1f1700 (LWP 3593) "soffice.bin" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  17   Thread 0x7f48ef0f0700 (LWP 3594) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  18   Thread 0x7f48ee8ef700 (LWP 3595) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  19   Thread 0x7f48ee0ee700 (LWP 3596) "soffice.bin" 0x7f4956ee1986 in
do_futex_wait.constprop () from /lib64/libpthread.so.0
  20   Thread 0x7f48ed8ed700 (LWP 3597) "soffice.bin" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  21   Thread 0x7f48ed7ec700 (LWP 3598) "soffice.bin" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  22   Thread 0x7f48ed6eb700 (LWP 3599) "soffice.bin" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  23   Thread 0x7f48ed5ea700 (LWP 3600) "soffice.bin" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  24   Thread 0x7f48ed4e9700 (LWP 3601) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  25   Thread 0x7f48ecce8700 (LWP 3602) "soffice.bin" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  26   Thread 0x7f48ecbe7700 (LWP 3603) "UNO AffineBridg" 0x7f4956edf14a in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  27   Thread 0x7f491a3df700 (LWP 3604) "soffice.bin" 0x7f4956edec4b in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0

(gdb) bt
#0  0x7f4956ee23bd in __lll_lock_wait () at /lib64/libpthread.so.0
#1  0x7f4956edb1d8 in pthread_mutex_lock () at /lib64/libpthread.so.0
#2  0x7f4957945743 in osl_acquireMutex(oslMutexImpl*) (pMutex=0x22b29a0) at
/ssd1/lo/fedora/sal/osl/unx/mutex.cxx:97
#3  0x7f492687ff78 in osl::Mutex::acquire() (this=0x1f4c858) at
/ssd1/lo/fedora/include/osl/mutex.hxx:56
#4  0x7f49268a0203 in osl::Guard::Guard(osl::Mutex&)
(this=0x7ffd92ccedd0, t=...) at /ssd1/lo/fedora/include/osl/mutex.hxx:129
#5  0x7f49269b8819 in (anonymous namespace)::CacheLockGuard::lock(bool)
(this=0x7ffd92cceee8, bLockForAddRemoveVectorItems=false) at
/ssd1/lo/fedora/framework/source/services/autorecovery.cxx:1131
#6  0x7f49269b6b69 in (anonymous
namespace)::CacheLockGuard::CacheLockGuard((anonymous
namespace)::AutoRecovery*, osl::Mutex&, int&, bool) (this=0x7ffd92cceee8, 
pOwner=0x1f4c7e0, rMutex=..., rCacheLock=@0x1f4c9b8: 1,
bLockForAddRemoveVectorItems=false) at
/ssd1/lo/fedora/framework/source/services/autorecovery.cxx:1119
#7  0x7f49269c923f in (anonymous
namespace)::AutoRecovery::implts

[Libreoffice-bugs] [Bug 107039] Crash on Close after acknowledging save changes - mutex issue ( steps in comment 34)

2018-01-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=107039

rob...@familiegrosskopf.de changed:

   What|Removed |Added

   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=11
   ||3915

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 107039] Crash on Close after acknowledging save changes - mutex issue ( steps in comment 34)

2018-01-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=107039

Tor Lillqvist  changed:

   What|Removed |Added

Summary|Crash on Close after|Crash on Close after
   |acknowledging save changes  |acknowledging save changes
   |- mutex issue (steps in |- mutex issue (steps in
   |comment 21) |comment 34)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs