Project

General

Profile

kgdb.txt

open.source@ribose.com, 08/14/2017 03:19 AM

Download (13.6 KB)

 
1
# kgdb kernel.0 vmcore.0
2
GNU gdb (GDB) 7.6.1
3
Copyright (C) 2013 Free Software Foundation, Inc.
4
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
5
This is free software: you are free to change and redistribute it.
6
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
7
and "show warranty" for details.
8
This GDB was configured as "x86_64-dragonfly".
9
For bug reporting instructions, please see:
10
<http://bugs.dragonflybsd.org/>...
11
kernel.0: No such file or directory.
12
(kgdb) q
13
foobar# kgdb kern.1 vmcore.1
14
GNU gdb (GDB) 7.6.1
15
Copyright (C) 2013 Free Software Foundation, Inc.
16
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
17
This is free software: you are free to change and redistribute it.
18
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
19
and "show warranty" for details.
20
This GDB was configured as "x86_64-dragonfly".
21
For bug reporting instructions, please see:
22
<http://bugs.dragonflybsd.org/>...
23
Reading symbols from /var/crash/kern.1...done.
24

    
25
Unread portion of the kernel message buffer:
26
Copyright (c) 2003-2017 The DragonFly Project.
27
Copyright (c) 1992-2003 The FreeBSD Project.
28
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
29
	The Regents of the University of California. All rights reserved.
30
DragonFly v4.8.1-RELEASE #5: Tue Aug  1 23:19:38 EDT 2017
31
    root@www.shiningsilence.com:/usr/obj/home/justin/release/4_8/sys/X86_64_GENERIC
32
i8254 clock: 1193184 Hz
33
TSC invariant clock: 2294697332 Hz
34
CPU: Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz (2294.70-MHz K8-class CPU)
35
  Origin = "GenuineIntel"  Id = 0x40661  Stepping = 1
36
  Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
37
  Features2=0x56d8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,AVX,RDRND>
38
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
39
  AMD Features2=0x21<LAHF,ABM>
40
  Structured Extended Features=0x2000
41
real memory  = 132709376 (126 MB)
42
avail memory = 81620992 (77 MB)
43
lapic: divisor index 0, frequency 500004155 Hz
44
srat_probe: can't locate SRAT
45
SMI Frequency (worst case): 17543 Hz (57 us)
46
Initialize MI interrupts
47
TSC: cputimer freq 71709291, shift 5
48
VMM: VMX is not supported by this Intel CPU
49
wdog: In-kernel automatic watchdog reset enabled
50
kbd1 at kbdmux0
51
md0: Malloc disk
52
interrupt uses mplock: swi_taskq
53
ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX  )
54
ACPI: XSDT 0x0000000007FF0030 00003C (v01 VBOX   VBOXXSDT 00000001 ASL  00000061)
55
ACPI: FACP 0x0000000007FF00F0 0000F4 (v04 VBOX   VBOXFACP 00000001 ASL  00000061)
56
ACPI: DSDT 0x0000000007FF0470 0021C8 (v02 VBOX   VBOXBIOS 00000002 INTL 20100528)
57
ACPI: FACS 0x0000000007FF0200 000040
58
ACPI: FACS 0x0000000007FF0200 000040
59
ACPI: APIC 0x0000000007FF0240 000054 (v02 VBOX   VBOXAPIC 00000001 ASL  00000061)
60
ACPI: SSDT 0x0000000007FF02A0 0001CC (v01 VBOX   VBOXCPUT 00000002 INTL 20100528)
61
cryptosoft0: <software crypto> on motherboard
62
aesni0: <AES-CBC,AES-XTS> on motherboard
63
padlock0: No ACE support.
64
rdrand0: <RdRand RNG> on motherboard
65
acpi0: <VBOX VBOXXSDT> on motherboard
66
ACPI: Executed 1 blocks of module-level executable AML code
67
ACPI: 2 ACPI AML tables successfully acquired and loaded
68
ACPI FADT: SCI testing interrupt mode ...
69
ACPI FADT: SCI select level/high
70
acpi0: Power Button (fixed)
71
acpi0: Sleep Button (fixed)
72
acpi_timer0 on acpi0
73
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
74
pci0: <ACPI PCI bus> on pcib0
75
isab0: <PCI-ISA bridge> at device 1.0 on pci0
76
isa0: <ISA bus> on isab0
77
atapci0: <Intel PIIX4 UDMA33 controller> port 0xd000-0xd00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 1.1 on pci0
78
ata0: <ATA channel 0> on atapci0
79
interrupt uses mplock: ata0
80
ad0: 16384MB <VBOX HARDDISK 1.0> at ata0-master UDMA33
81
ata1: <ATA channel 1> on atapci0
82
interrupt uses mplock: ata1
83
acd0: DVDROM <VBOX CD-ROM/1.0> at ata1-master UDMA33
84
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe0ffffff irq 18 at device 2.0 on pci0
85
vgapci0: Boot video device
86
em0: <Intel(R) PRO/1000 Network Connection 82540EM 7.4.2> port 0xd010-0xd017 mem 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0
87
em0: MAC address: 08:00:27:b2:31:f4
88
pci0: <base peripheral> (vendor 0x80ee, dev 0xcafe) at device 4.0 irq 20
89
ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0
90
usbus0 on ohci0
91
pci0: <bridge> (vendor 0x8086, dev 0x7113) at device 7.0 irq 23
92
usbus0: 12Mbps Full Speed USB v1.0
93
ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem 0xf0805000-0xf0805fff irq 19 at device 11.0 on pci0
94
usbus1: EHCI version 1.0
95
ugen0.1: <Apple> at usbus0
96
uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
97
usbus1 on ehci0
98
battery0: <ACPI Control Method Battery> on acpi0
99
acpi_acad0: <AC Adapter> on acpi0
100
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
101
atkbd0: <AT Keyboard> irq 1 on atkbdc0
102
kbd0 at atkbd0
103
usbus1: 480Mbps High Speed USB v2.0
104
ugen1.1: <Intel> at usbus1
105
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
106
psm0: <PS/2 Mouse> irq 12 on atkbdc0
107
interrupt uses mplock: psm0
108
psm0: model IntelliMouse Explorer, device ID 4
109
cpu0: <ACPI CPU> on acpi0
110
cpu_cst0: <ACPI CPU C-State> on cpu0
111
ACPI: Enabled 2 GPEs in block 00 to 07
112
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xe2000-0xe2fff on isa0
113
pmtimer0 on isa0
114
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
115
sc0: <System console> at flags 0x500 on isa0
116
sc0: VGA <16 virtual consoles, flags=0x300>
117
sio0: can't drain, serial port might not exist, disabling
118
sio1: can't drain, serial port might not exist, disabling
119
hpt27xx: no controller detected.
120
CAM: Configuring 2 busses
121
uhub0: 12 ports with 12 removable, self powered
122
CAM: finished configuring all busses
123
cd0 at ata1 bus 0 target 0 lun 0
124
cd0: <VBOX CD-ROM 1.0> Removable CD-ROM SCSI-0 device 
125
cd0: 33.000MB/s transfers
126
cd0: Attempt to query device size failed: NOT READY, Medium not present
127
uhub1: 12 ports with 12 removable, self powered
128
no B_DEVMAGIC (bootdev=0)
129
Mounting root from ufs:serno/VB72453a18-bfd99f8c.s1d
130
DMA space used: 160k, remaining available: 1248k
131
Mounting devfs
132
<118>Loading configuration files.
133
<118>Loading devfs rules:
134
<118> /etc/defaults/devfs.conf
135
<118>.
136
<118>Initializing random seed: 
137
<118>done. 
138
<118>dumpon: crash dumps to /dev/ad0s1b (21, 0x20001)
139
<118>Starting file system checks:
140
<118>/dev/serno/VB72453a18-bfd99f8c.s1d: 
141
<118>FILESYSTEM CLEAN; SKIPPING CHECKS
142
<118>/dev/serno/VB72453a18-bfd99f8c.s1d: 
143
<118>clean, 11841745 free 
144
<118>(2793 frags, 1479869 blocks, 0.0% fragmentation)
145
<118>/dev/serno/VB72453a18-bfd99f8c.s1a: 
146
<118>FILESYSTEM CLEAN; SKIPPING CHECKS
147
<118>/dev/serno/VB72453a18-bfd99f8c.s1a: 
148
<118>clean, 438163 free 
149
<118>(155 frags, 54751 blocks, 0.0% fragmentation)
150
<118>Setting hostname: foobar.localdomain.
151
<118>starting dhclient on em0
152
<118>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
153
<118>	options=43<RXCSUM,TXCSUM,RSS>
154
<118>	inet 127.0.0.1 netmask 0xff000000 
155
<118>	inet6 ::1 prefixlen 128 
156
<118>	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
157
<118>em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
158
<118>	options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
159
<118>	inet6 fe80::a00:27ff:feb2:31f4%em0 prefixlen 64 tentative scopeid 0x1 
160
<118>	ether 08:00:27:b2:31:f4
161
<118>	media: Ethernet autoselect <rxpause> (none)
162
<118>	status: no carrier
163
<118>Additional routing options:
164
<118>.
165
<118>Starting devd.
166
<118>Mounting NFS file systems:
167
<118>.
168
<118>Building databases...
169
<118>Starting syslogd.
170
<118>Aug 15 02:03:57 foobar syslogd: kernel boot file is /boot/kernel/kernel
171
<118>No core dumps found.
172
swap low/high-water marks set to 16760/25140
173
<118>swapon: adding /dev/serno/VB72453a18-bfd99f8c.s1b as swap device
174
<118>ELF ldconfig path: /lib /usr/lib /usr/local/lib /usr/local/libdata/ldconfig/perl5
175
<118>Id  Refs Name
176
<118>208    1 nfs
177
<118>NFS CLIENT:
178
<118> access_cache_timeout=5
179
<118> neg_cache_timeout=3
180
<118>.
181
<118>Starting local daemons:
182
<118>.
183
<118>Updating motd.
184
<118>Configuring syscons:
185
<118> blanktime
186
<118>.
187
<118>Starting sshd.
188
<118>sendmail_submit: /etc/mail/aliases.db not present, generating
189
<118>newaliases: no recipients
190
<118>sendmail_clientmqueue: /etc/mail/aliases.db not present, generating
191
<118>newaliases: no recipients
192
<118>Starting cron.
193
<118>Local package initialization:
194
<118>.
195
<118>Additional TCP options:
196
<118>.
197
<118>
198
<118>Tue Aug 15 02:03:58 HKT 2017
199
<118>Aug 15 02:04:10 foobar login: ROOT LOGIN (root) ON ttyv0
200

    
201

    
202
Fatal trap 18: integer divide fault while in kernel mode
203
cpuid = 0; lapic->id = 00000000
204
instruction pointer	= 0x8:0xffffffff82c009c8
205
stack pointer	        = 0x10:0xffffff8051db31b8
206
frame pointer	        = 0x10:0xffffff8051db32f8
207
code segment		= base 0x0, limit 0xfffff, type 0x1b
208
			= DPL 0, pres 1, long 1, def32 0, gran 1
209
processor eflags	= interrupt enabled, resume, IOPL = 0
210
current process		= 963
211
current thread          = pri 6 
212
kernel: type 18 trap, code=0
213

    
214
CPU0 stopping CPUs: 0x00000000
215
 stopped
216
Physical memory: 87 MB
217
Dumping 1106 MB: 1091 1075 1059 1043 1027 1011 995 979 963 947 931 915 899 883 867 851 835 819 803 787 771 755 739 723 707 691 675 659 643 627 611 595 579 563 547 531 515 499 483 467 451 435 419 403 387 371 355 339 323 307 291 275 259 243 227 211 195 179 163 147 131 115 99 83 67 51 35 19 3
218

    
219
[New kernel syncer14]
220
[New pid 963/0, mount_ntfs]
221
[New pid 962/0, mount]
222
[New pid 960/0, sh]
223
[New pid 952/0, csh]
224
[New pid 500/0, syslogd]
225
[New pid 410/0, dhclient]
226
[New pid 941/0, getty]
227
[New pid 940/0, getty]
228
[New pid 939/0, getty]
229
[New pid 938/0, getty]
230
[New pid 937/0, getty]
231
[New pid 935/0, getty]
232
[New pid 936/0, getty]
233
[New pid 934/0, login]
234
[New kernel syscons7]
235
[New kernel syscons6]
236
[New kernel syscons5]
237
[New kernel syscons4]
238
[New kernel syscons3]
239
[New kernel syscons2]
240
[New kernel syscons1]
241
[New pid 840/0, cron]
242
[New pid 817/0, sshd]
243
[New pid 435/0, devd]
244
[New pid 288/0, dhclient]
245
[New pid 287/0, dhclient]
246
[New kernel syncer13]
247
[New kernel syncer12]
248
[New kernel syncer5]
249
[New kernel syscons255]
250
[New kernel syncer4]
251
[New pid 1/0, init]
252
[New kernel consttyd]
253
[New kernel vnlru]
254
[New kernel bufdaemon_hw]
255
[New kernel bufdaemon]
256
[New kernel vmdaemon]
257
[New kernel swapcached]
258
[New kernel pagedaemon]
259
[New kernel syncer3]
260
[New kernel unp taskq]
261
[New kernel random]
262
[New kernel syncer2]
263
[New kernel syncer1]
264
[New kernel ithread12 0]
265
[New kernel ithread1 0]
266
[New kernel usbus1]
267
[New kernel usbus1]
268
[New kernel usbus1]
269
[New kernel usbus1]
270
[New kernel usbus0]
271
[New kernel usbus0]
272
[New kernel usbus0]
273
[New kernel usbus0]
274
[New kernel ithread22 0]
275
[New kernel ithread19 0]
276
[New kernel ithread15 0]
277
[New kernel ithread14 0]
278
[New kernel ithread9 0]
279
[New kernel acpi_task]
280
[New kernel ithread197 0]
281
[New kernel ithread195 0]
282
[New kernel xpt_thrd]
283
[New kernel crypto returns]
284
[New kernel crypto 0]
285
[New kernel firmware taskq]
286
[New kernel sensors 0]
287
[New kernel taskq_cpu 0]
288
[New kernel ifnet 0]
289
[New kernel disk_msg_core]
290
[New kernel netisr_cpu 0]
291
[New kernel devfs_msg_core]
292
[New kernel dsched 0]
293
[New kernel usched 0]
294
[New kernel usched 0]
295
[New kernel ithread196 0]
296
[New kernel ithreadE 0]
297
[New kernel softclock 0]
298
[New pid 0/0, swapper]
299
[New kernel idle_0]
300
Reading symbols from /boot/kernel/acpi.ko...(no debugging symbols found)...done.
301
Loaded symbols for /boot/kernel/acpi.ko
302
Reading symbols from /boot/kernel/ehci.ko...(no debugging symbols found)...done.
303
Loaded symbols for /boot/kernel/ehci.ko
304
Reading symbols from /boot/kernel/xhci.ko...(no debugging symbols found)...done.
305
Loaded symbols for /boot/kernel/xhci.ko
306
Reading symbols from /boot/kernel/ntfs.ko...(no debugging symbols found)...done.
307
Loaded symbols for /boot/kernel/ntfs.ko
308
_get_mycpu () at ./machine/thread.h:69
309
69	./machine/thread.h: No such file or directory.
310
(kgdb) bt
311
#0  _get_mycpu () at ./machine/thread.h:69
312
#1  md_dumpsys (di=0xffffffff81312f20 <dumper>) at /home/justin/release/4_8/sys/platform/pc64/x86_64/dump_machdep.c:275
313
#2  0xffffffff802b5ee8 in db_fncall (dummy1=<optimized out>, dummy2=<optimized out>, dummy3=<optimized out>, dummy4=<optimized out>)
314
    at /home/justin/release/4_8/sys/ddb/db_command.c:558
315
#3  0xffffffff802b63a4 in db_command (last_cmdp=0xffffffff812c7370 <db_last_command>, cmd_table=<optimized out>, aux_cmd_tablep=<optimized out>, 
316
    aux_cmd_tablep_end=<optimized out>) at /home/justin/release/4_8/sys/ddb/db_command.c:400
317
#4  db_command_loop () at /home/justin/release/4_8/sys/ddb/db_command.c:467
318
#5  0xffffffff802b9742 in db_trap (type=type@entry=18, code=code@entry=0) at /home/justin/release/4_8/sys/ddb/db_trap.c:71
319
#6  0xffffffff80a54576 in kdb_trap (type=type@entry=18, code=code@entry=0, regs=regs@entry=0xffffff8051db30e8)
320
    at /home/justin/release/4_8/sys/platform/pc64/x86_64/db_interface.c:176
321
#7  0xffffffff80a5afaf in trap_fatal (frame=frame@entry=0xffffff8051db30e8, eva=eva@entry=0)
322
    at /home/justin/release/4_8/sys/platform/pc64/x86_64/trap.c:1018
323
#8  0xffffffff80a5b89a in trap (frame=0xffffff8051db30e8) at /home/justin/release/4_8/sys/platform/pc64/x86_64/trap.c:746
324
#9  0xffffffff80a4403f in calltrap () at /home/justin/release/4_8/sys/platform/pc64/x86_64/exception.S:188
325
#10 0xffffffff82c009c8 in ntfs_mountfs.isra.0 () from /boot/kernel/ntfs.ko
326
#11 0xffffffff82c00df1 in ntfs_mount () from /boot/kernel/ntfs.ko
327
#12 0xffffffff8067cefa in vfs_mount (mp=0x0, path=0xffffff8051aa0e60 "", data=0xffffff804eb1ddc0 "", cred=0xffffff8051db3390)
328
    at /home/justin/release/4_8/sys/kern/vfs_vfsops.c:93
329
#13 0xffffffff806729fd in sys_mount (uap=<optimized out>) at /home/justin/release/4_8/sys/kern/vfs_syscalls.c:380
330
#14 0xffffffff80a5c786 in syscall2 (frame=0xffffff8051db39f8) at /home/justin/release/4_8/sys/platform/pc64/x86_64/trap.c:1228
331
#15 0xffffffff80a4428b in Xfast_syscall () at /home/justin/release/4_8/sys/platform/pc64/x86_64/exception.S:323
332
#16 0x000000000000002b in ?? ()
333
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
334
(kgdb)