View previous topic :: View next topic |
Author |
Message |
Greatwolf
Joined: 14 Oct 2010 Posts: 4 Location: CA
|
Posted: Thu Oct 14, 2010 7:13 pm Post subject: cv2pdb: bad field alignment for dmc8.52 compiled executable |
|
|
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! |
Results in the same error. Any ideas what could be wrong? Any solutions to try? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Oct 22, 2010 12:19 pm Post subject: |
|
|
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 |
|
|
Greatwolf
Joined: 14 Oct 2010 Posts: 4 Location: CA
|
Posted: Sun Oct 24, 2010 2:34 am Post subject: |
|
|
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 |
|
|
Greatwolf
Joined: 14 Oct 2010 Posts: 4 Location: CA
|
Posted: Sun Oct 24, 2010 5:53 pm Post subject: |
|
|
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 |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Mon Oct 25, 2010 4:15 pm Post subject: |
|
|
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 |
|
|
Greatwolf
Joined: 14 Oct 2010 Posts: 4 Location: CA
|
Posted: Mon Oct 25, 2010 8:29 pm Post subject: |
|
|
That did the trick, seems to be working good now. Thanks! |
|
Back to top |
|
|
|