View previous topic :: View next topic |
Author |
Message |
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
Posted: Sat Jun 11, 2011 11:25 pm Post subject: Doesn't output converted exe |
|
|
I installed cv2pdb with the VisualD installer, but anytime I try to use it it does create a pdb, however, no new exe is created and the existing exe is left unchanged (and there's no error message or any other stdout/stderr output). I've checked everything over at ( http://www.dsource.org/projects/cv2pdb/wiki/Installation ) and it all looks good.
The exe's I try to convert have been compiled with "-g". I've also tried "-gc". But nothing seems to work.
Any ideas? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Tue Jun 14, 2011 1:32 am Post subject: |
|
|
Sounds strange. Does it work within Visual D?
Maybe there is an access problem to the executable because it is still opened by another process. Have you tried the command line with 3 arguments?
Code: | cv2pdb debuggee.exe debuggee_pdb.exe debug.pdb |
|
|
Back to top |
|
|
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
Posted: Thu Jun 16, 2011 7:07 pm Post subject: |
|
|
It doesn't work within VisualD either.
I checked and the exe was not being used by any other process.
Using 3 args still gives me the same result. |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Jun 17, 2011 12:49 am Post subject: |
|
|
Hmmm, does cv2pdb output its banner and version if you start it without parameters?
What OS are you running. It might not work with anything before XP, though I only have found evidence that it will definitely not run with something before win2000.
Can you create a trace file with procmon.exe from the sysinternal suite ( http://technet.microsoft.com/en-us/sysinternals/bb842062 )? |
|
Back to top |
|
|
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
Posted: Fri Jun 17, 2011 1:37 pm Post subject: |
|
|
sagitario wrote: | Hmmm, does cv2pdb output its banner and version if you start it without parameters? |
Yes.
sagitario wrote: | What OS are you running. It might not work with anything before XP, though I only have found evidence that it will definitely not run with something before win2000. |
XP Pro
How do you do that? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Jun 17, 2011 1:54 pm Post subject: |
|
|
Abscissa wrote: |
How do you do that? |
Unzip the sysinternal suite, run procmon.exe from it and add a filter on process name "cv2pdb.exe". Then run cv2pdb from the command line as usual. procmon should record registry and file activity, plus maybe some more, which can be saved to a pml file. If you could provide it somewhere for download or attach it to a ticket I can try to figure out what's going wrong. |
|
Back to top |
|
|
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Mon Jul 11, 2011 12:25 am Post subject: |
|
|
From the log file, I can see a termination code of 0xC0000005, which means that there is a memory access violation happening. Can you provide the dax_debug.exe to reproduce here? Does it also happen if you just convert a "hello world" program? |
|
Back to top |
|
|
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
Posted: Mon Jul 11, 2011 8:16 pm Post subject: |
|
|
sagitario wrote: | From the log file, I can see a termination code of 0xC0000005, which means that there is a memory access violation happening. Can you provide the dax_debug.exe to reproduce here? Does it also happen if you just convert a "hello world" program? |
Hmm, it does seem to work fine with a hello world program.
The offending dax_debug.exe is here:
http://www.semitwist.com/download/misc/dax_debug.exe
(FWIW, it's a modification of ddmd.)
It's (statically) linked with a C lib, do you think that could be the issue? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Tue Jul 12, 2011 1:29 am Post subject: |
|
|
Sigh. It's again a crash due to very long symbol names. This time, a compressed name (97 characters) is expanded to more than 4096 characters (starting with "_D3dmd2Id2902__T5idgenTS3dmd2Id2IDTS3dmd"). I just cut it off now.
Please try the new version 0.22 from the download folder.
Rainer |
|
Back to top |
|
|
Abscissa
Joined: 23 Feb 2005 Posts: 40 Location: Cleveland, OH, US
|
Posted: Fri Jul 15, 2011 3:03 am Post subject: |
|
|
I haven't had a change to actually try it in VisualD with the debugger yet, but that new version does seems to work so far, thanks. A pdb is created, the exe is modified (and shrunk to roughly the size of it's release build, with the pdb's size approximately the difference in the two sizes), and the newly modified exe still runs. |
|
Back to top |
|
|
|