[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Porting CommonC++ to AiX-4.3
From: |
Bernhard Trummer |
Subject: |
Re: Porting CommonC++ to AiX-4.3 |
Date: |
Tue, 29 Jan 2002 17:01:58 +0100 |
User-agent: |
Mutt/1.2.5i |
On Thu, Jan 17, 2002 at 11:38:16AM +0100, Bernhard Trummer wrote:
> 2.)
> The SocketService currently crashes immediately, after Start()
> is called. Maybe it works, if the thread-stuff above is fixed...
I still have troubles, getting a working SocketService on AiX.
After temporarily placing in some cout-messages, I found out,
that:
* A new pthread will be created successfully.
* This thread will start executing ccxx_exec_handler(Thread *th).
* When the thread calls th->Run(), a Segmentation Fault will occur
and the Run() method of the SocketService will never be executed.
Currently, I have absolutely no idea, why the thread crashes.
The only thing that I can say is, that I am using a similar Thread-
encapsulation class in my own library, that I want to replace with
CommonC++ (sooner or later...)
The only difference is, that I am not using Start-semaphores,
pthread_cleanup_push/pop, and the thread-cancellation stuff.
Even, if I comment out these stuff from CommonC++'s Thread-class, the
created thread mentioned above will still crash, when calling Run().
Do you have any idea, what might go wrong here?
Thank you and ciao.
--
Your nature demands love and your happiness depends on it.