Wiretap

Reply
Active Contributor
Posts: 30
Registered: ‎11-17-2006
Message 1 of 3 (418 Views)

Numerous malloc errors creating clip nodes

418 Views, 2 Replies
08-25-2008 02:15 AM
One of my wiretap-based programs always gives malloc errors creating a clip node on Mac OS X (Intel). To be specific:
tether(6126,0xa00a7fa0) malloc: *** error for object 0x1237010c: pointer being reallocated was not allocated
*** set a breakpoint in malloc_error_break to debug
tether(6126,0xa00a7fa0) malloc: *** error for object 0xa5a0c: pointer being reallocated was not allocated
*** set a breakpoint in malloc_error_break to debug
<several more just like that>
tether(6126,0xa00a7fa0) malloc: *** error for object 0xa5a0c: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

If I link against the debug version of wiretap and set a breakpoint as suggested, I find the following stack trace:
#0 0x90677131 in malloc_error_break ()
#1 0x9067211f in szone_error ()
#2 0x9059acbd in szone_realloc ()
#3 0x9059ac0e in malloc_zone_realloc ()
#4 0x9059ab81 in realloc ()
#5 0x000706c3 in WireTapStr::reallocBuff (this=0xbfffd0e4, len=56) at WireTapTypes.C:529
#6 0x00070737 in WireTapStr::smileysurprised:perator= (this=0xbfffd0e4, str=0x255ac0 "/stonefs/Test/Default/H_-1463806974_S_1219584576_U_8268") at WireTapTypes.C:378
#7 0x000707eb in WireTapNodeId::smileysurprised:perator= (this=0xbfffd0e0, src=@0xbfffd018) at WireTapTypes.C:446
#8 0x0006a494 in WireTapNodeClientAPI::createNode (this=0x255a10, node=@0x255ca0, displayName=0x23ed0c "V12_test3shortened", type=WireTapNodeInterface::TYPE_CLIP, extendedType=0xbfffd160 "6", format=@0x23f72c, newChild=@0xbfffd0e0) at WireTapNodeClientAPI.C:126
#9 0x00060937 in WireTapServerImp::createNode (this=0x255810, node=@0x255ca0, displayName=0x23ed0c "V12_test3shortened", type=WireTapNodeInterface::TYPE_CLIP, extendedType=0xbfffd160 "6", format=@0x23f72c, newChild=@0xbfffd0e0) at WireTapClientAPI.C:270
#10 0x121e1588 in WireTapNodeHandle::createClipNode (this=0x255c20, displayName=0x23ed0c "V12_test3shortened", format=@0x23f72c, extendedType=0xbfffd160 "6", newNode=@0x255740) at WireTapClientAPI.C:1132
#11 0x121e17dc in WireTapNodeHandle::createClipNode (this=0x255c20, displayName=0x23ed0c "V12_test3shortened", format=@0x23f72c, extendedType=6, newNode=@0x255740) at WireTapClientAPI.C:1123

"format", by the way, is as follows:
clip format: w=1280, h=800, bpp=32, nc=3, bs=0, fr=24, tag=rgb, ar=1, mdt=none, md=

Ultimately, whatever is happening here leads to a failure. Although createClipNode returns success, if I subsequently get the format of the new clip node (which is also successful, but shows a bunch more malloc errors) I end up with all zeroes. (Eventually I get an error when I try to set the number of frames: "Only RGB formats are supported".)

Any idea what might be going on? (This is with WT 2009.1 on Mac OS 10.5.4 Intel.)
Valued Contributor
Posts: 51
Registered: ‎11-17-2006
Message 2 of 3 (418 Views)

Re: Numerous malloc errors creating clip nodes

08-25-2008 05:44 PM in reply to: derrick
This seems to be a runtime error detected by the memory manager. My first guess would be that you're using a deleted WireTapNodeHandle object.

If you're sure of your code, I suggest you create a small test program and send it to us. Problems like this are considered VERY serious and would be fixed once identified.

Note that ADN members should ideally be going through support to make sure their issue is tracked and resolved. Just send an email to me.support@autodesk.com to log a case. Support has a direct line to the Wiretap team.

Dan
Active Contributor
Posts: 30
Registered: ‎11-17-2006
Message 3 of 3 (418 Views)

Re: Numerous malloc errors creating clip nodes

08-26-2008 12:04 AM in reply to: derrick
Trouble is, I can't, for the life of me, reproduce it with a simple program. I'll look through my code to see if I can find any issues with using deleted WireTapNodeHandles and if I can't find anything, I'll see what I can do to get a simple program.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community