List Info

Thread: Re: linux-x86-64 (for comments)




Re: linux-x86-64 (for comments)
country flaguser name
Russian Federation
2008-05-10 16:12:25
On Sat, 10 May 2008, Roman Divacky wrote:

>> now /compat/linux/bin/pwd exited without SIGSEGV,
but on former can't 
>> load libc
>
> please... post more technical details if you want us to
help you. if you
> mean this as "blog" entry only it's fine as
it is 
but I suggest to 
> establish an official blog (ask flz about
one) for this announcements 
>

ooo, no blog )
about technical details:
now problem in getdents syscall's family
trace of ldconfig look like this

kernel: linux(26702): open(/lib, 0x90800, 0x6bdae0)
kernel: linux(26702): open returns error 0
kernel: retval[0]: 0x3   /   3
kernel: linux(26702): newfstat(3, *)
kernel: retval[0]: 0x0   /   0
kernel: linux(26702): fcntl(3, 00000001, *)
kernel: retval[0]: 0x0   /   0
kernel: linux(26702): fcntl(3, 00000002, *)
kernel: retval[0]: 0x0   /   0
kernel: linux(26702): getdents(3, *, 8192)
kernel: retval[0]: 0x88   /   136

kernel: trap!
kernel: frame->tf_trapno: 0x12
kernel: frame->tf_rip: 0x420608
kernel: frame->tf_rcx: 0x4205e5
kernel: frame->tf_rsp: 0x7fffffffd810
kernel: frame->tf_rbp: 0xffe00
kernel: frame->tf_rbx: 0x6cdbf0
kernel: frame->tf_rax: 0x88
kernel: frame->tf_addr: 0xffe10    ups )))
kernel: frame->tf_cs: 0x2b
kernel: frame->tf_ss: 0x23

-------> here we are die
   420608:       0f b7 45 10             movzwl
0x10(%rbp),%eax
   42060c:       48 8d 5d 12             lea   
0x12(%rbp),%rbx
   420610:       48 89 df                mov    %rbx,%rdi

this code is in function search_dir in elf/ldconfig.c
(glibc)
here i think that is it 

-- 
Have fun!
chd
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linux-x86-64 (for comments)
country flaguser name
Czech Republic
2008-05-10 16:19:51
On Sun, May 11, 2008 at 01:12:25AM +0400, Chagin Dmitry
wrote:
> On Sat, 10 May 2008, Roman Divacky wrote:
> 
> >>now /compat/linux/bin/pwd exited without
SIGSEGV, but on former can't 
> >>load libc
> >
> >please... post more technical details if you want
us to help you. if you
> >mean this as "blog" entry only it's fine
as it is  but I
suggest to 
> >establish an official blog (ask flz about
one) for this announcements 
> >
> 
> ooo, no blog )
> about technical details:
> now problem in getdents syscall's family
> trace of ldconfig look like this
> 
> kernel: linux(26702): open(/lib, 0x90800, 0x6bdae0)
> kernel: linux(26702): open returns error 0
> kernel: retval[0]: 0x3   /   3
> kernel: linux(26702): newfstat(3, *)
> kernel: retval[0]: 0x0   /   0
> kernel: linux(26702): fcntl(3, 00000001, *)
> kernel: retval[0]: 0x0   /   0
> kernel: linux(26702): fcntl(3, 00000002, *)
> kernel: retval[0]: 0x0   /   0
> kernel: linux(26702): getdents(3, *, 8192)
> kernel: retval[0]: 0x88   /   136
> 
> kernel: trap!
> kernel: frame->tf_trapno: 0x12

+       0,                      /* 18 T_DIVIDE */

how can integer divide trap happen in "movzwl"?
Are trap numbers
the same on i386 and on amd64? is this machine-dependant or
os-dependant?
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )