Operating System - HP-UX
1821410 Members
3009 Online
109633 Solutions
New Discussion юеВ

Gretting EBADF when doing accept on a socket

 
John Weaver
New Member

Gretting EBADF when doing accept on a socket

See attachment
8 REPLIES 8
James Drobina
New Member

Re: Gretting EBADF when doing accept on a socket

Did you find a soultion for this problem?

We have a application which uses Orbix that is exhibiting the same symptoms. If the application is linked with the MT version of the Orbix library the accept fails with errno = EBADF. If the application is linked with the single threaded version of the Orbix library the accept succeeds. In fact, the accept() will fail if the application is linked with the MT version of the library. It does not have to invoke any orbix functions.
John Weaver
New Member

Re: Gretting EBADF when doing accept on a socket

I didn't receive an answer. I can't remember if I put the part ib about later would do a close on the sockect fd and don't get an error. This is a java based app
James Drobina
New Member

Re: Gretting EBADF when doing accept on a socket

tusc may have side effects which cause the accept() to fail. I tried runnig tusc on my example program and it failed during the accept returning EBADF as a return code. The program works if I do not use tusc.


I have attached the test program source as well as the tusc output. I use telnet for a client.
John Weaver
New Member

Re: Gretting EBADF when doing accept on a socket

That is good to know. The reason we ran tusc was because the app. was failing in the first place :(
James Drobina
New Member

Re: Gretting EBADF when doing accept on a socket

Try patch PHKL_22840. It should fix the problem.
Berlene Herren
Honored Contributor

Re: Gretting EBADF when doing accept on a socket

I have seen this error message when the ARPA patch was installed without all of it's dependencies. It only seemed to affect multithreaded application that was in development and accept() seemed to be the only call that failed.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
ESA Roseville
New Member

Re: Gretting EBADF when doing accept on a socket

I am having similiar problems with HP-UX 11.00 and MySQL. I haven't solved it yet. The arpa patch mentioned below, anyone get the patch number?
Berlene Herren
Honored Contributor

Re: Gretting EBADF when doing accept on a socket

for 11.0

PHNE_22397 cumulative ARPA Transport patch

PHKL_18543 PM/VM/UFS/async/scsi/io/DMAPI/JFS/perf patch
PHKL_20016 2nd CPU not recognized in G70/H70/I70
PHCO_22269 cumulative SAM/ObAM patch
PHKL_22432 VxFS 3.1 icache cumulative patch
PHCO_22453 fsck_vxfs(1M) cumulative patch
PHNE_22566 Cumulative STREAMS Patch
PHKL_22589 LOFS, select(), IDS/9000 and umount race fix
PHKL_22840 IDS/9000; syscalls related to file/socket
PHKL_23183 probe, sysproc, shmem cumulative patch

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm