1 Reply Latest reply on Jan 20, 2014 2:14 AM by dorono

    CodeXL cant debug program

    huck

      Hello,

       

      im on Ubuntu 13.10 x64 with a single 7950.  Im trying to debug a program in CodeXL for the purpose of studying it, but its not working. The debugger does load the program (cgminer), and it starts, but the exists immediately for no reason. here are the logs. First, the events in the "Debugged Process Events" window in the CodeXL GUI :

       

      Process Run Started

      GDB String:  [Thread debugging using libthread_db enabled] 

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

      API Connection Established: CodeXL Servers Manager

      Thread Created: 140737214990080 (LWP: 25700)

      API Connection Established: CodeXL OpenCL Server

      Debug String: CodeXL OpenCL Server was initialized

      Thread Created: 140737041442560 (LWP: 25701)

      Thread Created: 140737033049856 (LWP: 25702)

      Thread Created: 140736951482112 (LWP: 25707)

      Thread Created: 140736943089408 (LWP: 25708)

      GDB String:  [Thread 0x7fffe4dc9700 (LWP 25702) exited] 

      OpenCL Compute Context 1 Created

      Thread Created: 140737156728576 (LWP: 25709)

      OpenCL Queue 1 (Context 1) Created

      OpenCL Program 1 (Context 1) Created

      Building OpenCL Program  (Context 1)...

      Building OpenCL Program  (Context 1) Ended

                  Build Log:

       

       

      Thread Created: 140736934696704 (LWP: 25710)

      Thread Created: 140736926304000 (LWP: 25711)

      Thread Created: 140736917911296 (LWP: 25712)

      Thread Created: 140737033049856 (LWP: 25713)

      Thread Created: 140736909518592 (LWP: 25714)

      Thread Created: 140736901125888 (LWP: 25715)

      GDB String:  [Thread 0x7fffdd7fa700 (LWP 25714) exited] 

      Thread Created: 140736909518592 (LWP: 25717)

      GDB String:  [Thread 0x7fffdd7fa700 (LWP 25717) exited] 

      Thread Created: 140736909518592 (LWP: 25719)

      GDB String:  [Thread 0x7fffdd7fa700 (LWP 25719) exited] 

      Thread Created: 140736909518592 (LWP: 25720)

      Thread Created: 140736548828928 (LWP: 25721)

      Thread Created: 140736540436224 (LWP: 25722)

      GDB String:  [Thread 0x7fffc77fe700 (LWP 25722) exited] 

      GDB String:  [Thread 0x7fffde7fc700 (LWP 25711) exited] 

      Thread Created: 140736540436224 (LWP: 25724)

      GDB String:  [Thread 0x7fffc77fe700 (LWP 25724) exited] 

      GDB String:  [Thread 0x7fffddffb700 (LWP 25712) exited] 

      GDB String:  [Thread 0x7fffc7fff700 (LWP 25721) exited] 

      Thread Created: 140736548828928 (LWP: 25726)

      GDB String:  [Thread 0x7fffc7fff700 (LWP 25726) exited] 

      GDB String:  [Thread 0x7fffdd7fa700 (LWP 25720) exited] 

      Thread Created: 140736548828928 (LWP: 25727)

      Checking for memory leaks - Context 1 Program 1 deleted

      No memory leaks were found

      GDB String:  [Thread 0x7fffec3bc700 (LWP 25709) exited] 

      GDB String:  [Thread 0x7fffdeffd700 (LWP 25710) exited] 

      GDB String:  [Thread 0x7fffc7fff700 (LWP 25727) exited] 

      Thread Created: 140736548828928 (LWP: 25728)

      GDB String:  [Thread 0x7fffc7fff700 (LWP 25728) exited] 

      Thread Created: 140736548828928 (LWP: 25729)

      GDB String:  [Thread 0x7fffc7fff700 (LWP 25729) exited] 

      Thread Created: 140736548828928 (LWP: 25730)

      GDB String:  [Thread 0x7fffc7fff700 (LWP 25730) exited] 

      GDB String:  [Thread 0x7fffe55ca700 (LWP 25701) exited] 

      API Connection Ended: CodeXL OpenCL Server

      API Connection Ended: CodeXL OpenCL Server

      Checking for memory leaks - Application exit

      No memory leaks were found

      API Connection Ended: CodeXL OpenGL Server

      API Connection Ended: CodeXL Servers Manager

      GDB String:  [Thread 0x7fffefb4c700 (LWP 25700) exited] 

      GDB String:  [Thread 0x7fffe4dc9700 (LWP 25713) exited] 

      GDB String:  [Thread 0x7fffdf7fe700 (LWP 25708) exited] 

      GDB String:  [Thread 0x7fffdffff700 (LWP 25707) exited] 

      GDB String:  [Thread 0x7ffff7fba780 (LWP 25696) exited] 

      Process Exit

       

       

      then "CodeXL-xxx.log":

       

      ////////////////////////////////////////////////////////////

      // This File contains debug printouts

      // Advanced Micro Devices, Inc.

      // http://developer.amd.com/

      ////////////////////////////////////////////////////////////

       

       

      ### System information data:

      ###

      ## Device 1 (GPU):

      ##  - Platform ID: 1

      ##  - Device Type: GPU

      ##  - Device Name: Tahiti

      ##  - Vendor: Advanced Micro Devices, Inc.

      ##

      ## Platform 1:

      ##  - Vendor: Advanced Micro Devices, Inc.

      ##  - Name: AMD Accelerated Parallel Processing

      ##  - Profile: FULL_PROFILE

      ##  - Version: OpenCL 1.2 AMD-APP (1348.5)

      ## End of system information

       

      ###  [CodeXL-bin]   [Standalone]   []   [LinuxUbuntu-64]   [1,3,3487,0]   [Sunday, January 19, 2014 at 12:03:15]   [1390150995778]   [Release Version]

      ##   [12:03:15]   [1390150995778]   [INFO]   [140198188517888]   [executeSpecificCommand]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTApplicationFramework/commands/src/afInitializeApplicationCommand.cpp]   [94]   [Application initialization started]

      ##   [12:03:15]   [1390150995778]   [INFO]   [140198188517888]   [setLoggedSeverity]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/common/osDebugLog.cpp]   [897]   [Debug log severity: INFO]

      ##   [12:03:38]   [1390151018680]   [INFO]   [140198188517888]   [osLoadModule]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [61]   [Failed to load module. OS error is: /usr/lib/libOpenCL.so.1: wrong ELF class: ELFCLASS32. Module = l]

      ##   [12:03:38]   [1390151018680]   [INFO]   [140198188517888]   [osLoadModule]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [61]   [Failed to load module. OS error is: /usr/lib/libOpenCL.so.1: wrong ELF class: ELFCLASS32. Module = l]

      ##   [12:03:38]   [1390151018681]   [INFO]   [140198188517888]   [osLoadModule]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [61]   [Failed to load module. OS error is: /usr/lib/libOpenCL.so.1: wrong ELF class: ELFCLASS32. Module = l]

      ##   [12:03:38]   [1390151018913]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  GNU gdb (GDB) 7.6.1-ubuntu   ]

      ##   [12:03:38]   [1390151018914]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  Copyright (C) 2013 Free Software Foundation, Inc.   ]

      ##   [12:03:38]   [1390151018914]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type  show copying" and "show warranty  for details.   ]

      ##   [12:03:38]   [1390151018914]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  This GDB was configured as  x86_64-linux-gnu . For bug reporting instructions, please see:   ]

      ##   [12:03:38]   [1390151018914]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  <http://www.gnu.org/software/gdb/bugs/>.   ]

      ##   [12:03:38]   [1390151018914]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  Working directory /home/jdb/coins/tools/cgminer-3.7.2-kalroth.   ]

      ##   [12:03:38]   [1390151018916]   [INFO]   [140198188517888]   [onProcessCreation]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [585]   [Workspace name: cgminer - Process created]

      ##   [12:03:38]   [1390151018924]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Process Run Started]

      ##   [12:03:39]   [1390151019033]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread debugging using libthread_db enabled]  ]

      ##   [12:03:39]   [1390151019033]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  Using host libthread_db library  /lib/x86_64-linux-gnu/libthread_db.so.1 .  ]

      ##   [12:03:39]   [1390151019296]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [API Connection Established: CodeXL Servers Manager]

      ##   [12:03:39]   [1390151019297]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140737214990080 (LWP: 25700)]

      ##   [12:03:39]   [1390151019579]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [API Connection Established: CodeXL OpenCL Server]

      ##   [12:03:39]   [1390151019598]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Debug String: CodeXL OpenCL Server was initialized]

      ##   [12:03:39]   [1390151019634]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140737041442560 (LWP: 25701)]

      ##   [12:03:39]   [1390151019635]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140737033049856 (LWP: 25702)]

      ##   [12:03:39]   [1390151019839]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736951482112 (LWP: 25707)]

      ##   [12:03:39]   [1390151019842]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736943089408 (LWP: 25708)]

      ##   [12:03:39]   [1390151019842]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffe4dc9700 (LWP 25702) exited]  ]

      ##   [12:03:40]   [1390151020638]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [OpenCL Compute Context 1 Created]

      ##   [12:03:40]   [1390151020639]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140737156728576 (LWP: 25709)]

      ##   [12:03:40]   [1390151020648]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [OpenCL Queue 1 (Context 1) Created]

      ##   [12:03:40]   [1390151020652]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [OpenCL Program 1 (Context 1) Created]

      ##   [12:03:40]   [1390151020654]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Building OpenCL Program  (Context 1)...]

      ##   [12:03:40]   [1390151020654]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Building OpenCL Program  (Context 1) Ended

                  Build Log:

       

      ]

      ##   [12:03:40]   [1390151020654]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736934696704 (LWP: 25710)]

      ##   [12:03:40]   [1390151020655]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736926304000 (LWP: 25711)]

      ##   [12:03:40]   [1390151020655]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736917911296 (LWP: 25712)]

      ##   [12:03:40]   [1390151020656]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140737033049856 (LWP: 25713)]

      ##   [12:03:40]   [1390151020656]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736909518592 (LWP: 25714)]

      ##   [12:03:40]   [1390151020657]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736901125888 (LWP: 25715)]

      ##   [12:03:40]   [1390151020658]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdd7fa700 (LWP 25714) exited]  ]

      ##   [12:03:41]   [1390151021550]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736909518592 (LWP: 25717)]

      ##   [12:03:41]   [1390151021562]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdd7fa700 (LWP 25717) exited]  ]

      ##   [12:03:42]   [1390151022376]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736909518592 (LWP: 25719)]

      ##   [12:03:42]   [1390151022388]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdd7fa700 (LWP 25719) exited]  ]

      ##   [12:03:42]   [1390151022662]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736909518592 (LWP: 25720)]

      ##   [12:03:42]   [1390151022665]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736548828928 (LWP: 25721)]

      ##   [12:03:42]   [1390151022686]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736540436224 (LWP: 25722)]

      ##   [12:03:42]   [1390151022719]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc77fe700 (LWP 25722) exited]  ]

      ##   [12:03:42]   [1390151022719]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffde7fc700 (LWP 25711) exited]  ]

      ##   [12:03:42]   [1390151022723]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736540436224 (LWP: 25724)]

      ##   [12:03:42]   [1390151022774]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc77fe700 (LWP 25724) exited]  ]

      ##   [12:03:42]   [1390151022774]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffddffb700 (LWP 25712) exited]  ]

      ##   [12:03:42]   [1390151022774]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc7fff700 (LWP 25721) exited]  ]

      ##   [12:03:42]   [1390151022845]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736548828928 (LWP: 25726)]

      ##   [12:03:42]   [1390151022876]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc7fff700 (LWP 25726) exited]  ]

      ##   [12:03:42]   [1390151022907]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdd7fa700 (LWP 25720) exited]  ]

      ##   [12:03:43]   [1390151023196]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736548828928 (LWP: 25727)]

      ##   [12:03:43]   [1390151023197]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Checking for memory leaks - Context 1 Program 1 deleted]

      ##   [12:03:43]   [1390151023198]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [No memory leaks were found]

      ##   [12:03:43]   [1390151023203]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffec3bc700 (LWP 25709) exited]  ]

      ##   [12:03:43]   [1390151023204]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdeffd700 (LWP 25710) exited]  ]

      ##   [12:03:43]   [1390151023216]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc7fff700 (LWP 25727) exited]  ]

      ##   [12:03:43]   [1390151023774]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736548828928 (LWP: 25728)]

      ##   [12:03:43]   [1390151023774]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc7fff700 (LWP 25728) exited]  ]

      ##   [12:03:43]   [1390151023775]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736548828928 (LWP: 25729)]

      ##   [12:03:43]   [1390151023777]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc7fff700 (LWP 25729) exited]  ]

      ##   [12:03:43]   [1390151023778]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Thread Created: 140736548828928 (LWP: 25730)]

      ##   [12:03:43]   [1390151023779]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffc7fff700 (LWP 25730) exited]  ]

      ##   [12:03:43]   [1390151023779]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffe55ca700 (LWP 25701) exited]  ]

      ##   [12:03:43]   [1390151023789]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [API Connection Ended: CodeXL OpenCL Server]

      ##   [12:03:43]   [1390151023789]   [ERROR]   [140197522040576]   [readDataFromPipe]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osPipeSocket.cpp]   [501]   [Read error (pipe type : osPipeSocketServer)]

      ##   [12:03:43]   [1390151023789]   [ERROR]   [140197522040576]   [readDataFromPipe]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osPipeSocket.cpp]   [618]   [Pipe read error (pipe type: osPipeSocketServer)]

      ##   [12:03:43]   [1390151023789]   [ERROR]   [140197522040576]   [operator>>]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/common/osChannelOperators.cpp]   [566]   [Assertion failure (rc)]

      ##   [12:03:43]   [1390151023789]   [ERROR]   [140197522040576]   [operator>>]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/common/osTransferableObject.cpp]   [153]   [Failed to create transferable object of type 295]

      ##   [12:03:43]   [1390151023789]   [ERROR]   [140197522040576]   [operator>>]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/common/osTransferableObject.cpp]   [157]   [Assertion failure (rc)]

      ##   [12:03:43]   [1390151023789]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [API Connection Ended: CodeXL OpenCL Server]

      ##   [12:03:43]   [1390151023790]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Checking for memory leaks - Application exit]

      ##   [12:03:43]   [1390151023790]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [No memory leaks were found]

      ##   [12:03:43]   [1390151023791]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [API Connection Ended: CodeXL OpenGL Server]

      ##   [12:03:43]   [1390151023791]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [API Connection Ended: CodeXL Servers Manager]

      ##   [12:03:43]   [1390151023792]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffefb4c700 (LWP 25700) exited]  ]

      ##   [12:03:43]   [1390151023792]   [ERROR]   [140197505255168]   [readDataFromPipe]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osPipeSocket.cpp]   [501]   [Read error (pipe type : Linux Debugged Application Pipe Socket)]

      ##   [12:03:43]   [1390151023792]   [ERROR]   [140197505255168]   [readDataFromPipe]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osPipeSocket.cpp]   [618]   [Pipe read error (pipe type: Linux Debugged Application Pipe Socket)]

      ##   [12:03:43]   [1390151023793]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffe4dc9700 (LWP 25713) exited]  ]

      ##   [12:03:43]   [1390151023793]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdf7fe700 (LWP 25708) exited]  ]

      ##   [12:03:43]   [1390151023793]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7fffdffff700 (LWP 25707) exited]  ]

      ##   [12:03:43]   [1390151023793]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [GDB String:  [Thread 0x7ffff7fba780 (LWP 25696) exited]  ]

      ##   [12:03:43]   [1390151023800]   [INFO]   [140198188517888]   [insertListItem]   [Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDebuggedProcessEventsView.cpp]   [1216]   [Process Exit]

       

       

      and finally, "CodeXLServers-XXX.log":

       

      ////////////////////////////////////////////////////////////

      // This File contains debug printouts

      // Advanced Micro Devices, Inc.

      // http://developer.amd.com/

      ////////////////////////////////////////////////////////////

       

       

      ### System information data:

      ### End of system information

       

      ###  [cgminer]   []   []   [LinuxUbuntu-64]   [1,3,3487,0]   [Sunday, January 19, 2014 at 12:03:39]   [1390151019287]   [Release Version]

      ##   [12:03:39]   [1390151019287]   [INFO]   [140737353852800]   [setLoggedSeverity]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/common/osDebugLog.cpp]   [897]   [Debug log severity: INFO]

      ##   [12:03:39]   [1390151019296]   [INFO]   [140737353852800]   [suInitializeSpyToAPIConnection]   [Components/GpuDebugging/AMDTServerUtilities/src/suSpiesUtilitiesDLLInitializationFunctions.cpp]   [436]   [CodeXL's servers are initialized in API mode]

      ##   [12:03:39]   [1390151019310]   [INFO]   [140737353852800]   [csInitializeOpenCLServer]   [Components/GpuDebugging/AMDTOpenCLServer/src/csOpenCLServerInitialization.cpp]   [61]   [The OpenCL Server is initializing]

      ##   [12:03:39]   [1390151019310]   [INFO]   [140737353852800]   [osLoadModule]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [61]   [Failed to load module. OS error is: /usr/lib/libOpenCL.so.1: wrong ELF class: ELFCLASS32. Module = l]

      ##   [12:03:39]   [1390151019364]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clSetPrintfCallback]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clGetGLContextInfoKHR]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clBeginComputationFrameAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clBeginComputationFrameAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clBeginComputationFrameAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clEndComputationFrameAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clEndComputationFrameAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clEndComputationFrameAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameContextAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameContextAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameContextAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameCommandQueueAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameCommandQueueAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameCommandQueueAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameMemObjectAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameMemObjectAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameMemObjectAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameSamplerAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameSamplerAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameSamplerAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameProgramAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameProgramAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameProgramAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameKernelAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameKernelAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameKernelAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameEventAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initializeExtensionWrapperAddresses]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [378]   [Could not find procedure address of functions clNameEventAMD.]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clNameEventAMD]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [osGetProcedureAddress]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [187]   [Cannot retrieve function pointer: clCreateEventFromGLsyncKHR]

      ##   [12:03:39]   [1390151019578]   [ERROR]   [140737353852800]   [initialize]   [Components/GpuDebugging/AMDTOpenCLServer/src/csExtensionsManager.cpp]   [81]   [Assertion failure (rcWrappersAddresses)]

      ##   [12:03:39]   [1390151019598]   [INFO]   [140737353852800]   [osOutputDebugString]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osDebuggingFunctions.cpp]   [47]   [Debug string: CodeXL OpenCL Server was initialized]

      ##   [12:03:39]   [1390151019598]   [INFO]   [140737353852800]   [csInitializeOpenCLServer]   [Components/GpuDebugging/AMDTOpenCLServer/src/csOpenCLServerInitialization.cpp]   [138]   [The OpenCL Server initialization ended]

      ##   [12:03:43]   [1390151023789]   [INFO]   [140736901125888]   [gsOpenGLSpyTerminate]   [Components/GpuDebugging/AMDTOpenGLServer/src/gsOpenGLSpyInitFuncs.cpp]   [425]   [CodeXL OpenGL Server is terminating]

      ##   [12:03:43]   [1390151023789]   [ERROR]   [140736901125888]   [gsOpenGLSpyTerminate]   [Components/GpuDebugging/AMDTOpenGLServer/src/gsOpenGLSpyInitFuncs.cpp]   [443]   [Failed to terminate OpenGL wrappers]

      ##   [12:03:43]   [1390151023790]   [INFO]   [140736901125888]   [terminate]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/common/osDebugLog.cpp]   [367]   [Debug log is terminated]

       

       

       

      any idea whats wrong?  thanks

        • Re: CodeXL cant debug program
          dorono

          Hi Huck,

          Looking at the log file you uploaded I think this is the reason your debugging session fails to begin:

          huck wrote:

           

          and finally, "CodeXLServers-XXX.log":

           

          ...

          ##   [12:03:39]   [1390151019310]   [INFO]   [140737353852800]   [osLoadModule]   [/data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/CommonProjects/AMDTOSWrappers/src/linux/osModule.cpp]   [61]   [Failed to load module. OS error is: /usr/lib/libOpenCL.so.1: wrong ELF class: ELFCLASS32. Module = l]

          ...

          CodeXL is trying to load the OpenCL library on your 64-bit Ubuntu machine, and finds a 32-bit version of the library which it cannot work with.

          Please verify that the 64-bit OpenCL library is available for loading by CodeXL.