<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Alex,</DIV>
<DIV> </DIV>
<DIV>Thanks for your immediate response and fixes. I am running the tests now, so far so good. </DIV>
<DIV> </DIV>
<DIV>By the way, does the latest svn contain the fix to the bug (crash on vhd snapshot discarding) I reported a few days ago?<BR></DIV>
<DIV>- Huihong</DIV>
<DIV><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, 11:09 AM<BR><BR>
<DIV class=plainMail>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 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 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 message<BR>> something like "there are 5993 child disks", the number is kind of<BR>> random. When this error occurs, the whole disk become inaccessible,<BR>> and I have to recreate the whole vm.<BR>> <BR>> Huihong<BR>> <BR>> --- On Thu, 6/11/09, Alexander Eichner <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=Alexander.Eichner@Sun.COM"
ymailto="mailto:Alexander.Eichner@Sun.COM">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" ymailto="mailto:Alexander.Eichner@Sun.COM">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" ymailto="mailto:vbox-dev@virtualbox.org">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 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 Frank<BR>> Mehnert:<BR>> > Actually the .vhd format is less tested than 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. VBoxSVC.exe<BR>> pretty much always<BR>> > > crashes when a snapshot is being discarded. I am 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 was caused<BR>> by<BR>> > > pImage->pszParentFilename is NULL inside<BR>> > > static int vhdDynamicHeaderUpdate(PVHDIMAGE 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 * 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++ VBoxDDU.dll!<BR>> VDClose(VBOXHDD *<BR>> > > pDisk=0x01e0e218, bool fDelete=false) Line 2268 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>> > > VBoxSVC.exe!HardDisk::mergeTo(HardDisk::MergeChain *<BR>>
aChain=0x01c2cfe0,<BR>> > > ComObjPtr<Progress,ComStrongRef> * 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 * aChain=0x01c2cfe0)<BR>> Line 2248 + 0xe<BR>> > > bytes C++<BR>> > > VBoxSVC.exe!<BR>> SessionMachine::discardSnapshotHandler(SessionMachine::DiscardS<BR>> >
>napshotTask & aTask={...}) Line 10584 C++<BR>> > > VBoxSVC.exe!SessionMachine::DiscardSnapshotTask::handler()<BR>> Line 8251 + 0x9<BR>> > > bytes C++ VBoxSVC.exe!<BR>> SessionMachine::taskHandler(RTTHREADINT *<BR>> > > __formal=0x01c32108, void * pvUser=0x01e06fe0) Line 11412<BR>> C++<BR>> > > VBoxRT.dll!rtThreadMain(RTTHREADINT * pThread=0x01c32108,<BR>> unsigned int<BR>> > > NativeThread=4312, const char * 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() + 0x3b bytes<BR>> > > msvcr80.dll!__endthreadex() + 0xc7 bytes <BR>> > > kernel32.dll!@BaseThreadInitThunk@12() + 0x12 bytes <BR>> > > ntdll.dll!___RtlUserThreadStart@8() + 0x27 bytes <BR>> > > ntdll.dll!__RtlUserThreadStart@8() + 0x1b 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" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> > <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>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"
ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>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" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR></DIV></BLOCKQUOTE></td></tr></table>