digitalmars.D.learn - Debug/reduce stack overflow in DMD on Windows
- Jacob Carlborg (8/8) Dec 30 2013 I've ported one of my projects[1] from D1 to D2 and it works perfectly
- Benjamin Thaut (8/14) Dec 30 2013 Compile in 64-bit and use Visual Studio or Visual Studio Express to
- Jacob Carlborg (4/9) Dec 30 2013 I'll give that a try, thanks.
- Vladimir Panteleev (3/10) Dec 30 2013 You could try reducing the bug using DustMite, and this helper:
- Jacob Carlborg (9/10) Dec 30 2013 Thanks, DustMite was able to find a reduced test case. It was this
I've ported one of my projects[1] from D1 to D2 and it works perfectly fine on Posix. Now when I try to compile the code on Windows I get a stack overflow. I really suck at Windows development, I don't even know where to start. Which debugger should I use that can handle the debug format DMD is compiled with? [1] https://github.com/jacob-carlborg/dvm/tree/master -- /Jacob Carlborg
Dec 30 2013
Am 30.12.2013 14:04, schrieb Jacob Carlborg:I've ported one of my projects[1] from D1 to D2 and it works perfectly fine on Posix. Now when I try to compile the code on Windows I get a stack overflow. I really suck at Windows development, I don't even know where to start. Which debugger should I use that can handle the debug format DMD is compiled with? [1] https://github.com/jacob-carlborg/dvm/tree/masterCompile in 64-bit and use Visual Studio or Visual Studio Express to debug the application. If you want to compile in 32-bit you will need to run cv2pdb on the generated exectuable before debugging with visual studio. cv2pdb is part of VisualD which I recommend using for any windows development. Kind Regards Benjamin Thaut
Dec 30 2013
On 2013-12-30 17:19, Benjamin Thaut wrote:Compile in 64-bit and use Visual Studio or Visual Studio Express to debug the application. If you want to compile in 32-bit you will need to run cv2pdb on the generated exectuable before debugging with visual studio. cv2pdb is part of VisualD which I recommend using for any windows development.I'll give that a try, thanks. -- /Jacob Carlborg
Dec 30 2013
On Monday, 30 December 2013 at 13:04:38 UTC, Jacob Carlborg wrote:I've ported one of my projects[1] from D1 to D2 and it works perfectly fine on Posix. Now when I try to compile the code on Windows I get a stack overflow. I really suck at Windows development, I don't even know where to start. Which debugger should I use that can handle the debug format DMD is compiled with? [1] https://github.com/jacob-carlborg/dvm/tree/masterYou could try reducing the bug using DustMite, and this helper: https://github.com/CyberShadow/DustMite/wiki/Suppressing-Windows-crashes
Dec 30 2013
On 2013-12-30 23:21, Vladimir Panteleev wrote:You could try reducing the bug using DustMite, and this helper:Thanks, DustMite was able to find a reduced test case. It was this little piece of code: enum : DWORD { DWORD = REG_DWORD } -- /Jacob Carlborg
Dec 30 2013