Hello, On Sun, Jun 6, 2010 at 5:57 PM, Samuel Thibault <samuel.thiba...@gnu.org> wrote: > Hello, > > Zheng Da, le Thu 13 May 2010 08:59:59 -0400, a écrit : >> I boot hurd with the new kernel and run the user-level network drivers >> but got a kernel >> general protection trap. I tried several drivers and always got the >> same problem. >> The error can be seen at http://i.imagehost.org/0382/Screenshot.png. > > Are you still getting this issue? Yes > Could you check the address at the top of the stack? i.e. use > > show registers db> show registers cs 0x8 ds 0x10 es 0x10 fs 0x10 gs 0x10 ss 0x10 eax 0x5 ecx 0x1c edx 0x5 ebx 0x2c4a0 esp 0x1973e0 ebp 0x125bc30 esi 0x2c020 edi 0xc020 eip 0x1076e6 efl 0x297 > > to know the value of esp, say 0x2f0094, and use > > examine 2f0094 db> examine 0x1973e0 13f163 > > for instance, to get the value. Also, you could add > > popl %edx > pushl %edx > > just before the ret, to determine whether the issue is the stack itself > or the return address. Kernel General protection trap, eip 0x1076e6 kernel: General protection (13), code=25a Stopped at 0x1076e6: popl %edx db> trace 0x1076e6(0,0,80eec70,0,0) Bad frame pointer: 0x1
So it stops at exactly the same location. Is it the problem that %esp points to a wrong stack? Best regards, Zheng Da