ok after more investigation the problem is not related to ATOM CPU or to my system
I can build and run any gentoo packages but still have a problem with bitcoin on all the servers using the gentoo hardened pie/ssp toolchain (
http://www.gentoo.org/proj/en/hardened/hardened-toolchain.xml )
bitcoin is running ok on the servers not using hardened toolchain
bitcoin will SIGSEGV on all the server using hardened :
here is the full strace of the segfault :
[pid 8467] write(19, "BitcoinMiner started\n", 21) = 21
[pid 8467] close(19) = 0
[pid 8467] munmap(0xb7ef7000, 4096) = 0
[pid 8467] setpriority(PRIO_PROCESS, 0, 20) = 0
[pid 8467] open("/var/lib/bitcoin/.bitcoin/debug.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 19
[pid 8467] fstat64(19, {st_mode=S_IFREG|0600, st_size=8581205, ...}) = 0
[pid 8467] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef7000
[pid 8467] fstat64(19, {st_mode=S_IFREG|0600, st_size=8581205, ...}) = 0
[pid 8467] _llseek(19, 8581205, [8581205], SEEK_SET) = 0
[pid 8467] write(19, "CPUID 6c65746e family 6, model 2"..., 59) = 59
[pid 8467] close(19) = 0
[pid 8467] munmap(0xb7ef7000, 4096) = 0
[pid 8467] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 8467 detached
its always reproducible.
I also tried disabling the sse2 use flag, nothing changes, same sigsegv problem with or without sse2 flag
there is no crash if I disable the miner ( -gen=0 option ) so its clear the problem is in the miner code
I also tried updating myself the ebuild to 0.3.15 , same crash but th strace is different :
[pid 12260] open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 17
[pid 12260] fstat64(17, {st_mode=S_IFREG|0644, st_size=744, ...}) = 0
[pid 12260] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7db7000
[pid 12260] read(17, "# /etc/hosts: This file describ"..., 4096) = 744
[pid 12260] read(17, "", 4096) = 0
[pid 12260] close(17) = 0
[pid 12260] munmap(0xb7db7000, 4096) = 0
[pid 12260] time(NULL) = 1289803862
[pid 12260] socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 17
[pid 12260] connect(17, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("213.186.33.99")}, 28) = 0
[pid 12260] gettimeofday({1289803862, 19994}, NULL) = 0
[pid 12260] poll([{fd=17, events=POLLOUT}], 1, 0) = 1 ([{fd=17, revents=POLLOUT}])
[pid 12260] send(17, "\334\16\1\0\0\1\0\0\0\0\0\0\3irc\5lfnet\3org\0\0\1\0\1", 31, MSG_NOSIGNAL) = 31
[pid 12260] poll([{fd=17, events=POLLIN}], 1, 5000
[pid 12263] write(19, "ThreadMessageHandler started\n", 29) = 29
[pid 12263] close(19) = 0
[pid 12263] munmap(0xb7db5000, 4096) = 0
[pid 12263] setpriority(PRIO_PROCESS, 0, 2) = 0
[pid 12263] gettimeofday({1289803862, 20156}, NULL) = 0
[pid 12263] gettimeofday({1289803862, 20177}, NULL) = 0
[pid 12263] nanosleep({0, 99979000},
[pid 12261] set_robust_list(0xb4afebe0, 0xc) = 0
[pid 12261] open("/var/lib/bitcoin/.bitcoin/debug.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 18
[pid 12261] fstat64(18, {st_mode=S_IFREG|0600, st_size=8587255, ...}) = 0
[pid 12261] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7db7000
[pid 12261] fstat64(18, {st_mode=S_IFREG|0600, st_size=8587255, ...}) = 0
[pid 12261] _llseek(18, 8587255, [8587255], SEEK_SET) = 0
[pid 12261] write(18, "ThreadSocketHandler started\n", 28) = 28
[pid 12261] close(18) = 0
[pid 12261] munmap(0xb7db7000, 4096) = 0
[pid 12261] select(6, [5], [], [], {0, 50000}
[pid 12235] +++ killed by SIGSEGV +++
[pid 12260] +++ killed by SIGSEGV +++
[pid 12233] +++ killed by SIGSEGV +++
[pid 12262] +++ killed by SIGSEGV +++
[pid 12263] +++ killed by SIGSEGV +++
[pid 12261] +++ killed by SIGSEGV +++
[pid 12234] +++ killed by SIGSEGV +++
+++ killed by SIGSEGV +++
with 0.3.15 the crash happens later, after :
CPUID 6c65746e family 6, model 23, stepping 10, fUseSSE2=0
ThreadIRCSeed started
ThreadMessageHandler started
ThreadSocketHandler started