---
** [tickets:#1246] mds: sending a bigger message causing mds application
segfault if task/thread created Medium/less stack size**
**Status:** assigned
**Milestone:** 4.6.FC
**Created:** Tue Jan 27, 2015 04:26 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Jan 27, 2015 04:26 AM UTC
**Owner:** A V Mahesh (AVM)
If MDS application task is created with task/thread created Medium/less stack
size say 32000
and try to send hugae message say above 2^16 size message (65536) , because
of static allocation of
message application is running out of stack and misbehaving
(gdb) bt
#0 0x00007ffff6bd24fb in memcpy () from /lib64/libc.so.6
#1 0x00007ffff750c53d in sysf_data_at_start_v () from
/usr/local/lib/libopensaf_core.so.0
#2 0x00007ffff75433ff in mds_mdtm_send_tipc () from
/usr/local/lib/libopensaf_core.so.0
#3 0x00007ffff752fbf2 in mcm_msg_encode_full_or_flat_and_send () at
mds_c_sndrcv.c:1537
#4 0x00007ffff7531d27 in mds_mcm_send_msg_enc.constprop.37 () at
mds_c_sndrcv.c:1093
#5 0x00007ffff7532728 in mcm_pvt_red_snd_process_common () at
mds_c_sndrcv.c:2304
#6 0x00007ffff7535e57 in mds_send () at mds_c_sndrcv.c:3179
#7 0x00007ffff752eca8 in ncsmds_api () from /usr/local/lib/libopensaf_core.so.0
#8 0x0000000000420e84 in mds_send_response ()
#9 0x0000000000409c9b in tet_adest_rcvr_thread () at mdstipc_api.c:5055
#10 0x00007ffff72d77b6 in start_thread () from /lib64/libpthread.so.0
#11 0x00007ffff6c269cd in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()
Solution : solution is replace MDS code static array's with malloc() to
avoid stack corruption
Workaround : increases stack size application if your mds application is
choose to send huge messages
---
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.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets