Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Running o32 code on n32 (Part 2, fancier programs)



coypu%SDF.ORG@localhost writes:
> > hmm... i wonder if the loadable locale stuff doesn't work with
> > the MKCOMPAT stuff properly.

>   8720      1 digest   netbsd32_open("/usr/lib/o32/i18n", 0x600004, 0x7fff54bf) = 3, 2147439801

OK, so this part works properly...

> > can you ktrace and see exactly what is happening?  perhaps this
> > is looping for some reason in the wrong place.
> 
> The relevant bits from `ktruss digest` are:
> 
>   8720      1 digest   netbsd32_open("/usr/lib/o32/i18n", 0x600004, 0x7fff54bf) = 3, 2147439801
>   8720      1 digest   netbsd32_fstatvfs1(0x3, 0x7fff4b90, 0x2) = 0, 1
>   8720      1 digest   netbsd32_lseek(0x3, 0, 0, 0) = 0, -1151758584
>   8720      1 digest   netbsd32___getdents30(0x3, 0x78428000, 0x4000) = 2928, -1151758584
>   8720      1 digest   netbsd32_lseek(0x3, 0, 0, 0) = 0, -1144884216
>   8720      1 digest   netbsd32___getdents30(0x3, 0x78428000, 0x4000) = 2928, -1144884216
>   8720      1 digest   netbsd32_lseek(0x3, 0, 0, 0) = 0, -1144884336

there's an infinite loop in readdir(3).  what i guess is happening is
that each run through the loop dp->d_reclen is 0, so that the value
of dirp->dd_loc always remains 0.  so, something is wrong here, but
i don't see it in a simple test case (i haven't gotten pkgsrc on my
gxemul system yet.)


.mrg.


Home | Main Index | Thread Index | Old Index