[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

Stephan Bergmann  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |
 AssignedTo|libreoffice-b...@lists.free |sberg...@redhat.com
   |desktop.org |

--- Comment #11 from Stephan Bergmann  2012-02-20 00:13:05 
PST ---
No, this is not really fixed by removing the stdlibs that ship with LO.  (That 
only happens to make the bug go away, on systems with sufficiently recent
stdlibs.)  The real problem is the wrong way configure determines whether GCC 
-fthreadsafe-statics are actually usable (w/o causing deadlocks) on a given 
build
platform.  That still needs fixing.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

Michael Meeks  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #10 from Michael Meeks  2012-02-17 
13:23:40 UTC ---
So resolving duplicate of removing stdlibs.

*** This bug has been marked as a duplicate of bug 46246 ***

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

Michael Meeks  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1

--- Comment #9 from Michael Meeks  2012-02-17 
13:15:35 PST ---
 dave_largo: ping ?
 mmeeks: Hey!  What's up?
 dave_largo: did you manage to verify if removing those libraries fixes 
the deadlock on start for you ?
 Yes, deadlocks have stopped

As such this should be automatically fixed in 3.5.1 where we stop shipping 
those libraries I believe.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #8 from Stephan Bergmann  2012-02-15 23:51:42 
PST ---
And indeed, compiling the C++ test program at

 makes it run fine for me (Fedora 16 x86_64,
based on GCC 4.6.2), but running it with 
LD_LIBRARY_PATH=/opt/libreoffice3.5/ure/lib (so that it picks up the 
libstdc++.so.6 and libgcc_s.so.1 GCC standard
libraries from the official LO instanllation set, which come from a rather old 
GCC toolchain) makes it hang.

That is, the assumption that all Linux GCC >= 4 have a working 
-fthreadsafe-statics is apparently wrong.  Need to dig out the exact version 
where the problem
got fixed.

Dave, a quick workaround should be to move away 
/opt/libreoffice3.5/ure/lib/{libgcc_s.so.1,libstdc++.so.6}.  The deadlocks 
should hopefully go away then.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #7 from Stephan Bergmann  2012-02-15 14:12:45 
PST ---
Another thing that comes to mind is threadsafe statics.  The thread that is 
completely within configmgr (apparently within
configmgr::Components::WriteThread::run) calls __cxa_guard_acquire, i.e., comes 
across a local static variable (with non-trivial ctor), likely typeNames in
writeNode (configmgr/source/writemodfile.cxx) or theLock in lock 
(configmgr/source/lock.cxx).

The main thread is in the SwModule ctor, which it must reach via

- SwModule::SwModule
- SwDLL::SwDLL
- (anonymous namespace)::SwDLLInstance::SwDLLInstance
- rtl::Static<{anonymous}::SwDLLInstance, 
{anonymous}::theSwDLLInstance>::get(void)
- SwGlobals::ensure
[...]

i.e., it also is within a local static ctor in rtl::Static::get 
(rtl/instance.hxx; thanks to HAVE_THREADSAFE_STATICS being generally enabled on 
Linux, cf.
configure.in).

Now, "Some C++ runtimes use a single lock for all static variables, which can 
cause deadlock in multi-threaded applications." (cf. configure.in; and e.g., Mac
OS X is known to be affected by this problem).  It is not entirely clear to me 
which Linux GCC versions are affected by this problem (recent versions are known
to no longer have this defect).

But the LO Linux installation sets available from 
 are built with a rather old GCC 
toolchain (cf. comment 3 to bug
45696), and I do not know whether that might still exhibit this problem.

(OOo is far more conservative wrt exploiting -fthreadsafe-static, i.e., it does 
not have the HAVE_THREADSAFE_STATICS optimizations in rtl/instance.hxx, so
would not exhibit this problem.)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #6 from Dave Richards  2012-02-15 13:21:39 PST 
---
@all:  Sberg was kind enough to send me configmgr.uno.so which I will install 
tomorrow and replicate.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #5 from Michael Meeks  2012-02-15 
12:29:23 PST ---
#3  0x7fd19495e7d0 in osl_acquireMutex () from 
/opt/libreoffice3.5/program/../ure-link/lib/libuno_sal.so.3
#4  0x7fd1882a0a19 in osl_waitCondition () from 
/opt/libreoffice3.5/program/../program/configmgr.uno.so
#5  0x7fd190d4f038 in 
utl::DefaultFontConfiguration::tryLocale(com::sun::star::lang::Locale const&, 
rtl::OUString const&) const () from
/opt/libreoffice3.5/program/libutllo.so
#6  0x7fd190d4f665 in 
utl::DefaultFontConfiguration::getDefaultFont(com::sun::star::lang::Locale 
const&, int) const ()

looks garbled - utl's tryLocale seems likely, but it calls directly via the 
vtable into configmgr, presumably something like:

   Reference< XNameAccess > xNode;
   if ( m_xConfigAccess->hasByName( it->second.aConfigLocaleString ) )

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

Michael Meeks  changed:

   What|Removed |Added

 CC||michael.me...@novell.com,
   ||sberg...@redhat.com

--- Comment #4 from Michael Meeks  2012-02-15 
12:17:28 PST ---
As Caolan says, looks like some potential configmgr deadlock.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #3 from Dave Richards  2012-02-15 12:13:34 PST 
---
Also, this is running on the same server as OpenOffice and has access to the 
same fonts at OpenOffice.  OpenOffice 3.3 is not experiencing this issue.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #2 from Dave Richards  2012-02-15 12:12:41 UTC 
---
Created attachment 57115
  --> https://bugs.freedesktop.org/attachment.cgi?id=57115
Second Backtrace

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 46129] DeadLock At Startup While Loading Fonts

2012-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46129

--- Comment #1 from Dave Richards  2012-02-15 12:12:15 PST 
---
Created attachment 57114
  --> https://bugs.freedesktop.org/attachment.cgi?id=57114
First Backtrace

Splash page starts, both splash and write halt.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs