> i'm unable to compile tojpg (which you may not have, but most any
> program should do) for amd64 on mips.  here's an example:
> 
>       ; objtype=amd64 mk tojpg.install
>       6c -FTVw writejpg.c
>       6c -FTVw multichan.c
>       6c -FTVw tojpg.c
>       6l  -o 6.tojpg writejpg.6 multichan.6 tojpg.6
>       cp 6.tojpg /amd64/bin/tojpg
>       ; cpu -h ladd
>       ladd; png -t9 < amd64.png|tojpg>amd64.jpg
>       tojpg 277878: suicide: sys: trap: #SS pc=0x215014
> 
> acid says that imagmem is 0, and so is mainmem.  this must
> mean that the data segment is clobbered.  can other folks reproduce
> this?
> 
> i'm guessing that there is a segment rounding issue?  i was
> actually looking at a different bug when i tripped on this.
> they always hide out in bunches.

Yes, I think you're right. I can reproduce the same problem here.

cpu% 6c /sys/src/cmd/ls.c && 6l ls.6
cpu% cpu -h radium
cpu% 6.out
6.out 367: suicide: sys: trap: #SS pc=0x209d56

-- 
David du Colombier

Reply via email to