linuxolator: fatal trap 12 when compiling libX11
Scot Hetzel
swhetzel at gmail.com
Wed Jan 17 17:55:44 UTC 2007
On 1/17/07, Divacky Roman <xdivac02 at stud.fit.vutbr.cz> wrote:
> scot, please test this patch and report me what it prints out
> just before the panic, btw.. your machine is SMP?
>
The system has only one processor.
$ dmesg | grep -i cpu
CPU: AMD Turion(tm) 64 Mobile Technology ML-37 (1994.21-MHz K8-class CPU)
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
# kgdb -n 3 kernel.debug
:
Unread portion of the kernel message buffer:
before: 0xffffff002ea7b9f0
after1: 0xffffff002ea7b9f0
after2: 0xffffff002ea7b9f0
before: 0xffffff002ea7b8c0
after1: 0xffffff002ea7b8c0
after2: 0xffffff002ea7b8c0
before: 0xffffff002ea7b8e0
after1: 0xffffff002ea7b8e0
after2: 0xffffff002ea7b8e0
before: 0xffffff002ea7b950
after1: 0xffffff002ea7b950
after2: 0xffffff002ea7b950
before: 0xffffff002ea7b9b0
after1: 0xffffff002ea7b9b0
after2: 0xffffff002ea7b9b0
before: 0xffffff002ea7b540
after1: 0xffffff002ea7b540
after2: 0xffffff002ea7b540
before: 0xffffff002ea7b560
after1: 0xffffff002ea7b560
after2: 0xffffff002ea7b560
before: 0xffffff002ea7b500
after1: 0xffffff002ea7b500
after2: 0xdeadc0dedeadc0de
Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer = 0x8:0xffffffffa2cb3b65
stack pointer = 0x10:0xffffffffa3210ad0
frame pointer = 0x10:0xffffffffa3210b10
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 1281 (bash)
panic: from debugger
cpuid = 0
Uptime: 4m6s
Physical memory: 1008 MB
Dumping 115 MB: 100 84 68 52 36 20 4
(kgdb) list *0xffffffffa2cb3b65
0xffffffffa2cb3b65 is in linux_proc_init
(/usr/src/7x/sys-orig/modules/linux/../../compat/linux/linux_emul.c:141).
136 printf("before: %p\n", em->shared);
137 EMUL_UNLOCK(&emul_lock);
138 printf("after1: %p\n", em->shared);
139 EMUL_SHARED_WLOCK(&emul_shared_lock);
140 printf("after2: %p\n", em->shared);
141 LIST_INSERT_HEAD(&em->shared->threads, em, threads);
142 EMUL_SHARED_WUNLOCK(&emul_shared_lock);
143
144 p = pfind(child);
145 /* we might have a sleeping linux_schedtail */
On 1/17/07, Divacky Roman <xdivac02 at stud.fit.vutbr.cz> wrote:
> also please show me the "flags" arugment to linux_proc_init
>
(kgdb) p flags
$1 = 0x0
(kgdb) p child
$2 = 0x514
(kgdb) p *td
$3 = {
td_proc = 0xffffff0023bf9380,
td_plist = {
tqe_next = 0x0,
tqe_prev = 0xffffff0023bf9390
},
td_slpq = {
tqe_next = 0x0,
tqe_prev = 0xffffff0029064180
},
td_lockq = {
tqe_next = 0x0,
tqe_prev = 0xffffffffa320b580
},
td_selq = {
tqh_first = 0x0,
tqh_last = 0x0
},
td_sleepqueue = 0xffffff0029064180,
td_turnstile = 0xffffff0029064300,
td_umtxq = 0xffffff0029064400,
td_tid = 0x18709,
td_sigqueue = {
sq_signals = {
__bits = {0x0, 0x0, 0x0, 0x0}
},
sq_kill = {
__bits = {0x0, 0x0, 0x0, 0x0}
},
sq_list = {
tqh_first = 0x0,
tqh_last = 0xffffff0025766088
},
sq_proc = 0xffffff0023bf9380,
sq_flags = 0x1
},
td_flags = 0x5000002,
td_inhibitors = 0x0,
td_pflags = 0x0,
td_dupfd = 0x0,
td_sqqueue = 0x0,
td_wchan = 0x0,
td_wmesg = 0x0,
td_lastcpu = 0x0,
td_oncpu = 0x0,
td_owepreempt = 0x0,
td_locks = 0x1,
td_tsqueue = 0x0,
td_blocked = 0x0,
td_lockname = 0x0,
td_contested = {
lh_first = 0x0
},
td_sleeplocks = 0xffffffff809ed7e8,
td_intr_nesting_level = 0x0,
td_pinned = 0x1,
td_mailbox = 0x0,
td_ucred = 0xffffff0028276300,
td_standin = 0x0,
td_upcall = 0x0,
td_estcpu = 0x127,
td_slptime = 0x0,
td_pticks = 0x0,
td_sticks = 0x0,
td_iticks = 0x0,
td_uticks = 0x0,
td_uuticks = 0x0,
td_usticks = 0x0,
td_intrval = 0x0,
---Type <return> to continue, or q <return> to quit---
td_oldsigmask = {
__bits = {0x0, 0x0, 0x0, 0x0}
},
td_sigmask = {
__bits = {0x80080002, 0x0, 0x0, 0x0}
},
td_generation = 0x3d,
td_sigstk = {
ss_sp = 0x0,
ss_size = 0x0,
ss_flags = 0x4
},
td_kflags = 0x0,
td_xsig = 0x0,
td_profil_addr = 0x0,
td_profil_ticks = 0x0,
td_name = '\0' <repeats 19 times>,
td_base_pri = 0xbe,
td_priority = 0xbe,
td_pri_class = 0x3,
td_user_pri = 0xbe,
td_base_user_pri = 0xbe,
td_pcb = 0xffffffffa3210d50,
td_state = TDS_RUNNING,
td_retval = {0x514, 0x0},
td_slpcallout = {
c_links = {
sle = {
sle_next = 0x0
},
tqe = {
tqe_next = 0x0,
tqe_prev = 0x0
}
},
c_time = 0x0,
c_arg = 0x0,
c_func = 0,
c_mtx = 0x0,
c_flags = 0x10
},
td_frame = 0xffffffffa3210c80,
td_kstack_obj = 0xffffff0025775bb8,
td_kstack = 0xffffffffa320d000,
td_kstack_pages = 0x4,
td_altkstack_obj = 0x0,
td_altkstack = 0x0,
td_altkstack_pages = 0x0,
td_critnest = 0x0,
td_md = {
md_spinlock_count = 0x0,
md_saved_flags = 0x46
},
td_sched = 0xffffff0025766260,
td_ar = 0x0
}
Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
More information about the freebsd-emulation
mailing list