OSR Staff | Published: 24-Aug-04| Modified: 24-Aug-04
What Happened?
To understand this bugcheck code, it’s first necessary to understand what a "page fault" is. If you’re not completely sure you understand this concept, read the article So, Exactly What Is A Page Fault here at OSR Online.
The Windows Memory Manager reserves pre-defined ranges of kernel virtual address space for specific uses. Because the Windows operating system utilizes virtual memory, the Memory Manager does not necessarily assign physical memory to every possible kernel virtual
address within its pre-defined ranges. The Memory Manager knows that some of its kernel virtual address ranges are used for pageable memory, and other ranges are used for non-pageable memory. For example, the kernel virtual address space that is reserved for
use by the non-paged pool is (obviously) part of one of the Memory Manager’s non-pageable address spaces.
Whenever the Memory Manager detects a page fault (that is, a failure to translate a kernel virtual address to a physical address) in one of its pre-assigned address ranges in which the memory is supposed to be non-pageable, it halts system execution with a
PAGE_FAULT_IN_NONPAGED_AREA bugcheck.
The only thing that can cause one of these page faults is an inadvertent reference by a kernel mode component to an invalid memory address that just happens to correspond to one of the Memory Manager’s pre-assigned non-pageable address ranges. The most common
reason for this bugcheck is a driver de-referencing a bad pointer.
There are basically innumerable things that can happen that can lead to an invalid memory access, so tracking down these bugchecks can sometimes be particularly difficult. Some of the most common reasons for these bugchecks are buffer overruns and underruns,
or accessing of a completely bogus address.
Who Did It?
When analyzing these crash dumps, it is either immediately obvious who caused the problem or it can take some serious detective work. The bugcheck parameters for this particular code are the invalid address that was accessed, whether the access was a read or
a write, and the address of the instruction that caused the invalid access. Here are some things to think about when analyzing these dumps:
1) Why is the address bad?
a) Was it previously freed? The !pool WinDBG command can be helpful in determining this.
b) Is this potentially a buffer underrun? A buffer overrun? To determine this, you will need to look at how the address is being used. If, for example, the address is being used in a copy operation, starting your analysis believing it to be a buffer overrun
might not be a bad assumption (but just don’t forget that it might not be the right assumption!).
c) Is the address just completely bogus? The !pool command is also useful here, as is the !pte command
2) Where did the address being accessed come from?
3) At which point did the address become bad? Was it previously used successfully by another component?
Using the information gathered from the above steps you can usually begin to get a better idea as to where things went wrong.
How Should I Fix It?
Using Driver Verifier and the checked build of Windows should allow you to better pinpoint the offending driver in the system. If the driver is not a driver that you have any control over, the only available option is disabling the driver until a fixed version
is available.
Related WinDBG Commands
· !pte
· !pool
Related Windows O/S Variables
· nt!MmPagedPoolStart
· nt!MmPagedPoolEnd
· nt!MmNonPagedPoolStart
· nt!MmNonPagedPoolEnd
An Example
Here’s an example that puts the above guidelines to use and tracks down a misbehaving driver. For clarity, the WinDBG output in this example has been stripped down to the parts important to our discussion.
PAGE_FAULT_IN_NONPAGED_AREA (50)
Invalid system memory was referenced. This cannot be protected by try-except,
it must be protected by a Probe. Typically the address is just plain bad or it
is pointing at freed memory.
Arguments:
Arg1: ff8b6000, memory referenced.
Arg2: 00000000, value 0 = read operation, 1 = write operation.
Arg3: 804238fd, If non-zero, the instruction address which referenced the bad memory address.
Arg4: 00000000, (reserved)
...
READ_ADDRESS: ff8b6000 Nonpaged pool
FAULTING_IP:
nt!IopCompleteRequest+ab
804238fd f3a5 rep movsd
...
STACK_TEXT:
bed4ec7c 804b06e7 811bba08 bed4ecc4 bed4ecb8 nt!IopCompleteRequest+0xab
bed4eca4 804ac360 8143e4d0 80000005 81158f88 nt!IopSynchronousServiceTail+0x8f
bed4ed48 80466389 0000084c 0155f8c8 0155f8b0 nt!NtQueryVolumeInformationFile+0x320
bed4ed48 77f8e593 0000084c 0155f8c8 0155f8b0 nt!KiSystemService+0xc9
0155f870 767ebb9f 0000084c 0155f8c8 0155f8b0 ntdll!ZwQueryVolumeInformationFile+0xb
OK, so our system bugchecked because we tried to read address 0xFF8B6000, presumably while trying to complete an IRP_MJ_QUERY_VOLUME_INFORMATION IRP. The address looks reasonable and the bugcheck info is telling me that the address is in the nonpaged address
space, so let’s see what the debugger says about the address:
0: kd> !pool ff8b6000
ff8b6000: Unable to get contents of pool block
That wasn’t much help, but because the !pool command didn’t tell me that the address had been freed, I’m going to assume that we’re not dealing with a memory access to freed pool. This may be a completely invalid assumption, but it allows me to move on for
the moment.
0: kd> !pte ff8b6000
FF8B6000 - PDE at C0300FF8 PTE at C03FE2D8
contains 01036963 contains 7F8BD000
pfn 1036 G-DA--KWV not valid
PageFile 0
Offset 7f8bd
Protect: 0
The page table entry for the nonpaged address that we accessed is invalid, which is why the system bugchecked. The faulting IP from the bugcheck info is a rep movsd instruction, which is a copy instruction on the x86. So, I’m going to assume for the time being
that this bugcheck occurred because of a buffer overrun. With that info in hand, I can move on to step two and figure out where the address came from.
Looking in the DDK documentation, I see that IRP_MJ_QUERY_VOLUME_INFORMATION IRPs all use METHOD_BUFFERED. Therefore, when I find the IRP that is being completed here, its data buffer is going to be at Irp->AssociatedIrp.SystemBuffer. Now, unfortunately, the
last two calls on the call stack that I’ve been given aren’t documented. This means that I have no idea what their parameters are and so I have no idea where to find the IRP. Because of that, I have to find the IRP the hard way. Dumping all of the memory contents
starting at the last frame’s EBP (0xBED4EC7C) and executing the !irp command on anything that looks like an IRP eventually leads to success:
0: kd> !irp 811bb9c8
Irp is active with 1 stacks 3 is current (= 0x811bba80)
No Mdl System buffer = ff8b5fe8 Thread 813ad980: Irp is completed.
cmd flg cl Device File Completion-Context
[ a, 0] 0 0 8143e4d0 00000000 00000000-00000000
\Driver\
Args: 00000000 00000000 00000000 00000000
That system buffer address looks awfully suspect in terms of the address that generated the blue screen, so let’s see what we can find out about it:
0: kd> !pool ff8b5fe8
...
*ff8b5fe0 size: 20 previous size: 20 (Allocated) Process: 81457020
0: kd> ? ff8b5fe0+0x20
Evaluate expression: -7643136 = ff8b6000
I can see here that the allocation that the system buffer address lies in is valid from 0xFF8B5FE0 up to but not including 0xFF8B6000, the address that killed us. Taking a look at the completion status of the IRP:
0: kd> dt nt!_IRP 811bb9c8 –r
...
+0x018 IoStatus :
+0x000 Status : 0x80000005
+0x000 Pointer : 0x80000005
+0x004 Information : 0x1c
...
Aha! The offending driver in this case has returned STATUS_BUFFER_OVERFLOW with the Information field set to the number of bytes needed to complete this request. Unfortunately, what this driver writer didn’t realize was that STATUS_BUFFER_OVERFLOW is simply
an informational message and the I/O Manager will go ahead and copy the number of bytes specified by Information out of the system buffer and into the user’s buffer (remember, these IRPs are all METHOD_BUFFERED). Note that these are not the same semantics
that you get when returning the error code STATUS_BUFFER_TOO_SMALL, which is what the developer meant to return. If a driver completes an IRP with that code, the user is returned the number of bytes needed to complete the request but no data is copied.
So, because of this mishap, when the IRP was completed with IoCompleteRequest the I/O Manager attempted to copy 0x1C bytes of data starting at address 0xFF8B5FE8 into the user’s buffer, which led to a buffer overrun and a PAGE_FAULT_IN_NONPAGED_AREA bugcheck.
相关推荐
SIMPLIS实战:从零构建理想BUCK电路,精准计算与POP稳态分析
本文详细介绍了如何使用SIMPLIS软件从零开始构建并仿真一个理想的BUCK降压电路。通过设定关键参数、计算理想器件值,并搭建仿真模型,文章重点演示了暂态仿真以观察电路上电过程,并深入讲解了高效的POP(周期性工作点)稳态分析技术,帮助工程师快速验证设计、评估稳态性能,从而加速电源设计迭代。
计算机蓝屏分析报告,Win7 又蓝屏了 附上分析报告,高手帮我看看!
Win7 又蓝屏了 附上分析报告,高手帮我看看!Microsoft (R) Windows Debugger Version 6.11.0001.404 AMD64Copyright (c) Microsoft Corporation. All rights reserved.Loading Dump File [C:\Users\无心圆\Desktop\090910-34039-01.dmp]M...
java对接海康实现页面实时播放和回放
前言:之前已经写过一篇关于视频的文章,因为觉得有很多优化的地方,也谢谢同行们加我微信跟我提了一些需求和意见,所以在过年的假期重新写了一个比较能扩张的版本。 上一个版本的连接:https://blog.csdn.net/weixin_45848110/article/details/119363602 与之前的版本不同之处: 1.不需要安装ffmpeg 2.不需要安装nginx 3.直接运行jar即可 4.之前是完全脱离海康sdk,回放的录像是保存到本地服务,现在是直接在海康硬盘录像机获取录像回放 5.实时播
沙盘Sandboxie 原理分析
Sandboxie. Process isolation with kernel hooks. May 23rd, 2011 Posted in Uncategorized Write comment 1. Introduction: Sandboxie
警惕!数字签名伪造的攻防演练:用SigThief克隆证书的真实测试(Windows环境)
本文深入探讨了Windows环境下数字签名伪造的攻防技术,详细介绍了使用SigThief工具进行签名提取与克隆的实战步骤。通过真实测试案例,揭示了数字签名安全机制的潜在漏洞,并提供了有效的防御策略和检测技术,帮助安全人员提升系统防护能力。
【低空经济】无人机充电站设计方案
随着无人机技术的快速发展和广泛应用,其在物流、农业、巡检、救援等领域的应用日益普及。然而,无人机的续航能力一直是限制其大规模应用的关键因素之一。为了解决这一问题,无人机充电站的设计与建设显得尤为重要。本项目旨在设计一套高效、智能、可扩展的无人机充电站系统,以满足不同场景下无人机的充电需求,提升其作业效率和应用范围。无人机充电站的设计将围绕以下几个核心目标展开:首先,充电站应具备快速充电能力,以减少无人机的停机时间,提高作业效率;
蓝屏page_fault_in_nonpaged_area的解决办法
But,没有but了,完美打开Windows,就这样折磨了我一个晚上的问题解决了。这时候点击进入疑难解答-高级选项-更多-启动设置,然后直接重启就行了,重启后按f4就进入了安全模式,安全模式里对虚拟内存自定义改了好几次,很遗憾的是失败了。拆开后盖,拔插了内存一下,怀着期待而激动的心情按下了开机键————熟悉的“你的电脑遇到问题,需要重启”。用户在操作电脑的过程中,难免会遇到蓝屏问题,最近就有用户遇到电脑蓝屏重启无限循环,提示代码page_fault_in_nonpaged_area,这要如何解决呢?
如何为 Claude Code 配置代理与网络环境
那么大概率不是软件问题,而是。因为 Claude Code 是运行在终端里的,不是浏览器。
Windbg核心调试之dump分析
文章标题:Windbg核心调试之dump分析调试环境:winxp sp2+windbg ver:6.6.0007.5+vmware 5.5.2附件:点击下载一.Dump文件的产生,意义和类型 当系统发生错误是,最常见的就是蓝屏(Blue screen),这时就会在系统目录下产生一个Dump文件,如MEMORY.DMP 。这个文件的主要意义在于分析系统错误发生的原因,以作出解决的方法。
月度补丁如何落地?Claude Code 在商业项目中实现版本追新的 4 步更新机制
揭示 Claude Code 月度补丁实为上下文感知能力的结构性重置,而非平滑模型升级;提出四步工程化更新机制,首步通过 CLAUDE.md 定义可量化的 SQL/HTTP/代码风格语义指纹,结合 CLI 工具采集基线指标,实现补丁变更的可测、可比、可控。
UDF学习(四)FLUENT UDF-DEFINE_PROFILE宏
利用DEFINE_PROFLILE可以指定以下边界或计算域信息:DEFINE_PROFILE(name,t,i)//既可以用。
终止代码 page_fault_in_nonpaged_area
终止代码 page_fault_in_nonpaged_area 电脑如果出现了“Page Fault In Nonpaged Area”错误,说明电脑的虚拟内存分页文件出现了问题,解决方法如下: 第一步:用鼠标右键单击桌面上的“计算机”图标,在弹出的快捷菜单中选择“属性”。 第二步:单击系统属性窗口里的“高级”标签。 第三步:再单击性能旁边的“设置”按钮。 第四步:出来的性...
BMD101传感器协议解析与STM32实现(LCD显示波形)
1 前言 BMD101传感器是神念科技开发的心电传感器。目前有一些商家开发了BMD101传感器模块,基本上都是利用蓝牙直接传输数据到PC或手机端。而本文介绍通过串口将数据传送给单片机,并在单片机上完成数据解析和心电波形LCD显示的功能。 2 通信协议解读 BMD101 通过 UART 接口通信。这是一个标准的 UART 接口,定义为 1 个起始位,8 个数据位,1 停止位格式,波特率 57600。 串口输出的数据包格式如下: 包括Header(帧头)、data payload(数据有效载荷)、CRC校验
解决page_fault_in_nonpaged_area
"PAGE_FAULT_IN_NONPAGED_AREA"是一个常见的蓝屏错误,可能由硬件故障、驱动程序问题或错误的内存访问引起。本文介绍了一些常见解决方法,包括检查硬件问题、更新驱动程序、禁用过时或冲突的驱动程序以及系统恢复。此外,我们还提到了一些故障排除工具,可以帮助你更好地诊断和解决问题。希望本文对你解决"PAGE_FAULT_IN_NONPAGED_AREA"错误有所帮助。如果问题仍未解决,我们建议与专业人士进行进一步的咨询和支持。
lwip-2.0.3
lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。
ET2012新版免狗免安装绿色软件
ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,
Page Fault In Nonpaged Area
Page Fault In Nonpaged Area”(非分页区域页面错误)通常是一个严重的错误,它表明操作系统试图访问一个不存在或受保护的内存地址。
Statistics and Machine Learning Toolbox
Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具
蓝屏page fault in nonpaged area解决方法
1、在安全模式中卸载更新(此方法适用于Win10 1809之前的版本),进入安全模式后,打开控制面板下的程序子菜单,选择查看已安装的更新然后选择“安装时间”,按安装日期对更新进行排序以查看最新更新。3、当文中所提及的方法都无法解决时,建议重新安装系统以解决问题,可以尝试下载系统之家的ghost版系统,经过测试的系统版本引发的蓝屏问题几率更小。2、卸载操作完成后,进行重启操作,查看机台是否能正常进入系统,用以验证是否解决“系统因更新后发生蓝屏无法进入系统”。PS:如果是在使用过程中发生蓝屏怎么解决。
jdk-8u144-linux-x64.tar.gz.
该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包
解决蓝屏错误 “终止代码: PAGE_FAULT_IN_NONPAGED_AREA” 的详细指南
本文详细介绍了如何解决Windows系统中出现的“终止代码: PAGE_FAULT_IN_NONPAGED_AREA”蓝屏错误。文章首先解释了该错误的含义及可能原因,包括驱动程序问题、内存故障和硬盘错误。接着提供了具体的解决方案,包括检查最近的系统更改、更新驱动程序、执行内存诊断、运行磁盘检查工具、禁用有问题的系统服务或启动项、及使用系统还原。最后,建议进行硬件检查,如更换或重新插拔内存条及检查硬盘连接等。如果上述方法仍无法解决问题,建议寻求专业技术支持。通过这些详细步骤,用户可以有效排查并修复该错误,从而
蓝屏代码page_fault_in_nonpaged_area (0x00000050)
蓝屏代码page_fault_in_nonpaged_area (0x00000050) 方法一: 关闭快速启动 “Win+X”-电源选项-其他电源设置-选择电源按钮的功能-更改当期不可用的设置-去掉“启用快速启动(推荐)”前的对勾-保存修改-重启电脑 方法二:虚拟内存设置 1)桌面右击此电脑图标,在右键菜单选择 属性-选择 高级系统设置 选项 2)在打开的计算机属性窗口,选择【高级】选项卡,然后点击【性能】组的【设置】选项 3)在打开的【性能选项】界面,选择【高级】选项卡,然后点击【虚拟内存】组的【更改】
PAGE_FAULT_IN_NONPAGED_AREA解决
问题描述:源于从网上下载U盘专杀软件,不小心下载成了病毒,经过扫描之后,造成了硬盘坏道,最重要的是蓝屏了,竟然连U盘的PE系统都进不去。如下图所示: 具体走弯路的过程就不具体描述了,来说说正确的解决问题方法: (1)用大白菜自带的Diskgenius先把重要文件复制到U盘或者移动硬盘里。 (2)用HDDREG检测坏道(检测到了30个坏掉并修复),不一定非要全部扫完。本以为修复完坏掉就能正
蓝屏代码PAGE_FAULT_IN_NONPAGED_AREA的解决方法
蓝屏代码PAGE_FAULT_IN_NONPAGED_AREA的解决方法
page fault in nonpaged area 蓝屏_电脑蓝屏怎么办?5个常见的蓝屏代码及解决办法!...
很多朋友在使用电脑的过程中,都遇到过电脑蓝屏问题,有的蓝屏多重启几次就可以解决的,有的蓝屏可不是简单靠重启就能解决问题的,今天快启动小编就给大家分享一下常见的五种电脑蓝屏问题及其解决办法,希望能对你有帮助!首先,出现蓝屏先马上关闭电脑,先看看蓝屏最下方“系统提供的代码”。然后根据代码了解具体引起蓝屏原因,从而寻找解决办法。一、停止代码:OXOOOOOOOA说明文字:IRQL-NOT-LE...
page fault in nonpaged area 蓝屏_电脑蓝屏解决四个小技巧
点击蓝字关注我们很多朋友在使用电脑的过程中,都遇到过电脑蓝屏问题,有的蓝屏多重启几次就可以解决的,有的蓝屏可不是简单靠重启就能解决问题的,今天就给大家分享一下常见的四种电脑蓝屏问题及其解决办法,希望能对你有帮助!首先,出现蓝屏先马上关闭电脑,先看看蓝屏最下方“系统提供的代码”。然后根据代码了解具体引起蓝屏原因,从而寻找解决办法。一、停止代码:OXOOOOOOOA说明文字:IRQL-NOT...
win10 PAGE_FAULT_IN_NONPAGED_AREA 蓝屏
记录笔记本两次蓝屏。终止代码相同,都是:PAGE_FAULT_IN_NONPAGED_AREA。 Microsoft官方解答:错误检查0x50:PAGE_FAULT_IN_NONPAGED_AREA错误信息:PAGE_FAULT_IN_NONPAGED_AREA 解决方法:非故障区域的页面故障 - 停止0x00000050(已解决)win10蓝屏PAGE_FAULT_IN_NONPAGED_A...
400




被折叠的 条评论
为什么被折叠?



