Re: [OMPI users] Unterminated log buffer causes corrupt log messages

2013-10-09 Thread Nathan Hjelm
Fixed in trunk r29412 and CMRd for 1.7.3. Thanks for reporting this. -Nathan HPC-3, LANL On Wed, Oct 09, 2013 at 02:40:28PM +, Kevin M. Hildebrand wrote: >Hi, I just noticed a bug in the common logging code in both 1.6.5 and >1.7.2. For sites with hostnames longer than 32 characters,

Re: [OMPI users] Unterminated log buffer causes corrupt log messages

2013-10-09 Thread Nathan Hjelm
Good catch. From the hostname man page (emphasis ** added): The gethostname() function returns the standard host name for the current processor, as previously set by sethostname(). The namelen argument specifies the size of the name array. The returned name is null-terminated, **unless** insu

[OMPI users] Unterminated log buffer causes corrupt log messages

2013-10-09 Thread Kevin M. Hildebrand
Hi, I just noticed a bug in the common logging code in both 1.6.5 and 1.7.2. For sites with hostnames longer than 32 characters, the terminating NULL is getting cut off the hostname string. Here's a simple patch to fix: diff -c -r1.1 opal/util/output.c *** opal/util/output.c 2013/10/09 14:09: