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

cv2pdb: bad field alignment for dmc8.52 compiled executable

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



Joined: 14 Oct 2010
Posts: 4
Location: CA

PostPosted: Thu Oct 14, 2010 7:13 pm    Post subject: cv2pdb: bad field alignment for dmc8.52 compiled executable Reply with quote

the executable is compiled by dmc version 8.52 with -g option for emitting debug symbols. The linker is given /co when linking. I then run cv2pdb with this command:

Code:
cv2pdb -C test.exe test.pdb


yielding this error message:

Code:
test.exe: bad field alignment!


Code:
cv2pdb -C test.exe


Results in the same error. Any ideas what could be wrong? Any solutions to try?
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Oct 22, 2010 12:19 pm    Post subject: Reply with quote

Hi,

sorry for not answering until now, but there is no notification mechanism for new topics in this forum ;-(

The error message is shown if there is some unexpected data in a list of entries for struct/class layout or enumerator values. This is probably caused by either bad debug info in the file or a misinterpretation by cv2pdb.

Is this a problem new to v852? If you can send me the executable to convert, I can have a look. If the file is more than 256k, it cannot be attached to a ticket, so please use r.sagitario at gmx dot de.

Quote:
Code:

cv2pdb -C test.exe test.pdb


This is a wrong syntax, as the second file name is the converted exe-file if the original file must not be changed. If you want to name the pdb-file, you must pass it as the third file name:

Code:

cv2pdb -C test.exe test2.exe test2.pdb


Rainer
Back to top
View user's profile Send private message
Greatwolf



Joined: 14 Oct 2010
Posts: 4
Location: CA

PostPosted: Sun Oct 24, 2010 2:34 am    Post subject: Reply with quote

Thanks for responding. I've opened a ticket regarding this bug which can be found here. As suggested, I've attached a small executable that causes cv2pdb to give that error.

Hope that helps in narrowing the bug down. Let me know if you need any other info.
Back to top
View user's profile Send private message
Greatwolf



Joined: 14 Oct 2010
Posts: 4
Location: CA

PostPosted: Sun Oct 24, 2010 5:53 pm    Post subject: Reply with quote

Thanks for the quick fix in v0.18, really appreciate it.

It looks like the alignment issue is fixed but shortly afterwards I found a crashing bug.

Here's the minimal code to reproduce the crash. As far as I could tell, it seems to happen with std::map and std::string not sure why:

Code:
#include <map>
#include <string>

int main()
{
  std::map<int, std::string> foomap;
}


Let me know if you need any further info or the above code in executable form.

Thanks
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Mon Oct 25, 2010 4:15 pm    Post subject: Reply with quote

A few more problems with very long names have shown up with this test case. I have now tried to push all limits to at least 4096 characters. The version 0.18 is updated, please give it another try.
Back to top
View user's profile Send private message
Greatwolf



Joined: 14 Oct 2010
Posts: 4
Location: CA

PostPosted: Mon Oct 25, 2010 8:29 pm    Post subject: Reply with quote

That did the trick, seems to be working good now. Thanks!
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