- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmsg() API
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 05:07 PM
01-09-2006 05:07 PM
I want to know all the known defects relating to the sendmsg() socket API.
I am using a multi-threaded application which uses sendmsg(), and on two different machines I am seeing different issues (different patch levels)
a) sendmsg() API cores and when using debugger (gdb) on the application we see that errno is set to EPIPE.
b) sendmsg() returns -1, however the errno value it gives is zero. perror prints an error but it looks unreliable.
Could somebody guide me as to how should I know which patches I should apply and if there are any known bugs for sendmsg() API on HP.
Thanks,
Shweta
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 05:15 PM
01-09-2006 05:15 PM
SolutionYou can find more information here, PHNE_33628
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHNE_33628&context=hpux:800:11:11
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 05:21 PM
01-09-2006 05:21 PM
Re: sendmsg() API
When using AF_UNIX sockets blocking sendmsg()
returns EMSGSIZE when receive side is
close to being full. This can happen on blocking or
non-blocking.
( SR:8606134574 CR:JAGad03709 )
( SR:8606401226 CR:JAGaf61175 )
Due to race condition between close(2) and sendmsg(2)
system calls, when sending ancillary data, system can
panic with DPF.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 05:27 PM
01-09-2006 05:27 PM
Re: sendmsg() API
Search here,
http://www1.itrc.hp.com/service/patch/search.do?BC=patch.breadcrumb.main|&pageContextName=hpux:::
with your operating system and sendmsg keyword.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 05:29 PM
01-09-2006 05:29 PM
Re: sendmsg() API
[EPIPE] and SIGPIPE signal
An attempt was made to send on a socket
that was connected, but the connection has
been shut down, either by the remote peer
or by this side of the connection. Note
that the default action for SIGPIPE, unless
the process has established a signal
handler for this signal, is to terminate
the process.
Remote peer is closing socket connection while sending message. May be a problem with network or programming too.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 12:43 AM
01-10-2006 12:43 AM
Re: sendmsg() API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 12:28 PM
01-10-2006 12:28 PM
Re: sendmsg() API
I think the EPIPE has been discussed - it suggests that the app tried to send on a closed connection. That you get EPIPE in the debugger and probably a core dump outside of it? stems from debuggers tending to intercept signals.
The errno being zero could be the application making some other call that sets errno between the time sendmsg has failed and when the errno is printed.
FWIW, are you compiling -D_REENTRANT and linking with -lpthread?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 05:02 PM
01-10-2006 05:02 PM
Re: sendmsg() API
To dig further, you can use "tusc" to find out what all the calls being made and where it was stuck. You can download "tusc" from,
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.8/
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 05:09 PM
01-10-2006 05:09 PM
Re: sendmsg() API
Thanks a lot. The -D_REENTRANT flag did it. All the time I was under the assumption that by default the renetrant mode is set. Now I feel silly about it.
Thank You once again.
Shweta