Hi,

please try to get a stacktrace using gdb. E.g.

$ limit coredumpsize unlimited
$ ./python.sh ootest.py
[core dumped]
$ gdb python-2.3.4/bin/python ./core
...
> where
...
> info shared

, create an issue and assign it to me.

Bye,

Joerg

Ross McKerchar wrote:
Hello,

When using pyuno to get a handle on a running Openoffice python segfaults upon resolving the connection. For example, a the line "ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )" in the helloworld.py sample program python crashes with the message "Segmentation Fault".

I have tried:

1. Various different 2.x builds of openoffice, including the latest development one, they all produce the same problem
2. Connecting to another OO installation over the network, which works fine
3. Replacing the OO version of python with various other versions, they all (the ones I can get working anyway) segfault too. 4. Researching the file "libgcc3_urp.so" listed by strace just before the segfault:
-------------------------------------------------------------
[EMAIL PROTECTED] program]# strace ./python.sh ootest.py
<snip>
open("/usr/lib/tls/libgcc3_urp.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/sse2/libgcc3_urp.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libgcc3_urp.so", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0xb7346000, 46916)               = 0
open("./libgcc3_urp.so", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
-------------------------------------------------------------
But there seems remarkably little info on it, a google search throws up my post at http://www.oooforum.org/forum/viewtopic.phtml?t=33944 that I posted a few days ago and a post to the oo dev list from someone with the same problem as me: http://www.openoffice.org/servlets/BrowseList?listName=dev&from=2005-11-01&to=2005-11-30&count=264&by=date&paged=false (and no resolution!). Additionally a FC4 box also doesn't have libgcc3_urp.so but it runs fine. 5. Running OO as various different users & wiping ~/.openoffice still a segfault.

I am running Whitebox Enterprise Linux 4 (a RHEL clone) and OpenOffice 2.0.2 (althought as mentioned above, all 2.0.x distro's have the same problem).

I have found that I can get python code to run as a registered python UNO component (following steps at http://udk.openoffice.org/python/python-bridge.html#components) but this is of little use to me.

I can dont experience the problem running a sample java program instead.

I'm struggling now as I have exhausted my (fairly limited) experience in these matters. I am also surprised by the lack of info available anywhere. Consequently any help or pointers towards solving this problem would be much appreciated.

regards,

-ross


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to