Fatal trap 12 booting FreeBSD-CURRENT via isboot kernel module.

John Nielsen lists at jnielsen.net
Tue Feb 6 22:02:26 UTC 2018


> On Feb 6, 2018, at 11:50 AM, Ian Lepore <ian at FreeBSD.org> wrote:
> 
> On Tue, 2018-02-06 at 11:33 -0700, John Nielsen wrote:
>> 
>> Apparently sending a NULL socket pointer to ifioctl hasn't worked
>> since this commit in 2011:
>> https://svnweb.freebsd.org/base?view=revision&revision=218757
>> 
>> So I'm going to add this patch to the port unconditionally once it
>> works.
>> 
>> Unfortunately, I can't compile the port with either my patch below or
>> your original replacement version of isboot_ifup(). :( Did you make
>> other changes? Here's the error I'm getting:
>> 
>> --- isboot.o ---
>> isboot.c:425:53: error: incomplete definition of type 'struct thread'
>>     error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td);
>>                                                   ~~^
>> /usr/src/sys/sys/systm.h:185:8: note: forward declaration of 'struct
>> thread'
>> struct thread;
>>        ^
>> 1 error generated.
>> 
> 
> Try adding #include <sys/proc.h> if it's not already in the list.  It
> may be that that file got included via pollution from some other header
> file in the past and maybe now that has changed.
> 
> If you're already including sys/proc.h then I'm clueless.

Thanks Ian, that appears to work.

Maurizio, can you apply the attached patch to a clean ports tree and see if isboot-kmod will build and function properly for you? This is all the changes from this thread and the previous one. If you let me know it works I'll get the port updated.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: isboot_patch.txt
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20180206/efb15a53/attachment.txt>
-------------- next part --------------




More information about the freebsd-current mailing list