Date: Thu, 20 Jul 2017 11:11:13 +0200 From: Martin Matuska <mm@freebsd.org> To: Jung-uk Kim <jkim@freebsd.org> Cc: Ed Maste <emaste@freebsd.org>, FreeBSD toolchain <freebsd-toolchain@freebsd.org> Subject: Re: [VirtualBox-5.1.22 Build Failed on FreeBSD-12] Message-ID: <20170720111113.Horde.B-b7Qp1sY_v9KbczM3KP_t9@mail.vx.sk> In-Reply-To: <ab372151-1f71-a620-3e70-aa002fd35062@FreeBSD.org> References: <7bc831e2-778e-eb12-174e-c2426b87c2d2@FreeBSD.org> <ab372151-1f71-a620-3e70-aa002fd35062@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This sounds like a write buffer overflow in libarchive. It would be great to have the call to the ar command and the input data. Quoting Jung-uk Kim <jkim@freebsd.org>: > emulators/virtualbox-ose is failing on head for some time and I found ar > is causing the trouble. The earliest failures noticed by package > builders are here: > > http://docs.freebsd.org/cgi/mid.cgi?201706170249.v5H2nUVZ039286 > http://docs.freebsd.org/cgi/mid.cgi?201706170238.v5H2cZTZ054493 > > The core file shows: > > (lldb) bt > * thread #1, name = 'ar', stop reason = signal SIGSEGV > * frame #0: 0x00000000004ac850 ar`memchr + 16 > frame #1: 0x000000000044359a ar`strstr + 1082 > frame #2: 0x000000000040649f ar`archive_write_ar_header + 2095 > frame #3: 0x0000000000409423 ar`_archive_write_header + 259 > frame #4: 0x00000000004051eb ar`write_archive + 3995 > frame #5: 0x0000000000402be6 ar`yyparse + 1190 > frame #6: 0x0000000000402715 ar`ar_mode_script + 69 > frame #7: 0x0000000000400cdc ar`main + 2140 > frame #8: 0x000000000040035f ar`_start + 383 > > I am not sure whether ar or libarchive is culprit here. > > Any idea? > > Jung-uk Kim > > -------- Forwarded Message -------- > Subject: Re: [VirtualBox-5.1.22 Build Failed on FreeBSD-12] > Date: Wed, 19 Jul 2017 11:11:51 -0400 > From: Jung-uk Kim <jkim@FreeBSD.org> > To: Ederson Corbari <ederbsd@gmail.com>, freebsd-emulation@freebsd.org > > On 07/16/2017 13:25, Ederson Corbari wrote: >> Hello, >> >> I installed FreeBSD 12-CURRENT on my new laptop DELL Inspiron, because >> FreeBSD-11 does not work ACPI >> correctly. Apparently everything working, but to build VirtualBox is >> occurring the following error: >> >> ------------------------------------------------------- >> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.22/include/iprt/assert.h:575:21: >> note: expanded from macro 'AssertReturn' >> return (rc); \ >> ^~ >> kBuild: Compiling webtest - >> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.22/src/VBox/Main/webservice/webtest.cpp >> kmk: *** >> [/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.22/out/freebsd.amd64/release/obj/RuntimeBldProg/RuntimeBldProg.a] >> Segmentation fault (core dumped) >> The failing command: >> @/usr/local/bin/kmk_redirect -rti >> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.22/out/freebsd.amd64/release/obj/RuntimeBldProg/RuntimeBldProg.a.ar-script >> -- ar -M >> kmk: *** >> [/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.22/out/freebsd.amd64/release/obj/RuntimeBldProg/RuntimeBldProg.a] >> Deleting file >> `/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.22/out/freebsd.amd64/release/obj/RuntimeBldProg/RuntimeBldProg.a.ar-script' >> kmk: *** Waiting for unfinished jobs.... >> 74 warnings generated. >> kmk: *** Exiting with status 2 >> *** Error code 2 >> >> Stop. >> make: stopped in /usr/ports/emulators/virtualbox-ose >> ------------------------------------------------------- >> >> The configuration used is default, simply run command: make -DBATCH install > > It seems something is wrong with ar on head since ino64. > >> Does anyone know how to fix the problem? > > I am not sure how to fix it but I worked around it by > replacing/usr/bin/ar with the one from 10.3. -- Martin Matuska FreeBSD committer http://blog.vx.sk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170720111113.Horde.B-b7Qp1sY_v9KbczM3KP_t9>