cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

smistad
Adept I

CodeXL seg faults on every run

CodeXL seg faults every time I try to run something, even the teapot sample.

./CodeXL: line 41:  3766 Segmentation fault  (core dumped) /opt/AMD/CodeXL/bin/./CodeXL-bin

I use Ubuntu 12.04 64 bit, AMD APP 2.7 and catalyst 12.9 beta. Anyone know how this can be fixed? Thanks

0 Likes
8 Replies
nou
Exemplar

downgrade to catalyst 12.8

I tried downgrading to 12.8 and now CodeXL at least doesn't crash, but my OpenCL code doesn't work properly together with the 7970 device when using the 12.8 driver 😕

0 Likes

Hi Smistad,

CodeXL on Linux is supported on Ubuntu 11.10 x64 and RHEL6U2 x64.

Can you provide us with the core dump of CodeXL crash?

The procedure to collect core dump is:

-- Give "ulimit -c unlimited" on the terminal.

-- Launch CodeXL. If Segmentation Fault occurs, it generates a core.

can you please attach this "core" and send it across to us?

When you say on downgrading to 12.8, your OpenCL code doesn't work properly, are you running it with CodeXL?

Thanks,

Kalyan P

0 Likes

The core file is attached to this post. Hope it helps.

The code I have doesn't work with the 12.8 driver for the tahiti 7970 device with or without CodeXL. On other devices such as 5870 it works fine on 12.8

Note that CodeXL doesn't just seg fault when running code, it sometimes seg faults on startup or just after some time.

0 Likes

Here on Xubuntu 13.10, an strace gives:

$ strace codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL

...

clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fdda9515a10) = 2663
rt_sigprocmask(SIG_SETMASK, [], NULL, 😎 = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 😎 = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 😎 = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 😎 = 0
rt_sigaction(SIGINT, {0x43f800, [], SA_RESTORER, 0x7fdda8b4cff0}, {SIG_DFL, [], SA_RESTORER, 0x7fdda8b4cff0}, 😎 = 0
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 2663
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdda9523000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
brk(0x16ec000)                          = 0x16ec000
brk(0x16ed000)                          = 0x16ed000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7fdda9523000, 4096)            = 0
open("/usr/share/locale/en_GB/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/bash.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32221, ...}) = 0
mmap(NULL, 32221, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdda951c000
close(3)                                = 0
open("/usr/share/locale-langpack/en/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_GB/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3162, ...}) = 0
mmap(NULL, 3162, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdda951b000
close(3)                                = 0
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "codeXL/AMD_CodeXL_Linux_x86_64_1"..., 174codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL: line 41:  2663 Segmentation fault      (core dumped) /home/etienne/codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL-bin
) = 174
rt_sigprocmask(SIG_SETMASK, [], NULL, 😎 = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=2663, si_status=SIGSEGV, si_utime=58, si_stime=558} ---
wait4(-1, 0x7fff7ef36218, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn()                          = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fdda8b4cff0}, {0x43f800, [], SA_RESTORER, 0x7fdda8b4cff0}, 😎 = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 😎  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 😎  = 0
read(255, "", 1294)                     = 0
exit_group(139)                         = ?
+++ exited with 139 +++

So there seems to be a problem on

Here on Xubuntu 13.10, an strace gives:

$ strace codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL

...

clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fdda9515a10) = 2663
rt_sigprocmask(SIG_SETMASK, [], NULL, 😎 = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 😎 = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 😎 = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 😎 = 0
rt_sigaction(SIGINT, {0x43f800, [], SA_RESTORER, 0x7fdda8b4cff0}, {SIG_DFL, [], SA_RESTORER, 0x7fdda8b4cff0}, 😎 = 0
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 2663
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdda9523000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
brk(0x16ec000)                          = 0x16ec000
brk(0x16ed000)                          = 0x16ed000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7fdda9523000, 4096)            = 0
open("/usr/share/locale/en_GB/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/bash.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32221, ...}) = 0
mmap(NULL, 32221, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdda951c000
close(3)                                = 0
open("/usr/share/locale-langpack/en/LC_MESSAGES/bash.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_GB/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3162, ...}) = 0
mmap(NULL, 3162, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdda951b000
close(3)                                = 0
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "codeXL/AMD_CodeXL_Linux_x86_64_1"..., 174codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL: line 41:  2663 Segmentation fault      (core dumped) /home/etienne/codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL-bin
) = 174
rt_sigprocmask(SIG_SETMASK, [], NULL, 😎 = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=2663, si_status=SIGSEGV, si_utime=58, si_stime=558} ---
wait4(-1, 0x7fff7ef36218, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn()                          = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fdda8b4cff0}, {0x43f800, [], SA_RESTORER, 0x7fdda8b4cff0}, 😎 = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 😎  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 😎  = 0
read(255, "", 1294)                     = 0
exit_group(139)                         = ?
+++ exited with 139 +++

So there seems to be a problem on line 41:  2663 Segmentation fault      (core dumped) /home/etienne/codeXL/AMD_CodeXL_Linux_x86_64_1.3.3487/bin/CodeXL-bin

Appears either using the deb package or the .tar.gz.

Regards,

Etienne.

0 Likes

Hi Etienne,

CodeXL 1.3 version does not support Kubuntu/Ubuntu 13.10.

However, if you can provide your system details and back trace of the Segmentation Fault, we will investigate the issue.

Can you provide us following details:

i. CPU/APU you are running CodeXL on

ii. GPU used

iii. AMD Catalyst version used

iv. console output of "clinfo"

v. Core dump for CodeXL segmentation fault. The procedure to collect core dump is:

          -- Give "ulimit -c unlimited" on the terminal.

          -- Launch CodeXL. If Segmentation Fault occurs, it generates a core.

   can you please attach this "core" and send it across to us for investigation?

Thanks,

Kalyan P

0 Likes

Hello Kalyan P,

The first 3 requests are included in clinfo:

(amd-catalyst-13.12-linux-x86.x86_64.zip is used because none previous version seem to work with new cards)

*** see next message attachment to read the rest ***

0 Likes

Your E-mail to web converter is very bad, and failed at  "open-bracket" the other brand "close-bracket"

I attach the message I sent...

N.B. you can't attach a core file this size in your WEB interface...

0 Likes