-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MinGW 64 no output #19
Comments
Riccardo: I have never tried to use this with 64-bit code on Windows. As mentioned in the README and the post on it, it's designed for 32-bit MinGW, though this pull request was supposed to add support for 64-bit! Though now that I'm looking at asmCrashReport.pri, I think it would need to modified for 64-bit as well? I see If modifying that doesn't work, you might try to look at the sources I used when putting this together (listed in my post) to see if anything else is required for 64-bit support.
Because I was using this in a shipping product. A debug build would be huge and include all kinds of slow debug code. The way it is set up now, it creates a release build with debug symbols. If you want to use it in a debug build, at minimum you will need to modify asmCrashReport.pri to set the right switches. |
Hi! Thank you for your quick answer. I am trying to implement it on 64Bits and keep you posted on that. One useful link I am following is: https://theorangeduck.com/page/printing-stack-trace-mingw which you mentioned in your code too. I noticed the
I am trying to work on that too. I'll get back to you as soon as I can figure it out. |
I was able to get it working with MinGW64 as well by adding a little trick. Following the link above, I downloaded the cv2pdb software which allows me to generate the pdb file for my application in QT with MinGW64 and everything worked wonderfully. I rewrote a small APP from scratch just to verify the behavior and it works perfectly. FYI I added the following code:
To make sure that the .o files are generated for Win32, Win64 and possibly ARM. The final steps are:
Small downside: every time the software is released, the .pdb file needs to be regenerated if any changes have been made. I believe this can be automated by having QT do it from the command line. ANY SUGGESTIONS FOR THIS? PS: Function's name comes out in the clear 😀 |
Hello and thank you for contributing this code, which seems to be the most promising for bug reporting among all the ones I have searched for. In Windows 64-bit and MinGW64 (Obviously), I am not able to retrieve the function names using addr2line.exe.
I always get this kind of result:
I am using the cygwin64 version, I have tried the version distributed on QT with MinGW and in no case does addr2line.exe return a value to me.
Question: Are memory values like 0x00007ffaa226aa58 (very high) correct?
Another question, why did you import it to work only in Release Mode and not in Debug mode?
I've been trying everything for 4 days but I can't see the light at the end of the tunnel.
Any help is absolutely welcome.
The text was updated successfully, but these errors were encountered: