-   Linux - Enterprise (
-   -   vsnprintf crashes (Segmentation fault) from /lib64/tls/ (

Ron_09 09-15-2010 02:34 AM

vsnprintf crashes (Segmentation fault) from /lib64/tls/
In one 64 bit linux 5 box vsnprintf is crashing.
It is not consistent but after some iteration it crashes
with same input.

following is the stack trace:-

#0 0x0000003707e796d0 in strlen () from /lib64/
(gdb) bt
#0 0x0000003707e796d0 in strlen () from /lib64/
#1 0x00002b9e349764d7 in dosprintf () from /opt/SUNWwebserver/lib/
#2 0x00002b9e34976974 in PR_vsnprintf () from /opt/SUNWwebserver/lib/

code snippet is as below:-

// msg has been successfully allocated
// PR_vsnprintf is a simple wrapper on vsprintf
va_list args;
va_start(args, fmt);
PR_vsnprintf(msg, MAX_MSG_LEN, fmt, args);


system configuration is:-

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

Any idea on this issue?

All times are GMT -5. The time now is 01:45 PM.