cellminer
cellminer copied to clipboard
cellminer.rb:136: [BUG] Segmentation fault
https://github.com/verement/cellminer/issues/3#issuecomment-1431821
I get segfault and I do have /spu mounted and I use ruby 1.9.2p180 with YDL.
http://pastebin.com/SHbc1Apu
build log: http://pastebin.com/Ds2SN6WH
How can I trace it?
Since the problem occurs within spe_program_load()
, it seems there is something wrong with the embedded SPU code.
The immediate problem appears to stem from this warning:
/usr/bin/ld: warning: powerpc:common64 architecture of input file `spu_worker.o' is incompatible with powerpc:common output
You could solve this by arranging to pass the -m32
flag to ppu-embedspu
in ext/depend
like so:
spu_worker.o: spu/worker.elf
ppu-embedspu -m32 spu_worker $< $@
However, it looks like you may end up with another problem which is that the PPU miner is being built as 64-bit with ppu-gcc
but the Ruby glue code is built as 32-bit with gcc
. Probably you will want to compile everything with one or the other, or pass appropriate flags to end up with the same output format in any case.
I do not have access to the ps3 now and I can't check it. I will come back to this later.