1753262 Members
4833 Online
108792 Solutions
New Discussion юеВ

Re: Threads

 
Alex Valdez
New Member

Threads

My computer is a HP C180.
Operating system is HPUX 10-20. Not sure if I'm using the ACE 9912 version
which is the only supported HPUX 10-20 version. (will check on it)

I'm an application type programmer in my current position with no previous
experience dealing with threads until now.

For the past 2 weeks, my process has been aborting with segmentation faults.
When I bring up the hp dde or HP's version of gdb I see there are 4 threads
running. Thread 1 which seems to be my process main eventloop, a null thread,
and 2 orbix threads. In my main process thread(1) the last routing called from
the application level is gethostbyname. From that point on there are lots of
cma_xxxx type routines showing up on the remainder of the trace. When I type
cma threads on my browser it took me to DEC's cma thread interface...am I
seeing things?

I would appreciate any suggestions as how to approach this problem. I've tried
using the re-entrant version: gethostbyname_r but that did'nt help also.
2 REPLIES 2
Randy Mather
Frequent Advisor

Re: Threads

How much physical memory do you have, and how large is your swap?
Alex Valdez
New Member

Re: Threads

Swap is 1048576 blocks of 512 bytes or about 536MB.
Physical Memory 262,144 KB, Lockable 175,832KB,
Available 204,768KB.

Noticed some Patches related to gethostbyname when I used the forum's search
with the keyword gethostbyname.
My system admin is looking at it.

Also there are some Compile switches _REENTRANT, _THREAD_SAFE, and a few _XOPEN
ones which are related to all of this. I noticed when compiling my own
application
code the _THREAD_SAFE, and _REENTRANT flags are set, but
the _XOPEN ones are also used by protocol service layer of C++ classes written
by TRW. Don't know what the significance of the _XOPEN flags yet.