Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-20-2006
acbell acbell is offline
Registered User
 
Name: Andrew Bell
Organization: Iowa State University
Project: National Resources Inventory
 
Join Date: Jan 2005
Location: Ames, IA, USA
Posts: 89
dumpdb overflows stack

Hi,

dumpdb is overflowing the stack when it tries to read a record from an evictor database. It looks to me like the visitor isn't handling cycles in the object references:

...
#2921 0x00000000004628e0 in FreezeScript::SequenceData::visit ()
#2922 0x000000000041bdd9 in FreezeScript::DumpVisitor::visitObject ()
#2923 0x00000000004617e0 in FreezeScript::ObjectRef::visit ()
#2924 0x000000000041c20d in FreezeScript::DumpVisitor::visitSequence ()
#2925 0x00000000004628e0 in FreezeScript::SequenceData::visit ()
#2926 0x000000000041bdd9 in FreezeScript::DumpVisitor::visitObject ()
#2927 0x00000000004617e0 in FreezeScript::ObjectRef::visit ()
#2928 0x000000000041c20d in FreezeScript::DumpVisitor::visitSequence ()
#2929 0x00000000004628e0 in FreezeScript::SequenceData::visit ()
#2930 0x000000000041bdd9 in FreezeScript::DumpVisitor::visitObject ()
#2931 0x00000000004617e0 in FreezeScript::ObjectRef::visit ()
#2932 0x000000000041c20d in FreezeScript::DumpVisitor::visitSequence ()
#2933 0x00000000004628e0 in FreezeScript::SequenceData::visit ()
#2934 0x000000000041bdd9 in FreezeScript::DumpVisitor::visitObject ()
#2935 0x00000000004617e0 in FreezeScript::ObjectRef::visit ()
...

The object being dumped is an instance of ScheduleVersionI.

The relevant slice definition is:

struct StringPair
{
string key;
string value;
};
sequence<StringPair> StringPairSeq;

class StageInfoI;
sequence<StageInfoI> StageInfoISeq;
class StageInfoI
{
int id;
string name;
string longname;
StageInfoISeq parents;
StageInfoISeq children;
StringPairSeq rules;
StringPairSeq attributes;
};

class ScheduleVersionI implements ScheduleVersionIF
{
int id;
StageInfoISeq stageInfo;

nonmutating bool equals(ScheduleVersionI ver);
};

I'll work on debugging, but thought someone else might see something obvious that will take me a while to discover.

Thanks,

Last edited by acbell : 03-20-2006 at 01:53 PM.
Reply With Quote
  #2 (permalink)  
Old 03-20-2006
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 970
Hi Andrew,

Quote:
Originally Posted by acbell
It looks to me like the visitor isn't handling cycles in the object references
Thanks for reporting this, we'll add it to our TODO list.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 07-31-2006
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 970
Andrew,

I wanted to follow up to let you know that this bug was fixed in Ice 3.1.0.

Thanks again,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple threads smashing the stack Ric Help Center 8 06-09-2005 12:55 PM
Documentation re: stack-allocated servants greg_hall Comments 5 05-08-2003 09:44 PM


All times are GMT -4. The time now is 01:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.