Re: buildworld fails with "Zero byte read from file, skipping rest of line"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/15/14 03:40, Gleb Smirnoff wrote: > Jeremie, > > On Wed, Jan 15, 2014 at 08:40:53AM +0100, Jeremie Le Hen wrote: > J> > J> ===> gnu/usr.bin/groff/src/libs/libgroff (all) > J> > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 3: warning: Zero byte read from file, skipping rest of line. > J> > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 3: Need an operator > J> > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 4: Need an operator > J> > J> make[6]: Fatal errors encountered -- cannot continue > J> > J> make[6]: stopped in /usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff > J> > J> *** [all] Error code 1 > J> > J> > J> > J> Typscript available here: > J> > J> http://people.freebsd.org/~jlh/typescript.buildworld.txt > J> > J> > J> > J> Any ideas? > J> > > J> > Can you try to reproduce this with unmapped I/O turned off in boot > loader? > J> > J> I've never heard of that. Can you please point me to the right > J> code/doc? > > In loader prompt: > > OK set vfs.unmapped_buf_allowed=0 > OK boot I'm seeing this on a non-virtualized laptop. Core Duo T2300 (1.8GHz Prescott architecture) Occurs randomly with either IDE or AHCI enabled on ICH-7 or on a USB external drive. Seems to only occur under heavy loads such as recompiling libreoffice, KDE or similar. Maybe a race condition in buffer management? imb -BEGIN PGP SIGNATURE- Version: GnuPG v1 iEYEARECAAYFAlL2j/kACgkQQv9rrgRC1JJADgCfb4sPmsA1F2HZm3HEJdCCtw43 u9AAoMpEmC94skFsLpCSWbulY1epWtk3 =aewU -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
-CURRENT on VBox is broken (was: Re: buildworld fails with "Zero byte read from file, skipping rest) of line"
On Wed, Jan 15, 2014 at 12:36:53PM +0100, Jeremie Le Hen wrote: > On Wed, Jan 15, 2014 at 12:40:35PM +0400, Gleb Smirnoff wrote: > > J> > > > J> > Can you try to reproduce this with unmapped I/O turned off in boot > > loader? > > J> > > J> I've never heard of that. Can you please point me to the right > > J> code/doc? > > > > In loader prompt: > > > > OK set vfs.unmapped_buf_allowed=0 > > OK boot > > No, unfortunately I still have the same problem without unmapped bufs. Ok, I'm back to try to try building world on VirtualBox with a recent -CURRENT. So, on a new workstation, I've installed a new VirtualBox, downloaded the latest i386 snapshot and installed it: FreeBSD-11.0-CURRENT-i386-20140203-r261419-disc1.iso Things started to be shady when I tried to build and install ports-mgmt/pkg: % install -s -o root -g wheel -m 555 pkg-static /usr/ports/ports-mgmt/pkg/work/stage/usr/local/sbin/pkg-static % strip: /usr/ports/ports-mgmt/pkg/work/stage/usr/local/sbin/pkg-static: File format not recognized So I tried to disallow VFS unmapped bufs as you advised me and this seems to have solved the problem (but maybe by chance, see below). Now I'm still running with vfs.unmapped_buf_allowed=0, I installed all the ports I need for basic development. I fetched freebsd-src from GitHub and tried to build world... And now it's started to be very wacky: it failed, multiple times, but never at the same place (I removed /usr/obj/* between each run). There is at least something consistent, it always fails with the same error ".../.depend: Zero byte read from file, skipping rest of line.": % [jlh@freefall ~/www/wacky_buildworld_on_vbox]$ grep -B 1 -A 5 'warning: Zero byte read from file' * % typescript.fail1.txt-TMP=_depend$$; sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.So:/' < .depend > $TMP; mv $TMP .depend % typescript.fail1.txt:make[4]: "/usr/obj/usr/src/kerberos5/lib/libheimbase/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail1.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libheimbase/.depend" line 3: Need an operator % typescript.fail1.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libheimbase/.depend" line 4: Need an operator % typescript.fail1.txt-make[4]: Fatal errors encountered -- cannot continue % typescript.fail1.txt-make[4]: stopped in /usr/src/kerberos5/lib/libheimbase % typescript.fail1.txt-*** Error code 1 % -- % typescript.fail2.txt-TMP=_depend$$; sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.So:/' < .depend > $TMP; mv $TMP .depend % typescript.fail2.txt:make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/lib/libvers/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail2.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/lib/libvers/.depend" line 3: Need an operator % typescript.fail2.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/lib/libvers/.depend" line 4: Need an operator % typescript.fail2.txt-make[3]: Fatal errors encountered -- cannot continue % typescript.fail2.txt-make[3]: stopped in /usr/src/kerberos5/lib/libvers % typescript.fail2.txt-*** Error code 1 % -- % typescript.fail3.txt-echo libroken.so.11: /usr/obj/usr/src/tmp/usr/lib/libcrypt.a >> .depend % typescript.fail3.txt:make[4]: "/usr/obj/usr/src/kerberos5/lib/libroken/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail3.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libroken/.depend" line 3: Need an operator % typescript.fail3.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libroken/.depend" line 4: Unknown directive % typescript.fail3.txt-make[4]: Fatal errors encountered -- cannot continue % typescript.fail3.txt-make[4]: stopped in /usr/src/kerberos5/lib/libroken % typescript.fail3.txt-*** Error code 1 % -- % typescript.fail4.txt-echo asn1_compile: /usr/lib/libc.a /usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/../../lib/libroken/libroken.a /usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/../../lib/libvers/libvers.a /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend % typescript.fail4.txt:make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail4.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/.depend" line 3: Need an operator % typescript.fail4.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/.depend" line 4: Need an operator % typescript.fail4.txt-make[3]: Fatal errors encountered -- cannot continue % typescript.fail4.txt-make[3]: stopped in /usr/src/kerberos5/tools/asn1_compile Any idea how to debug this? -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons. ___
Re: buildworld fails with "Zero byte read from file, skipping rest of line"
On Wed, Jan 15, 2014 at 12:40:35PM +0400, Gleb Smirnoff wrote: > Jeremie, > > On Wed, Jan 15, 2014 at 08:40:53AM +0100, Jeremie Le Hen wrote: > J> > J> ===> gnu/usr.bin/groff/src/libs/libgroff (all) > J> > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 3: warning: Zero byte read from file, skipping rest of line. > J> > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 3: Need an operator > J> > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 4: Need an operator > J> > J> make[6]: Fatal errors encountered -- cannot continue > J> > J> make[6]: stopped in /usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff > J> > J> *** [all] Error code 1 > J> > J> > J> > J> Typscript available here: > J> > J> http://people.freebsd.org/~jlh/typescript.buildworld.txt > J> > J> > J> > J> Any ideas? > J> > > J> > Can you try to reproduce this with unmapped I/O turned off in boot > loader? > J> > J> I've never heard of that. Can you please point me to the right > J> code/doc? > > In loader prompt: > > OK set vfs.unmapped_buf_allowed=0 > OK boot No, unfortunately I still have the same problem without unmapped bufs. -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: buildworld fails with "Zero byte read from file, skipping rest of line"
Jeremie, On Wed, Jan 15, 2014 at 08:40:53AM +0100, Jeremie Le Hen wrote: J> > J> ===> gnu/usr.bin/groff/src/libs/libgroff (all) J> > J> make[6]: "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" line 3: warning: Zero byte read from file, skipping rest of line. J> > J> make[6]: "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" line 3: Need an operator J> > J> make[6]: "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" line 4: Need an operator J> > J> make[6]: Fatal errors encountered -- cannot continue J> > J> make[6]: stopped in /usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff J> > J> *** [all] Error code 1 J> > J> J> > J> Typscript available here: J> > J> http://people.freebsd.org/~jlh/typescript.buildworld.txt J> > J> J> > J> Any ideas? J> > J> > Can you try to reproduce this with unmapped I/O turned off in boot loader? J> J> I've never heard of that. Can you please point me to the right J> code/doc? In loader prompt: OK set vfs.unmapped_buf_allowed=0 OK boot -- Totus tuus, Glebius. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: buildworld fails with "Zero byte read from file, skipping rest of line"
On Tue, Jan 14, 2014 at 12:58:18PM +0400, Gleb Smirnoff wrote: > Jeremie, > > On Tue, Jan 14, 2014 at 08:26:21AM +0100, Jeremie Le Hen wrote: > J> Hi, > J> > J> I have a FreeBSD -CURRENT in Virtualbox (running on Linux). I have been > J> unable to buildworld for a while. > J> > J> I suspect this is not a problem with the source because I didn't see any > J> report so far, whereas I've been experiencing this for a month or more. > J> Thus I naturally suspected it was a binary problem, so I've upgraded > J> to the latest snapshot, but the problem still exists. > J> > J> ===> gnu/usr.bin/groff/src/libs/libgroff (all) > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 3: warning: Zero byte read from file, skipping rest of line. > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 3: Need an operator > J> make[6]: > "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" > line 4: Need an operator > J> make[6]: Fatal errors encountered -- cannot continue > J> make[6]: stopped in /usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff > J> *** [all] Error code 1 > J> > J> Typscript available here: > J> http://people.freebsd.org/~jlh/typescript.buildworld.txt > J> > J> Any ideas? > > Can you try to reproduce this with unmapped I/O turned off in boot loader? I've never heard of that. Can you please point me to the right code/doc? Thanks? -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: buildworld fails with "Zero byte read from file, skipping rest of line"
Jeremie, On Tue, Jan 14, 2014 at 08:26:21AM +0100, Jeremie Le Hen wrote: J> Hi, J> J> I have a FreeBSD -CURRENT in Virtualbox (running on Linux). I have been J> unable to buildworld for a while. J> J> I suspect this is not a problem with the source because I didn't see any J> report so far, whereas I've been experiencing this for a month or more. J> Thus I naturally suspected it was a binary problem, so I've upgraded J> to the latest snapshot, but the problem still exists. J> J> ===> gnu/usr.bin/groff/src/libs/libgroff (all) J> make[6]: "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" line 3: warning: Zero byte read from file, skipping rest of line. J> make[6]: "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" line 3: Need an operator J> make[6]: "/usr/obj/usr/src.svn/tmp/usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff/.depend" line 4: Need an operator J> make[6]: Fatal errors encountered -- cannot continue J> make[6]: stopped in /usr/src.svn/gnu/usr.bin/groff/src/libs/libgroff J> *** [all] Error code 1 J> J> Typscript available here: J> http://people.freebsd.org/~jlh/typescript.buildworld.txt J> J> Any ideas? Can you try to reproduce this with unmapped I/O turned off in boot loader? -- Totus tuus, Glebius. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"