Unix Technical Forum

Error when allocating memory

This is a discussion on Error when allocating memory within the AIX Operating System forums, part of the Unix Operating Systems category; --> I'm keep getting core dump, here are the info in core: 1. Segmentation fault in malloc_y.splint [/usr/lib/libc.a] at 0xd01f9238 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:29 AM
Yixin Cao
 
Posts: n/a
Default Error when allocating memory

I'm keep getting core dump, here are the info in core:

1.
Segmentation fault in malloc_y.splint [/usr/lib/libc.a] at 0xd01f9238 ($t1)
0xd01f9238 (splint+0x21c) 7caa85aa stswi r5,r10,0x10
(dbx) where
malloc_y.splint(??, ??) at 0xd01f9238
malloc_y.malloc_y(??, ??, ??) at 0xd01fb98c
malloc_y.malloc_y_heap(??) at 0xd01fb1e8
_Fancy_malloc__FUl(??) at 0xd01c93d0
__nw__FUl(??) at 0xd01c9004
udbi._Allocate__3stdHc_UlPc_Pc() at 0x2000f014
udbi._Copy__Q2_3std12basic_stringXTcTQ2_3std11char _traitsXTc_TQ2_3std9allocatorXTc__FUl() at 0x2000eec0
JField.assign__Q2_3std12basic_stringXTcTQ2_3std11c har_traitsXTc_TQ2_3std9allocatorXTc__FPCcUl() at 0x20036988
__ct__Q2_4UDBI6JFieldFP8OCIParamP8OCIErrorUsi() at 0x20036098
__ct__Q2_4UDBI12JFieldStringFP8OCIParamP8OCIErrorU si() at 0x20048900
init__Q2_4UDBI7JRecordFP7OCIStmtP8OCIErrori() at 0x20013b64
ExecSelect__Q2_4UDBI6TTableFRCQ2_3std12basic_strin gXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc __() at 0x20066940
TradeGeneTrade.ExecSelect(const std::basic_string<char,std::char_traits<char>,std: :allocator<char> >&)(0x2ff16908,
0x2ff16a80), line 99 in "MTable.h"


2.
Segmentation fault in
JRecord._Erase__Q2_3std5_TreeXTQ2_3std12_Tmap_trai tsXTQ2_3std12basic_stringXTcTQ2_3std11char_traitsX Tc_TQ2_3std9allocatorXTc__TiTQ2_3std4lessXTQ2_3std 12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std 9allocatorXTc___TQ2_3std9allocatorXTQ2_3std4pairXT CQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_ TQ2_3std9allocatorXTc__Ti__SP0__FPQ3_3std9_Tree_no dXTQ2_3std12_Tmap_traitsXTQ2_3std12basic_stringXTc TQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Ti TQ2_3std4lessXTQ2_3std12basic_stringXTcTQ2_3std11c har_traitsXTc_TQ2_3std9allocatorXTc___TQ2_3std9all ocatorXTQ2_3std4pairXTCQ2_3std12basic_stringXTcTQ2 _3std11char_traitsXTc_TQ2_3std9allocatorXTc__Ti__S P0__5_Node
at 0x2001fb14 ($t1)
0x2001fb14
(_Erase__Q2_3std5_TreeXTQ2_3std12_Tmap_traitsXTQ2_ 3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_ 3std9allocatorXTc__TiTQ2_3std4lessXTQ2_3std12basic _stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9alloca torXTc___TQ2_3std9allocatorXTQ2_3std4pairXTCQ2_3st d12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3st d9allocatorXTc__Ti__SP0__FPQ3_3std9_Tree_nodXTQ2_3 std12_Tmap_traitsXTQ2_3std12basic_stringXTcTQ2_3st d11char_traitsXTc_TQ2_3std9allocatorXTc__TiTQ2_3st d4lessXTQ2_3std12basic_stringXTcTQ2_3std11char_tra itsXTc_TQ2_3std9allocatorXTc___TQ2_3std9allocatorX TQ2_3std4pairXTCQ2_3std12basic_stringXTcTQ2_3std11 char_traitsXTc_TQ2_3std9allocatorXTc__Ti__SP0__5_N ode+0x10)
9421ffa0 stwu r1,-96(r1)


Any suggestions? Thanks in advance


Best regards
Yixin Cao

msn: yixin.cao@hotmail.com http://yixincao.spaces.live.com
Calendar: http://calendar.msn.com/yixin.cao@hotmail.com
Senior Test Engineer| Lianchuang Inc./Wireless Software Division| http://www.lianchuang.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:29 AM
Yixin Cao
 
Posts: n/a
Default Re: Error when allocating memory

I forgot to mention that we use AIX5200-06 and vacpp6 with the latest patch installed.

Yixin Cao wrote:
> I'm keep getting core dump, here are the info in core:
>
> 1.
> Segmentation fault in malloc_y.splint [/usr/lib/libc.a] at 0xd01f9238 ($t1)
> 0xd01f9238 (splint+0x21c) 7caa85aa stswi r5,r10,0x10
> (dbx) where
> malloc_y.splint(??, ??) at 0xd01f9238
> malloc_y.malloc_y(??, ??, ??) at 0xd01fb98c
> malloc_y.malloc_y_heap(??) at 0xd01fb1e8
> _Fancy_malloc__FUl(??) at 0xd01c93d0
> __nw__FUl(??) at 0xd01c9004
> udbi._Allocate__3stdHc_UlPc_Pc() at 0x2000f014
> udbi._Copy__Q2_3std12basic_stringXTcTQ2_3std11char _traitsXTc_TQ2_3std9allocatorXTc__FUl()
> at 0x2000eec0
> JField.assign__Q2_3std12basic_stringXTcTQ2_3std11c har_traitsXTc_TQ2_3std9allocatorXTc__FPCcUl()
> at 0x20036988
> __ct__Q2_4UDBI6JFieldFP8OCIParamP8OCIErrorUsi() at 0x20036098
> __ct__Q2_4UDBI12JFieldStringFP8OCIParamP8OCIErrorU si() at 0x20048900
> init__Q2_4UDBI7JRecordFP7OCIStmtP8OCIErrori() at 0x20013b64
> ExecSelect__Q2_4UDBI6TTableFRCQ2_3std12basic_strin gXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc __()
> at 0x20066940
> TradeGeneTrade.ExecSelect(const
> std::basic_string<char,std::char_traits<char>,std: :allocator<char>
> >&)(0x2ff16908, 0x2ff16a80), line 99 in "MTable.h"

>
>
> 2.
> Segmentation fault in
> JRecord._Erase__Q2_3std5_TreeXTQ2_3std12_Tmap_trai tsXTQ2_3std12basic_stringXTcTQ2_3std11char_traitsX Tc_TQ2_3std9allocatorXTc__TiTQ2_3std4lessXTQ2_3std 12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std 9allocatorXTc___TQ2_3std9allocatorXTQ2_3std4pairXT CQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_ TQ2_3std9allocatorXTc__Ti__SP0__FPQ3_3std9_Tree_no dXTQ2_3std12_Tmap_traitsXTQ2_3std12basic_stringXTc TQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__Ti TQ2_3std4lessXTQ2_3std12basic_stringXTcTQ2_3std11c har_traitsXTc_TQ2_3std9allocatorXTc___TQ2_3std9all ocatorXTQ2_3std4pairXTCQ2_3std12basic_stringXTcTQ2 _3std11char_traitsXTc_TQ2_3std9allocatorXTc__Ti__S P0__5_Node
> at 0x2001fb14 ($t1)
> 0x2001fb14
> (_Erase__Q2_3std5_TreeXTQ2_3std12_Tmap_traitsXTQ2_ 3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_ 3std9allocatorXTc__TiTQ2_3std4lessXTQ2_3std12basic _stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9alloca torXTc___TQ2_3std9allocatorXTQ2_3std4pairXTCQ2_3st d12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3st d9allocatorXTc__Ti__SP0__FPQ3_3std9_Tree_nodXTQ2_3 std12_Tmap_traitsXTQ2_3std12basic_stringXTcTQ2_3st d11char_traitsXTc_TQ2_3std9allocatorXTc__TiTQ2_3st d4lessXTQ2_3std12basic_stringXTcTQ2_3std11char_tra itsXTc_TQ2_3std9allocatorXTc___TQ2_3std9allocatorX TQ2_3std4pairXTCQ2_3std12basic_stringXTcTQ2_3std11 char_traitsXTc_TQ2_3std9allocatorXTc__Ti__SP0__5_N ode+0x10)
> 9421ffa0 stwu r1,-96(r1)
>
>
> Any suggestions? Thanks in advance
>
>
> Best regards
> Yixin Cao
>
> msn: yixin.cao@hotmail.com http://yixincao.spaces.live.com
> Calendar: http://calendar.msn.com/yixin.cao@hotmail.com
> Senior Test Engineer| Lianchuang Inc./Wireless Software Division|
> http://www.lianchuang.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 10:29 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Error when allocating memory

Yixin Cao <yixin.cao@hotmail.com> writes:

> I'm keep getting core dump, here are the info in core:


Any coredump inside malloc() is usually indicative of a heap
corruption problem in your code.

Use -qheapdebug switch and/or MALLOCTYPE and MALLOCDEBUG environment
variables to find it. More info here:
http://publib.boulder.ibm.com/infoce...bug_malloc.htm

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com