From owner-freebsd-current Fri Sep 13 5:53: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD2E437B400; Fri, 13 Sep 2002 05:52:53 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21AC743E42; Fri, 13 Sep 2002 05:52:46 -0700 (PDT) (envelope-from mb@imp.ch) Received: from nbs.imp.ch (nbs.imp.ch [157.161.4.7]) by mail.imp.ch (8.12.3/8.12.3) with ESMTP id g8DCqhRw021399; Fri, 13 Sep 2002 14:52:43 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by nbs.imp.ch (8.12.3/8.12.3) with ESMTP id g8DCqh75643778; Fri, 13 Sep 2002 14:52:43 +0200 (MES) Date: Fri, 13 Sep 2002 14:52:42 +0200 (CEST) From: Martin Blapp To: Cc: Subject: kernel trap 12, pagefault (KSE problems ?) Message-ID: <20020913141742.I3162-100000@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian, Just got anotherone. It happened when I pressed CTRL Z ... This is CURRENT of today. The pagefault always happens at the same place. I really don't know how I can debug this ... :-( In any case, tf_ebp looks bugus here. #27 0xc03ace38 in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134590208, tf_esi = 134590288, tf_ebp = -1077937400, tf_isp = -376455820, tf_ebx = 672195836, tf_edx = 134558656, tf_ecx = 0, tf_eax = 190, tf_trapno = 12, tf_err = 2, tf_eip = 671795807, tf_cs = 31, tf_eflags = 662, tf_esp = -1077937556, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1050 #28 0xc039b34d in Xint0x80_syscall () at /var/tmp/cciyCklS.s:140 (kgdb) list 1045 td->td_retval[0] = 0; 1046 td->td_retval[1] = frame.tf_edx; 1047 1048 STOPEVENT(p, S_SCE, narg); 1049 1050 error = (*callp->sy_call)(td, args); 1051 } 1052 1053 switch (error) { 1054 case 0: (kgdb) p td $6 = (struct thread *) 0xcd49a600 (kgdb) p *td $7 = {td_proc = 0xcd566a90, td_ksegrp = 0xcd566ac8, td_plist = {tqe_next = 0x0, tqe_prev = 0xcd566aa0}, td_kglist = { tqe_next = 0x0, tqe_prev = 0xcd566ae4}, td_slpq = {tqe_next = 0x0, tqe_prev = 0xcc019198}, td_blkq = {tqe_next = 0x0, tqe_prev = 0xc05d488c}, td_runq = {tqe_next = 0x0, tqe_prev = 0x0}, td_selq = {tqh_first = 0x0, tqh_last = 0xcd49a630}, td_flags = 2, td_inhibitors = 0, td_last_kse = 0x0, td_kse = 0xcd566b20, td_dupfd = 0, td_wchan = 0x0, td_wmesg = 0xc03eb136 "biord", td_lastcpu = 0 '\0', td_inktr = 0 '\0', td_inktrace = 0 '\0', td_locks = 0, td_blocked = 0x0, td_ithd = 0x0, td_mtxname = 0x0, td_contested = {lh_first = 0xc04375e0}, td_sleeplocks = 0x0, td_intr_nesting_level = 0, td_mailbox = 0x0, td_ucred = 0xce005180, td_switchin = 0, td_critnest = 1, td_md = , td_base_pri = 160 ' ', td_priority = 16 '\020', td_pcb = 0xe98fbda0, td_state = TDS_RUNNING, td_retval = {0, 134558656}, td_slpcallout = {c_links = { sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0, c_arg = 0x0, c_func = 0, c_flags = 8}, td_frame = 0xe98fbd48, td_kstack_obj = 0xcd4915dc, td_kstack = 3918503936} (kgdb) frame 28 (kgdb) disass Dump of assembler code for function Xint0x80_syscall: 0xc039b330 : push $0x2 0xc039b332 : sub $0x4,%esp 0xc039b335 : pusha 0xc039b336 : push %ds 0xc039b337 : push %es 0xc039b338 : push %fs 0xc039b33a : mov $0x10,%ax 0xc039b33e : mov %eax,%ds 0xc039b340 : mov %eax,%es 0xc039b342 : mov $0x18,%ax 0xc039b346 : mov %eax,%fs 0xc039b348 : call 0xc03acb0c 0xc039b34d : jmp 0xc039cab0 0xc039b352 : mov %esi,%esi End of assembler dump. (kgdb) disass 0xc039cab0 Dump of assembler code for function doreti_next: 0xc039cab0 : testl $0x20000,0x3c(%esp,1) 0xc039cab8 : je 0xc039cac5 0xc039caba : cmpl $0x1,0xc0452340 0xc039cac1 : jne 0xc039cacc 0xc039cac3 : jmp 0xc039caeb End of assembler dump. (kgdb) disass 0xc039cacc Dump of assembler code for function doreti_ast: 0xc039cacc : cli 0xc039cacd : mov %fs:0x0,%eax 0xc039cad3 : mov 0x44(%eax),%eax 0xc039cad6 : testl $0xc00,0x20(%eax) 0xc039cadd : je 0xc039caeb 0xc039cadf : sti 0xc039cae0 : push %esp 0xc039cae1 : call 0xc0251650 0xc039cae6 : add $0x4,%esp 0xc039cae9 : jmp 0xc039cacc (kgdb) disass 0xc03acb0c Dump of assembler code for function syscall: 0xc03acb0c : push %ebp 0xc03acb0d : mov %esp,%ebp 0xc03acb0f : push %ebx 0xc03acb10 : sub $0x58,%esp 0xc03acb13 : mov %fs:0x0,%eax 0xc03acb19 : mov %eax,0xffffffe4(%ebp) 0xc03acb1c : mov 0xffffffe4(%ebp),%eax 0xc03acb1f : mov %eax,0xffffffec(%ebp) 0xc03acb22 : mov 0xffffffec(%ebp),%eax 0xc03acb25 : mov %eax,0xfffffff0(%ebp) 0xc03acb28 : mov 0xfffffff0(%ebp),%eax 0xc03acb2b : mov (%eax),%eax 0xc03acb2d : mov %eax,0xffffffe0(%ebp) 0xc03acb30 : mov %fs:0x34,%eax 0xc03acb36 : add $0xc8,%eax 0xc03acb3b : mov %eax,0xffffffb0(%ebp) 0xc03acb3e : mov 0xffffffb0(%ebp),%eax 0xc03acb41 : incl (%eax) 0xc03acb43 : mov 0xfffffff0(%ebp),%eax 0xc03acb46 : mov 0x44(%eax),%eax 0xc03acb49 : mov 0x54(%eax),%eax 0xc03acb4c : mov %eax,0xffffffec(%ebp) 0xc03acb4f : mov 0xfffffff0(%ebp),%eax 0xc03acb52 : lea 0x8(%ebp),%edx 0xc03acb55 : mov %edx,0xb0(%eax) 0xc03acb5b : mov 0xfffffff0(%ebp),%eax 0xc03acb5e : mov 0xffffffe0(%ebp),%edx 0xc03acb61 : mov 0x78(%eax),%eax 0xc03acb64 : cmp 0x20(%edx),%eax 0xc03acb67 : je 0xc03acb74 0xc03acb69 : pushl 0xfffffff0(%ebp) 0xc03acb6c : call 0xc0228434 0xc03acb6c : call 0xc0228434 0xc03acb71 : add $0x4,%esp 0xc03acb74 : mov 0xffffffe0(%ebp),%eax 0xc03acb77 : mov $0xffff8000,%edx 0xc03acb7c : and 0x124(%eax),%dx 0xc03acb83 : mov %edx,%eax 0xc03acb85 : test %ax,%ax 0xc03acb88 : je 0xc03acbe3 0xc03acb8a : mov 0xfffffff0(%ebp),%ebx 0xc03acb8d : mov 0xfffffff0(%ebp),%eax 0xc03acb90 : mov 0x44(%eax),%eax 0xc03acb93 : mov 0x6c(%eax),%eax 0xc03acb96 : add $0xc,%eax 0xc03acb99 : push %eax 0xc03acb9a : call 0xc03aa7d0 ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 061 826 93 00: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message