AnsweredAssumed Answered

CodeXL fails to debug on Ubuntu 15.04

Question asked by gregcouch on May 19, 2015
Latest reply on Sep 14, 2015 by dorono

I have some partial workarounds.  I installed CodeXL from the debian package, amdcodexl_1.7-7300_amd64.deb.


When I first debug my application I get:


/opt/AMD/CodeXL_1.7-7300/x86_64/ version `CXXABI_1.3.8' not found


It turns out that the distributed with CodeXL is older than the version that comes with Ubuntu 15.04.  So removing those files gets farther.  The right fix is for CodeXL to remove its additions to LD_LIBRARY_PATH before debugging the application.


Next, when I try to debug my application, I get:


/opt/AMD/CodeXL_1.7-7300/ undefined symbol: XFree


And sure enough, it refers to XFree but isn't linked against  To workaround that CodeXL bug, I added LD_PRELOAD=/usr/lib/x86_64-linux-gnu/ to the Project Settings.  My guess is the right fix is to use free() instead of XFree(), but linking with -lX11 would be okay.


But debugging still doesn't work.  When debugging, the application splash screen comes up (not OpenGL), then in the Debugged Process Events window, I get:


GDB String:  [Thread debugging using libthread_db enabled]

GDB String:  Using host libthread_db library  /lib/x86_64-linux-gnu/ .

API Connection Established: CodeXL Servers Manager

API Connection Established: CodeXL OpenGL Server

Thread Created: 140736789042944 (LWP: 15076)

Thread Created: 140736797435648 (LWP: 15075)

Thread Created: 140736805828352 (LWP: 15074)

Thread Created: 140736896771840 (LWP: 15073)

Thread Created: 140736905164544 (LWP: 15072)

Thread Created: 140737175557888 (LWP: 15071)

GDB String:   Program received signal

GDB String:  SIGSEGV, Segmentation fault.

GDB String:  0x0000000000000000 in ?? ()



Now, I could use some help.  I'm attaching the corresponding CodeXL-gregc.log in case it helps.


   -- Greg