Date: Tue, 2 Oct 2012 10:21:10 +0100 (BST) From: Anton Shterenlikht <mexas@bristol.ac.uk> To: freebsd-ports@freebsd.org, wxs@freebsd.org Subject: Re: security/sudo *** [pre-install] Signal 11 Message-ID: <201210020921.q929LAWT024238@mech-cluster241.men.bris.ac.uk>
next in thread | raw e-mail | index | archive | help
From mexas Mon Oct 1 10:51:13 2012 To: freebsd-ports@freebsd.org, wxs@FreeBSD.org Subject: security/sudo *** [pre-install] Signal 11 Reply-To: mexas@bristol.ac.uk # make install FORCE_PKG_REGISTER=1 ===> Installing for sudo-1.8.6.p3_1 ===> Generating temporary packing list if test -d ./.hg && cd .; then if hg log --style=changelog -b default > ChangeL og.tmp; then mv -f ChangeLog.tmp ChangeLog; else rm -f ChangeLog.tmp; fi; f i for d in compat common plugins/sudoers src include doc; do (cd $d && exec make pre-install) && continue; exit $?; done Checking existing sudoers file for syntax errors. *** [pre-install] Signal 11 Note: this is on ia64 r235474. I deleted the existing /usr/local/etc/sudoers, and the update was then successful. However, I'm getting: # visudo Segmentation fault (core dumped) # and nothing from the gdb: # gdb /usr/local/sbin/visudo visudo.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "ia64-marcel-freebsd"... Core was generated by `visudo'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000000000 in ?? () (gdb) thread apply all bt Thread 1 (process 100111): #0 0x0000000000000000 in ?? () #1 0x2500000000036ae0 in ?? () Previous frame identical to this frame (corrupt stack?) (gdb) I build WITH_DEBUG= How can I debug this further? All tests fail when running make check under /usr/ports/security/sudo/work/sudo-1.8.6p3: Script started on Tue Oct 2 10:16:25 2012 make check for d in compat common plugins/sudoers src include doc; do (cd $d && exec make check) && continue; exit $?; done check_addr: 9 tests run, 0 errors, 100% success rate Segmentation fault (core dumped) Segmentation fault (core dumped) Segmentation fault (core dumped) check_symbols: 7 tests run, 0 errors, 100% success rate Segmentation fault (core dumped) 0a1,175 > # word wrap at 60 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 > ; PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 61 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 > ; PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 62 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 63 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 64 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 65 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 66 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 67 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool > list users > # word wrap at 68 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool > list users > # word wrap at 69 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool > list users > # word wrap at 70 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool > list users > # word wrap at 71 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool > list users > # word wrap at 72 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list > users > # word wrap at 73 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list > users > # word wrap at 74 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list > users > # word wrap at 75 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list > users > # word wrap at 76 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list > users > # word wrap at 77 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list > users > # word wrap at 78 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list users > # word wrap at 79 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list users > # word wrap at 80 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; > PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list users > # word wrap at 120 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; PWD=/home/tu2sp3-a ; USER=root ; > COMMAND=/opt/quest/bin/vastool list users > # word wrap at 140 characters > Jul 11 11:30:17 : tu2sp3-a : command not allowed ; TTY=pts/1 ; PWD=/home/tu2sp3-a ; USER=root ; COMMAND=/opt/quest/bin/vastool list users > # word wrap at 60 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 61 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 62 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 63 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 64 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 65 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 66 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 67 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 68 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 69 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; > TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 70 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT > ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 71 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT > ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 72 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 73 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 74 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 75 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 76 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 77 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 78 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 79 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; > PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 80 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; PWD=/usr/src/local/millert/hg/sudo/build > ; USER=root ; TSID=0004KT ; COMMAND=/bin/rm /root/.bash_profile > # word wrap at 120 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; > COMMAND=/bin/rm /root/.bash_profile > # word wrap at 140 characters > Jun 26 18:00:06 : millert : TTY=ttypm ; PWD=/usr/src/local/millert/hg/sudo/build ; USER=root ; TSID=0004KT ; COMMAND=/bin/rm > /root/.bash_profile Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test1.out sudoers/test1: FAIL 0a1,6 > Parses OK. > > > > user1 ALL = /usr/bin/su - : ALL = /usr/bin/id > user2 ALL = NOPASSWD: NOEXEC: /usr/bin/vi : ALL = PASSWD: EXEC: /usr/bin/echo sudoers/test1 (toke): FAIL 0a1,6 > Parses OK. > > > > user1 ALL = /usr/bin/su - : ALL = /usr/bin/id > user2 ALL = NOPASSWD: NOEXEC: /usr/bin/vi : ALL = PASSWD: EXEC: /usr/bin/echo Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test2.out sudoers/test2: FAIL 0a1,42 > Parses OK. > > Defaults@somehost set_home > Defaults@quoted" set_home > Defaults:you set_home > Defaults:us" set_home > Defaults:%them set_home > Defaults:%: non UNIX 0 c set_home > Defaults:+net set_home > Defaults>someone set_home > Defaults>some one set_home > > Runas_Alias RA1 = foo > Runas_Alias RA2 = foo" > Runas_Alias RA3 = foo:bar > Runas_Alias RA4 = foo:bar" > User_Alias UA1 = foo > User_Alias UA10 = %:C/non"UNIX"0 c > User_Alias UA11 = %:C/non_UNIX_0 c > User_Alias UA12 = %:C/non\'UNIX_3 c > User_Alias UA2 = foo.bar > User_Alias UA3 = foo" > User_Alias UA4 = foo:bar > User_Alias UA5 = foo:bar" > User_Alias UA6 = %baz > User_Alias UA7 = %baz.biz > User_Alias UA8 = %:C/non UNIX 0 c > User_Alias UA9 = %:C/non\'UNIX\'1 c > > foo hosta = (root) ALL > foo.bar hostb = (root) ALL > foo" hostc = (root) ALL > foo:bar hostd = (root) ALL > foo:bar" hoste = (root) ALL > %baz hosta = (root) ALL > %baz.biz hostb = (root) ALL > %:C/non UNIX 0 c hostc = (root) ALL > %:C/non\'UNIX\'1 c hostd = (root) ALL > %:C/non"UNIX"0 c hoste = (root) ALL > %:C/non_UNIX_0 c hostf = (root) ALL > %:C/non\'UNIX_3 c hostg = (root) ALL > +netgr hosth = (root) ALL sudoers/test2 (toke): FAIL 0a1,42 > Parses OK. > > Defaults@somehost set_home > Defaults@quoted" set_home > Defaults:you set_home > Defaults:us" set_home > Defaults:%them set_home > Defaults:%: non UNIX 0 c set_home > Defaults:+net set_home > Defaults>someone set_home > Defaults>some one set_home > > Runas_Alias RA1 = foo > Runas_Alias RA2 = foo" > Runas_Alias RA3 = foo:bar > Runas_Alias RA4 = foo:bar" > User_Alias UA1 = foo > User_Alias UA10 = %:C/non"UNIX"0 c > User_Alias UA11 = %:C/non_UNIX_0 c > User_Alias UA12 = %:C/non\'UNIX_3 c > User_Alias UA2 = foo.bar > User_Alias UA3 = foo" > User_Alias UA4 = foo:bar > User_Alias UA5 = foo:bar" > User_Alias UA6 = %baz > User_Alias UA7 = %baz.biz > User_Alias UA8 = %:C/non UNIX 0 c > User_Alias UA9 = %:C/non\'UNIX\'1 c > > foo hosta = (root) ALL > foo.bar hostb = (root) ALL > foo" hostc = (root) ALL > foo:bar hostd = (root) ALL > foo:bar" hoste = (root) ALL > %baz hosta = (root) ALL > %baz.biz hostb = (root) ALL > %:C/non UNIX 0 c hostc = (root) ALL > %:C/non\'UNIX\'1 c hostd = (root) ALL > %:C/non"UNIX"0 c hoste = (root) ALL > %:C/non_UNIX_0 c hostf = (root) ALL > %:C/non\'UNIX_3 c hostg = (root) ALL > +netgr hosth = (root) ALL Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test3.out sudoers/test3: FAIL 0a1,9 > Parses OK. > > Defaults:FOO env_reset > Defaults:foo,bar env_reset > Defaults:foo, bar env_reset > Defaults:foo,bar env_reset > > User_Alias FOO = foo, bar > sudoers/test3 (toke): FAIL 0a1,9 > Parses OK. > > Defaults:FOO env_reset > Defaults:foo,bar env_reset > Defaults:foo, bar env_reset > Defaults:foo,bar env_reset > > User_Alias FOO = foo, bar > Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test4.out sudoers/test4: FAIL 0a1,6 > Parse error in sudoers near line 7. > > > User_Alias BAR = bar > User_Alias FOO = foo > sudoers/test4 (toke): FAIL 0a1,6 > Parse error in sudoers near line 7. > > > User_Alias BAR = bar > User_Alias FOO = foo > Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test5.out sudoers/test5: FAIL 0a1,4 > Parse error in sudoers near line 2. > > > sudoers/test5 (toke): FAIL 0a1,4 > Parse error in sudoers near line 2. > > > Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test6.out sudoers/test6: FAIL 0a1,14 > Parses OK. > > Defaults:#123 set_home > Defaults>#123 set_home > Defaults:#123 set_home > Defaults>#123 set_home > > > #0 ALL = ALL > #0 ALL = (#0 : #0) ALL > #0 ALL = ALL > #0 ALL = (#0 : #0) ALL > %#0 ALL = ALL > %#0 ALL = ALL sudoers/test6 (toke): FAIL 0a1,14 > Parses OK. > > Defaults:#123 set_home > Defaults>#123 set_home > Defaults:#123 set_home > Defaults>#123 set_home > > > #0 ALL = ALL > #0 ALL = (#0 : #0) ALL > #0 ALL = ALL > #0 ALL = (#0 : #0) ALL > %#0 ALL = ALL > %#0 ALL = ALL Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test7.out sudoers/test7: FAIL 0a1,4 > Parse error in sudoers near line 2. > > > sudoers/test7 (toke): FAIL 0a1,4 > Parse error in sudoers near line 2. > > > Segmentation fault (core dumped) cmp: EOF on regress/sudoers/test8.out sudoers/test8: FAIL 0a1,7 > Parse error in sudoers near line 8. > > > User_Alias UA1 = xy > User_Alias UA2 = xy > User_Alias UA3 = x"y > sudoers/test8 (toke): FAIL 0a1,7 > Parse error in sudoers near line 8. > > > User_Alias UA1 = xy > User_Alias UA2 = xy > User_Alias UA3 = x"y > sudoers: 0/16 tests passed; 16/16 tests failed testsudoers/test1: FAIL 1,2c1,8 < testsudoers: unknown user: root < Segmentation fault (core dumped) --- > Parses OK. > > Entries for user root: > > ALL = ALL > host matched > > Command unmatched testsudoers: 0/1 tests passed; 1/1 tests failed cmp: ./regress/visudo/*.out.ok: No such file or directory visudo/*: FAIL diff: ./regress/visudo/*.out.ok: No such file or directory cannot open ./regress/visudo/*.sh: No such file or directory visudo: 0/1 tests passed; 1/1 tests failed *** [check] Error code 180 (ignored) Script done on Tue Oct 2 10:16:29 2012 By the way, why not include the check target in the main Makefile of this port? Thanks Anton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210020921.q929LAWT024238>