Panic: GPF in kernel mode in fork_exit() (prior to FS mouont)

Bryan Drewery bdrewery at FreeBSD.org
Mon Nov 23 19:23:00 UTC 2015


On 11/23/2015 9:58 AM, Ed Maste wrote:
> On 23 November 2015 at 08:33, Konstantin Belousov <kostikbel at gmail.com> wrote:
>>
>> The revision 291171 changed layout of the dereferenced structure
>> sysentvec. Was your kernel build clean, or did you used -DNO_CLEAN or
>> similar option ? If yes, remove the kernel build directory and start
>> from scratch.
> 
> Every time removing the build directory and starting from scratch
> fixes an issue like this it's demonstrated a bug in our build's
> dependency tracking. Starting over is a fine workaround to make
> progress, but I'd also like to try to extract sufficient detail when
> this happens so that we can fix these cases.

My guess is that some files are missing proper dependencies on sysent.h.

For example these 2 would not rebuild. I think any consumers of these
headers which dereferenced the struct pointers would need to include
sys/sysent.h, but that this still may lead to a broken situation somewhere.

sys/sys/imgact.h:struct sysentvec;
sys/sys/ktrace.h:struct sysentvec;



-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20151123/42f6081f/attachment.bin>


More information about the freebsd-current mailing list