netbsd build error (6)

0 views
Skip to first unread message

syzbot

unread,
Jun 8, 2019, 5:37:06 AM6/8/19
to syzkaller-...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: e2f4ead1 deduplicate the elf auxv builder code, welcome to..
git tree: netbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=17d1d3fea00000
dashboard link: https://syzkaller.appspot.com/bug?extid=0e96196bd41c38298de2

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+0e9619...@syzkaller.appspotmail.com

/syzkaller/managers/netbsd/kernel/tools/binutils/../../external/gpl3/binutils/dist/configure:
7993: ./configure.lineno:
/syzkaller/managers/netbsd/kernel/external/gpl3/binutils/dist/missing:
Permission
denied

---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

Siddharth Muralee

unread,
Jun 12, 2019, 12:25:26 AM6/12/19
to syzbot, Dmitry Vyukov, syzkaller-netbsd-bugs
Hey Dmitry,
 I have tested the tools build on Linux and OSx and it works perfectly fine for me. If it doesn't work again after a clean restart could you tell me the distro that you are using and some relevant details so that I can try to reproduce it?

--
You received this message because you are subscribed to the Google Groups "syzkaller-netbsd-bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-netbsd...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-netbsd-bugs/000000000000a7bc51058accb04f%40google.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards, 
  Siddharth M
  Third Year B.Tech (CSE) Student,
  Amrita School of Engineering, Kollam
  Blog 
---------------------------------------
“Most people get ahead during the time that others waste."

Dmitry Vyukov

unread,
Jun 12, 2019, 4:06:56 AM6/12/19
to Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
On Wed, Jun 12, 2019 at 6:25 AM Siddharth Muralee
<siddhart...@gmail.com> wrote:
>
> Hey Dmitry,
> I have tested the tools build on Linux and OSx and it works perfectly fine for me. If it doesn't work again after a clean restart could you tell me the distro that you are using and some relevant details so that I can try to reproduce it?

You may see on the dashboard, if it still happens or not. Both build
failures and the last successful kernel build are available there.
The distro is Ubuntu 16.04:
Linux syzbot 4.15.0-1027-gcp #28~16.04.1-Ubuntu SMP Fri Jan 18
10:10:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Siddharth Muralee

unread,
Jun 12, 2019, 4:12:34 AM6/12/19
to Dmitry Vyukov, syzbot, syzkaller-netbsd-bugs
Why does the commit for NetBSD kernel in syzbot show c228e6b1? it also shows that the freshness is 14d. Could this be the cause of the kernel build failing? Or is it just not showing it properly?
 

Dmitry Vyukov

unread,
Jun 12, 2019, 4:29:55 AM6/12/19
to Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
On Wed, Jun 12, 2019 at 10:12 AM Siddharth Muralee
<siddhart...@gmail.com> wrote:
>
> Why does the commit for NetBSD kernel in syzbot show c228e6b1? it also shows that the freshness is 14d. Could this be the cause of the kernel build failing? Or is it just not showing it properly?

That was the last successful build (kernel and image build succeeded,
image testing succeeded).

Siddharth Muralee

unread,
Jun 16, 2019, 4:27:07 AM6/16/19
to Dmitry Vyukov, syzbot, syzkaller-netbsd-bugs
Hey Dmitry,
  Can you please try to clean build the tools directory - I think the issue is happening due to the fact that we are building it again with the tools dir build without -V MKCTF=no. Right now we shouldn't be building libctf during tools build.

Dmitry Vyukov

unread,
Jun 17, 2019, 7:49:04 AM6/17/19
to Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
On Sun, Jun 16, 2019 at 10:27 AM Siddharth Muralee
<siddhart...@gmail.com> wrote:
>
> Hey Dmitry,
> Can you please try to clean build the tools directory - I think the issue is happening due to the fact that we are building it again with the tools dir build without -V MKCTF=no. Right now we shouldn't be building libctf during tools build.

I did "git clean -fd" in the netbsd checkout dir.

Dmitry Vyukov

unread,
Jun 17, 2019, 9:25:58 AM6/17/19
to Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
On Mon, Jun 17, 2019 at 1:48 PM Dmitry Vyukov <dvy...@google.com> wrote:
>
> On Sun, Jun 16, 2019 at 10:27 AM Siddharth Muralee
> <siddhart...@gmail.com> wrote:
> >
> > Hey Dmitry,
> > Can you please try to clean build the tools directory - I think the issue is happening due to the fact that we are building it again with the tools dir build without -V MKCTF=no. Right now we shouldn't be building libctf during tools build.
>
> I did "git clean -fd" in the netbsd checkout dir.

Also run "./build.sh -m amd64 -U -j16 cleandir" just now (git clean
does not seem to remove ignored files).

Kamil Rytarowski

unread,
Jun 17, 2019, 9:42:49 AM6/17/19
to Dmitry Vyukov, Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
On 17.06.2019 15:25, 'Dmitry Vyukov' via syzkaller-netbsd-bugs wrote:
> On Mon, Jun 17, 2019 at 1:48 PM Dmitry Vyukov <dvy...@google.com> wrote:
>>
>> On Sun, Jun 16, 2019 at 10:27 AM Siddharth Muralee
>> <siddhart...@gmail.com> wrote:
>>>
>>> Hey Dmitry,
>>> Can you please try to clean build the tools directory - I think the issue is happening due to the fact that we are building it again with the tools dir build without -V MKCTF=no. Right now we shouldn't be building libctf during tools build.
>>
>> I did "git clean -fd" in the netbsd checkout dir.
>
> Also run "./build.sh -m amd64 -U -j16 cleandir" just now (git clean
> does not seem to remove ignored files).
>

libctf shouldn't be built for MKCTF=no.

Does "git clean -xdf" work better?

I will try to add glue compat layer for missing defines on this version
of Ubuntu.

signature.asc

Dmitry Vyukov

unread,
Jun 17, 2019, 10:33:17 AM6/17/19
to Kamil Rytarowski, Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
On Mon, Jun 17, 2019 at 3:42 PM Kamil Rytarowski <n...@gmx.com> wrote:
>
> On 17.06.2019 15:25, 'Dmitry Vyukov' via syzkaller-netbsd-bugs wrote:
> > On Mon, Jun 17, 2019 at 1:48 PM Dmitry Vyukov <dvy...@google.com> wrote:
> >>
> >> On Sun, Jun 16, 2019 at 10:27 AM Siddharth Muralee
> >> <siddhart...@gmail.com> wrote:
> >>>
> >>> Hey Dmitry,
> >>> Can you please try to clean build the tools directory - I think the issue is happening due to the fact that we are building it again with the tools dir build without -V MKCTF=no. Right now we shouldn't be building libctf during tools build.
> >>
> >> I did "git clean -fd" in the netbsd checkout dir.
> >
> > Also run "./build.sh -m amd64 -U -j16 cleandir" just now (git clean
> > does not seem to remove ignored files).
> >
>
> libctf shouldn't be built for MKCTF=no.
>
> Does "git clean -xdf" work better?

-x would probably helped, but I did not know about it this morning :)
will try -xdf next time

Kamil Rytarowski

unread,
Jun 17, 2019, 11:23:41 AM6/17/19
to Dmitry Vyukov, Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
Does it work now?

I'm not sure if I am looking at the right result here:

https://syzkaller.appspot.com/bug?id=aeb6208e4b7685b1e145816bca7f022019fb575b


/syzkaller/managers/netbsd/kernel/tools/binutils/../../external/gpl3/binutils/dist/configure:
7993: ./configure.lineno:
/syzkaller/managers/netbsd/kernel/external/gpl3/binutils/dist/missing:
Permission denied


Please install makeinfo (texinfo 4.7 or newer) and retry.

signature.asc

Dmitry Vyukov

unread,
Jun 18, 2019, 6:44:12 AM6/18/19
to Kamil Rytarowski, Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
The build is now failing with a different error, sort crashes by time here:
https://syzkaller.appspot.com/bug?extid=0e96196bd41c38298de2
Probably need to close this one so that new build errors don't pile up.

Kamil Rytarowski

unread,
Jun 18, 2019, 11:46:29 PM6/18/19
to Dmitry Vyukov, Siddharth Muralee, syzbot, syzkaller-netbsd-bugs
I can see the same issue with sys/uio.h.

I've committed a patch with a fallback for systems without the needed enums.

The code should land the GitHub mirror withing few hours. Please cleanup
the local dir and try again.

signature.asc

Maxime Villard

unread,
Jun 22, 2019, 1:38:12 AM6/22/19
to syzbot, syzkaller-...@googlegroups.com
#syz invalid
Reply all
Reply to author
Forward
0 new messages