cellminer icon indicating copy to clipboard operation
cellminer copied to clipboard

cellminer.rb:136: [BUG] Segmentation fault

Open sulewski opened this issue 13 years ago • 2 comments

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?

sulewski avatar Jun 25 '11 12:06 sulewski

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.

verement avatar Jun 25 '11 19:06 verement

I do not have access to the ps3 now and I can't check it. I will come back to this later.

sulewski avatar Jul 01 '11 22:07 sulewski