Commit Graph

12 Commits

Author SHA1 Message Date
Stephan Bergmann
123c59342c Adapted GCThread to safer-to-use salhelper::Thread 2012-02-23 10:47:35 +01:00
Michael Stahl
29177b1d04 pyuno: decreaseRefCount: valgrind warning:
Apparently the thread spawned in decreaseRefCount runs and deletes
itself before the "m_hThread != 0" from osl::Thread::create is executed;
try a lame workaround for that.

==1877== Invalid read of size 8
==1877==    at 0x2A70E546: osl::Thread::create() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E351: pyuno::decreaseRefCount(_is*, _object*) (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A7092B4: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A709393: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x5EF2F64: cppu::OWeakObject::release() (weak.cxx:213)
==1877==    by 0x2A70DE69:
==1877==  Address 0x1ee30818 is 8 bytes inside a block of size 32 free'd
==1877==    at 0x4A0662E: free (vg_replace_malloc.c:366)
==1877==    by 0x4C44B62: rtl_freeMemory_SYSTEM(void*) (alloc_global.cxx:285)
==1877==    by 0x4C44DC7: rtl_freeMemory (alloc_global.cxx:355)
==1877==    by 0x2A70E41E: osl::Thread::operator delete(void*) (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E6EF: pyuno::GCThread::~GCThread() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E303: pyuno::GCThread::onTerminated() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E671: threadFunc (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x4C2E242: osl_thread_start_Impl (thread.c:292)
==1877==    by 0x3C26607D8F: start_thread (pthread_create.c:309)
==1877==    by 0x3C262EF48C: clone (clone.S:115)
2012-02-18 00:07:31 +01:00
Takeshi Abe
7958f8244c catch exception by constant reference 2011-12-21 21:57:54 +09:00
Sebastian Spaeth
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
Jens-Heiner Rechtien
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Caolán McNamara
327de52e63 #i105919# avoid crash after python deinitialized post exit 2009-10-17 13:09:10 +00:00
Rüdiger Timm
6418e770db INTEGRATION: CWS changefileheader (1.5.54); FILE MERGED
2008/03/31 07:24:58 rt 1.5.54.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:34:22 +00:00
Jens-Heiner Rechtien
67c96a9e5f INTEGRATION: CWS warnings01 (1.3.16); FILE MERGED
2005/09/23 02:08:41 sb 1.3.16.2: RESYNC: (1.3-1.4); FILE MERGED
2005/09/09 15:31:19 sb 1.3.16.1: #i53898# Made code warning-free.
2006-06-20 04:03:48 +00:00
Rüdiger Timm
69b4623bbb INTEGRATION: CWS ooo19126 (1.3.14); FILE MERGED
2005/09/05 18:39:21 rt 1.3.14.1: #i54170# Change license header: remove SISSL
2005-09-08 15:52:36 +00:00
Jens-Heiner Rechtien
71ff0547fd INTEGRATION: CWS pyunofixes1 (1.2.24); FILE MERGED
2005/01/19 23:13:26 jbu 1.2.24.1: #i37468# reduced liklyhood of crashing after main with extra checks
2005-02-11 15:40:27 +00:00
Jens-Heiner Rechtien
593ae82fcb INTEGRATION: CWS geordi2q14 (1.1.34); FILE MERGED
2004/01/29 18:09:56 hr 1.1.34.1: #111934#: merge CWS ooo111fix2
2004-02-02 18:30:09 +00:00
Jörg Budischewski
e80bdbafeb initial checkin for the pyuno-0.9.2 release 2003-03-23 11:12:59 +00:00