473,508 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

solaris threading problem: interpreter hangs on shutdown


Hi there,
I have severe problems running python 1.5.2 (yes I know, but this is a
productive environment;
cannot switch to py 2.3.3 until later this year...) on several
multi-processor sun systems.
This happens intermittently, both on solaris 6 and solaris 8 systems.

Basically, there is a mainthread that controls start and cleanup of some
other threads.
If one of those has done all its processing, it registers itself in the
to-be-finished list
of the main application object. The mainthread then invokes some cleanup
stuff,
makes sure all of the working treads end (they are .join-ed), and exits..
This works fine in maybe 95 % of all runs, but sometimes the program just
hangs.
Still, all the processing has been done correctly by that time, it simply
does not end.

The truss output in such a situation looks like that:
16562: lwp_cond_wait(0xFF275548, 0xFF275558, 0xFF26EDB0) (sleeping...)
16562: door_return(0x00000000, 0, 0x00000000, 0) (sleeping...)
16562: poll(0xFEE09A28, 2, 10000) = 0
16562: signotifywait() (sleeping...)
16562: lwp_sema_wait(0xFEF0DE30) (sleeping...)
16562: lwp_sema_wait(0xFEA03E30) (sleeping...)
16562: poll(0xFEE09A28, 2, 10000) (sleeping...)
16562: lwp_sema_wait(0xFED09E30) (sleeping...)
16562: lwp_sema_wait(0xFF26FA08) (sleeping...)
16562: lwp_sema_wait(0xFEB05E30) (sleeping...)
16562: lwp_sema_wait(0x00094990) (sleeping...)
16562: lwp_cond_wait(0xFF275548, 0xFF275558, 0xFF26EDB0) (sleeping...)
16562: door_return(0x00000000, 0, 0x00000000, 0) (sleeping...)
16562: poll(0xFEE09A28, 2, 10000) = 0
16562: signotifywait() (sleeping...)
16562: lwp_sema_wait(0xFEF0DE30) (sleeping...)
16562: lwp_sema_wait(0xFEA03E30) (sleeping...)
16562: poll(0xFEE09A28, 2, 10000) (sleeping...)
16562: lwp_sema_wait(0xFED09E30) (sleeping...)
16562: lwp_sema_wait(0xFF26FA08) (sleeping...)
16562: lwp_sema_wait(0xFEB05E30) (sleeping...)
16562: lwp_sema_wait(0x00094990) (sleeping...)

I do not have any clue what´s the reason for this, because everything just
seems to
work fine according to the debug output. - no possible deadlocks or
anything.
As this is s.th. I cannot reproduce within a simple sample app, it is also
difficult
for me to post any code...

But, from the back of my head, I think I somewhere read s.th. about
python/solaris threading
problems, I just did not find anything relevant on python.org or by
googling.

Does anybody know of python 1.5.2 threading library problems, in which
python release
this has been fixed, etc.???
Even vague hints are really appreciated!

Have a nice weekend,
Holger

Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail. Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.
Jul 18 '05 #1
0 1196

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
6560
by: Jorge Godoy | last post by:
Hi! I must have been searching in the wrong places or with the wrong keywords but I couldn't find out how to implement something such as what is done by the threading module on Windows (95, 98...
0
3483
by: David | last post by:
I've written a small windows service, and I'm having a problem that I'm spending a lot more time on than I'd like. If anyone has experienced this problem and has any hints or solutions; they would...
0
1179
by: Sam | last post by:
I'm using Python 2.3.5 with pygtk 2.4.1, and I'm using the second threading approach from pygtk's FAQ 20.6 - invoking "gtk.gdk.threads_init()", and wrapping all gtk/gdk function calls with...
3
1504
by: Keith Mills | last post by:
Hello, please find attached a basic outline of what I am attempting to accomplish... basically I want to create a number of THREADS (which I can do fine), but I then need a method for them to be...
0
9734
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
2
2017
by: Panard | last post by:
Hi, I'm experiencing a strange problem while trying to manage a ftp connection into a separate thread. I'm on linux, python 2.4.3 Here is a test : ------ ftp_thread.py ------ import ftplib...
2
2054
by: akameswaran | last post by:
Admittedly this problem causes no actual functional issues aside from an occasional error message when the program exits. The error is: Unhandled exception in thread started by Error in...
2
2551
by: Sin Jeong-hun | last post by:
I created a windows form application. It has a Threading.Timer and when the timer ticks it does some work and show a popup window. The problem is that while this program is running if the user...
1
1399
by: Nico Blodow | last post by:
Hi all, I hope this hasn't been brought up before, but if it did i missed it, so bear with me please :) anyway, i'm trying to embed Python into a C program. A sample python syript i want to run...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.