Skip to content
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

Symbol resolution does not work on MinGW-w64 ucrt64 for Tracy 0.11.1 #1007

Open
tim-lebedkov opened this issue Mar 14, 2025 · 0 comments
Open

Comments

@tim-lebedkov
Copy link

I have built the code under "public" into a DLL using the MinGW-w64 ucrt64 toolchain.

The following program generated an access violation at line 8:

#include <stdio.h>
#include <tracy/TracyC.h>
#include <stdbool.h>
#include <windows.h>

static void main_copy(char *dest, const char *a) {
    for (int i = 0; i < 30; i++) {
        dest[i] = a[i];
    }
}

/**
 * main()
 */
int main(int argc, char **argv) {
    TracyCZoneN(_main, "main", true);
    printf("Hello, world!\n");

    TracyCZoneEnd(_main);

    Sleep(10000);

    main_copy((char*)(uintptr_t) 788, "abc");

    return 0;
}

tracy-profiler.exe does not show the symbol names.

Compilation is done using "-g -O1 -fno-omit-frame-pointer" parameters.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant