- **status**: review --> fixed
- **Comment**:
changeset: 8369:12f09f2e23ad
tag: tip
user: Hans Nordeback <[email protected]>
date: Fri Nov 25 16:27:47 2016 +0100
files: osaf/libs/core/mds/mds_main.c
description:
mds: avoid SIGPIPE in mds_register_callback() [#2203]
---
** [tickets:#2203] mds: SIGPIPE in mds_register_callback()**
**Status:** fixed
**Milestone:** 5.2.FC
**Created:** Wed Nov 23, 2016 09:31 AM UTC by Hans Nordebäck
**Last Updated:** Wed Nov 23, 2016 10:55 AM UTC
**Owner:** Hans Nordebäck
> cat bt_20161118_11:15:23_207 :
signal: 13 pid: 207 uid: 0
/usr/local/lib/libopensaf_core.so.0(+0x1bce9)[0x7eff44157ce9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x113d0)[0x7eff43d283d0]
/lib/x86_64-linux-gnu/libpthread.so.0(send+0x7f)[0x7eff43d27a3f]
/usr/local/lib/libopensaf_core.so.0(+0x41901)[0x7eff4417d901]
/usr/local/lib/libopensaf_core.so.0(+0x1d06c)[0x7eff4415906c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76fa)[0x7eff43d1e6fa]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7eff4329cb5d]
objdump:
if ((n = send(fd, buf, sz, 0)) == -1)
418f1: 41 8d 14 06 lea (%r14,%rax,1),%edx
418f5: 31 c9 xor %ecx,%ecx
418f7: 48 89 de mov %rbx,%rsi
418fa: 89 ef mov %ebp,%edi
418fc: e8 df 54 fd ff callq 16de0 <send@plt>
41901: 83 f8 ff cmp $0xffffffff,%eax
41904: 0f 85 66 fe ff ff jne 41770
<mds_register_callback+0xa0>
syslog(LOG_ERR, "MDS: %s: send to pid %d failed - %s",
__FUNCTION__, creds->pid,
strerror(errno));
This is in:
mds_register_callback()
:
if ((n = send(fd, buf, sz, 0)) == -1)
syslog(LOG_ERR, "MDS: %s: send to pid %d failed - %s",
__FUNCTION__, creds->pid,
strerror(errno));
Flag MSG_NOSIGNAL should be used in the call to send.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets