FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Doesn't output converted exe

 
Post new topic   Reply to topic     Forum Index -> cv2pdb
View previous topic :: View next topic  
Author Message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Sat Jun 11, 2011 11:25 pm    Post subject: Doesn't output converted exe Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Tue Jun 14, 2011 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Thu Jun 16, 2011 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Jun 17, 2011 12:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Fri Jun 17, 2011 1:37 pm    Post subject: Reply with quote

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

sagitario wrote:
Can you create a trace file with procmon.exe from the sysinternal suite ( http://technet.microsoft.com/en-us/sysinternals/bb842062 )?


How do you do that?
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Jun 17, 2011 1:54 pm    Post subject: Reply with quote

Abscissa wrote:
sagitario wrote:
Can you create a trace file with procmon.exe from the sysinternal suite ( http://technet.microsoft.com/en-us/sysinternals/bb842062 )?


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
View user's profile Send private message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Sun Jul 10, 2011 2:06 pm    Post subject: Reply with quote

Sorry it took until now to get to it. Here's the pml file:

http://www.semitwist.com/download/misc/logfile.PML
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Mon Jul 11, 2011 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Mon Jul 11, 2011 8:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Tue Jul 12, 2011 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Abscissa



Joined: 23 Feb 2005
Posts: 40
Location: Cleveland, OH, US

PostPosted: Fri Jul 15, 2011 3:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> cv2pdb All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group