[SunHELP] Problem in malloc

sunhelp at sunhelp.org sunhelp at sunhelp.org
Fri Jun 29 02:19:50 CDT 2001



Looks like I have found the solution. Sun has a patch 105210-18 for sparc arch
and 105211-18 for intel to address prblems in libc and watchmalloc. If in
addition to
this anybody suggests something more I would be grateful.

regards
muni




munkumar at hss.hns.com on 06/29/2001 11:11:51 AM

Please respond to sunhelp at sunhelp.org

To:   sunhelp at sunhelp.org
cc:    (bcc: Munish Kumar/HSS)

Subject:  [SunHELP] Problem in malloc







In one of my codes I get a segmentation fault in malloc. The stack trace is
given below

#0  0xef5cc36c in t_splay ()
(gdb) where
#0  0xef5cc36c in t_splay ()
#1  0xef5cc1c4 in t_delete ()
#2  0xef5cbe54 in realfree ()
#3  0xef5cc6d4 in cleanfree ()
#4  0xef5cb818 in _malloc_unlocked ()
#5  0xef5cb710 in malloc ()
#6  0x81420 in timerAdd ()
#7  0x6e0d0 in procEvents ()
#8  0x8b754 in customEventLoop ()
#9  0x8b91c in main ()
(gdb)

I have run the code on SunOS 5.6 with purify. I do get some UMRs (Uninitialized
Memory Read) but no array bound overwrite or any other memory leaks.
Without any such problem  I get a MAF( Memory Allocation Failure ) in the
purify. This problem can occur at any place in the code when malloc is
attempted.
Can anybody please point out what could be the possible problem ? I am almost
certain that the problem will be somewhere in my code but if there is no
leak reported in Purify what else could be the possible reason. Or if in a
rarest of rare chances is there a problem in libc implementation of SunOS5.6
libraries.

Please suggest/help.

regards
munish kumar


_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp









More information about the SunHELP mailing list