<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV id=yiv133895441>
<DIV>Alex,</DIV>
<DIV> </DIV>
<DIV>After longer testing, the crash still occured, same values for those params from the debugger.</DIV>
<DIV> </DIV>
<DIV>vmlitediskmp!vhdRead(void * pBackendData = 0x86f80350, unsigned int64 uOffset = 0xf`df9fce00, void * pvBuf = 0xd06a6000, unsigned int cbRead = 0x1000, unsigned int * pcbActuallyRead = 0x8e22299c)+0x292 (FPO: [Non-Fpo]) (CONV: cdecl)</DIV>
<DIV> </DIV>
<DIV><BR><BR>--- On <B>Mon, 6/15/09, Alexander Eichner <I><Alexander.Eichner@Sun.COM></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Alexander Eichner <Alexander.Eichner@Sun.COM><BR>Subject: Re: [vbox-dev] vhd format not stable?<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: vbox-dev@virtualbox.org<BR>Date: Monday, June 15, 2009, 12:05 PM<BR><BR>
<DIV class=plainMail>Great I will commit the fix if your tests are successful.<BR><BR>The fix for the other crash you reported is already committed and<BR>visible in the public svn.<BR><BR>Regards,<BR>Alexander Eichner<BR><BR>Am Montag, den 15.06.2009, 11:55 -0700 schrieb Huihong Luo:<BR>> Alex,<BR>> <BR>> Thanks for your immediate response and fixes. I am running the tests<BR>> now, so far so good. <BR>> <BR>> By the way, does the latest svn contain the fix to the bug (crash on<BR>> vhd snapshot discarding) I reported a few days ago?<BR>> <BR>> - Huihong<BR>> <BR>> --- On Mon, 6/15/09, Alexander Eichner <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=Alexander.Eichner@Sun.COM" target=_blank rel=nofollow>Alexander.Eichner@Sun.COM</A>><BR>> wrote:<BR>> <BR>> <BR>> From: Alexander Eichner <<A
href="http://us.mc343.mail.yahoo.com/mc/compose?to=Alexander.Eichner@Sun.COM" target=_blank rel=nofollow>Alexander.Eichner@Sun.COM</A>><BR>> Subject: Re: [vbox-dev] vhd format not stable?<BR>> To: "Huihong Luo" <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target=_blank rel=nofollow>huisinro@yahoo.com</A>><BR>> Cc: <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow>vbox-dev@virtualbox.org</A><BR>> Date: Monday, June 15, 2009, 11:09 AM<BR>> <BR>> Hi Huihong,<BR>> <BR>> I attached a patch which I think fixes the crash.<BR>>
If it is possible please apply it and verify that this fixes<BR>> the crash.<BR>> Thanks a lot!<BR>> <BR>> Kind regards,<BR>> Alexander Eichner<BR>> <BR>> Am Donnerstag, den 11.06.2009, 08:05 -0700 schrieb Huihong<BR>> Luo:<BR>> > Alex,<BR>> > <BR>> > No problem, and thanks for the quick fix.<BR>> > <BR>> > There might be more bugs, I will keep testing.<BR>>
> <BR>> > Some times, the error occurs some other places, an error<BR>> message<BR>> > something like "there are 5993 child disks", the number is<BR>> kind of<BR>> > random. When this error occurs, the whole disk become<BR>> inaccessible,<BR>> > and I have to recreate the whole vm.<BR>> > <BR>> > Huihong<BR>> > <BR>> > --- On Thu, 6/11/09, Alexander Eichner<BR>> <<A
href="http://us.mc343.mail.yahoo.com/mc/compose?to=Alexander.Eichner@Sun.COM" target=_blank rel=nofollow>Alexander.Eichner@Sun.COM</A>><BR>> > wrote:<BR>> > <BR>> > <BR>> > From: Alexander Eichner <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=Alexander.Eichner@Sun.COM" target=_blank rel=nofollow>Alexander.Eichner@Sun.COM</A>><BR>> > Subject: Re: [vbox-dev] vhd format not stable?<BR>> > To: <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank
rel=nofollow>vbox-dev@virtualbox.org</A><BR>> > Date: Thursday, June 11, 2009, 1:52 AM<BR>> > <BR>> > Hi Huihong,<BR>> > <BR>> > thanks for the report. This bug is fixed now and<BR>> should appear<BR>> > soon in<BR>> > the public svn.<BR>> > <BR>>
> Kind regards,<BR>> > Alexander Eichner<BR>> > <BR>> > Am Donnerstag, den 11.06.2009, 09:55 +0200 schrieb<BR>> Frank<BR>> > Mehnert:<BR>> > > Actually the .vhd format is less tested than<BR>> the .vdi<BR>> > format. Which<BR>> > > VBox version
are you using?<BR>> > > <BR>> > > On Thursday 11 June 2009, Huihong Luo wrote:<BR>> > > > It seems VHD format is not stable as VDI.<BR>> VBoxSVC.exe<BR>> > pretty much always<BR>> > > > crashes when a snapshot is being discarded. I am<BR>> running<BR>> > an XP guest on<BR>> > > > Vista
host. The VHD's capacity is over 100G. <BR>> > > > If you look at the following stack, the crash<BR>> was caused<BR>> > by<BR>> > > > pImage->pszParentFilename is NULL inside<BR>> > > > static int vhdDynamicHeaderUpdate(PVHDIMAGE<BR>> pImage) in<BR>> > VHDHDDCore.cpp<BR>> > > > <BR>> >
> > I used the very recent SVN source.<BR>> > > > <BR>> > > > //////////<BR>> > > > vboxsvc.exe crash stack:<BR>> > > > <BR>> > > > VBoxRT.dll!RTPathFilename(const char *<BR>> pszPath=0x00000000)<BR>> > Line 240 C++<BR>> > >
> VBoxDDU.dll!vhdDynamicHeaderUpdate(VHDIMAGE *<BR>> > pImage=0x00000000) Line<BR>> > > > 362 + 0x12 bytes C++ VBoxDDU.dll!vhdFlush(void *<BR>> > pBackendData=0x01c2caf0) <BR>> > > > Line 1157 C++ VBoxDDU.dll!vhdClose(void *<BR>> > pBackendData=0x01c2caf0, bool<BR>> > > > fDelete=false) Line 880 + 0x6 bytes C++<BR>> VBoxDDU.dll!<BR>>
> VDClose(VBOXHDD *<BR>> > > > pDisk=0x01e0e218, bool fDelete=false) Line 2268<BR>> C++<BR>> > > > VBoxSVC.exe!HardDisk::taskThread(RTTHREADINT *<BR>> > thread=0x00000000, void *<BR>> > > > pvUser=0x00e0e2b8) Line 4063 + 0xb bytes C++<BR>> > > > VBoxSVC.exe!HardDisk::Task::runNow() Line 220 C<BR>> ++<BR>> >
> > VBoxSVC.exe!<BR>> HardDisk::mergeTo(HardDisk::MergeChain *<BR>> > aChain=0x01c2cfe0,<BR>> > > > ComObjPtr<Progress,ComStrongRef> *<BR>> aProgress=0x01e06fe8,<BR>> > bool aWait=true) <BR>> > > > Line 2844 + 0x9 bytes C++<BR>> > > > VBoxSVC.exe!<BR>> > HardDisk::discard(ComObjPtr<Progress,ComStrongRef>
&<BR>> > > > aProgress={...}, HardDisk::MergeChain *<BR>> aChain=0x01c2cfe0)<BR>> > Line 2248 + 0xe<BR>> > > > bytes C++<BR>> > > > VBoxSVC.exe!<BR>> ><BR>> SessionMachine::discardSnapshotHandler(SessionMachine::DiscardS<BR>> > > >napshotTask & aTask={...}) Line 10584 C++<BR>> > > >
VBoxSVC.exe!<BR>> SessionMachine::DiscardSnapshotTask::handler()<BR>> > Line 8251 + 0x9<BR>> > > > bytes C++ VBoxSVC.exe!<BR>> > SessionMachine::taskHandler(RTTHREADINT *<BR>> > > > __formal=0x01c32108, void * pvUser=0x01e06fe0)<BR>> Line 11412<BR>> > C++<BR>> > > > VBoxRT.dll!rtThreadMain(RTTHREADINT *<BR>>
pThread=0x01c32108,<BR>> > unsigned int<BR>> > > > NativeThread=4312, const char *<BR>> pszThreadName=0x01c32170)<BR>> > Line 635 + 0xa<BR>> > > > bytes C++ VBoxRT.dll!rtThreadNativeMain(void *<BR>> > pvArgs=0x01c32108) Line 106<BR>> > > > + 0xb bytes C++ msvcr80.dll!__endthreadex() +<BR>> 0x3b bytes<BR>>
> > > msvcr80.dll!__endthreadex() + 0xc7 bytes <BR>> > > > kernel32.dll!@BaseThreadInitThunk@12() + 0x12<BR>> bytes <BR>> > > > ntdll.dll!___RtlUserThreadStart@8() + 0x27<BR>> bytes <BR>> > > > ntdll.dll!__RtlUserThreadStart@8() + 0x1b<BR>> bytes <BR>> > > <BR>> >
> <BR>> > > <BR>> > > _______________________________________________<BR>> > > vbox-dev mailing list<BR>> > > <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow>vbox-dev@virtualbox.org</A><BR>> > > <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank rel=nofollow>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR>> > <BR>>
> <BR>> > _______________________________________________<BR>> > vbox-dev mailing list<BR>> > <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow>vbox-dev@virtualbox.org</A><BR>> > <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank rel=nofollow>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR>> > <BR>> > _______________________________________________<BR>>
> vbox-dev mailing list<BR>> > <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank rel=nofollow>vbox-dev@virtualbox.org</A><BR>> > <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank rel=nofollow>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR>> <BR><BR></DIV></BLOCKQUOTE></DIV></td></tr></table>