[Bug 236714] Clang problem with rctl(8)

2019-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236714

Mateusz Guzik  changed:

   What|Removed |Added

 Status|New |Closed
 Resolution|--- |FIXED
   Assignee|toolch...@freebsd.org   |m...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


[Bug 236714] Clang problem with rctl(8)

2019-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236714

--- Comment #12 from Mateusz Guzik  ---
It is not being ignored. There is non-zero garbage in an area not written to by
sysctl, which makes the zero comparison fail.

diff --git a/usr.bin/rctl/rctl.c b/usr.bin/rctl/rctl.c
index 74073c13207e..8fb9e862aee8 100644
--- a/usr.bin/rctl/rctl.c
+++ b/usr.bin/rctl/rctl.c
@@ -378,12 +378,15 @@ print_rules(char *rules, int hflag, int nflag)
 static void
 enosys(void)
 {
-   int error, racct_enable;
+   int error, racct_enable = ~(0);
size_t racct_enable_len;

+
+   printf("%x\n", racct_enable);
racct_enable_len = sizeof(racct_enable);
error = sysctlbyname("kern.racct.enable",
_enable, _enable_len, NULL, 0);
+   printf("%x\n", racct_enable);

if (error != 0) {
if (errno == ENOENT)

Results in:

ff00
a.out: failed to show rules for '::': Function not implemented

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


[Bug 236714] Clang problem with rctl(8)

2019-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236714

--- Comment #11 from Edward Tomasz Napierala  ---
Patch looks good, thank you!

What about the underlying issue, which is sysctl(3) silently failing when it
receives an improperly sized buffer?  Would it be feasible to make it return an
error, so it's easier to fix next time it happens?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


[Bug 236900] lang/gcc8: BOOTSTRAP=off fails to build after r497254

2019-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236900

Jan Beich  changed:

   What|Removed |Added

 Resolution|--- |Unable to Reproduce
 Status|New |Closed

--- Comment #6 from Jan Beich  ---
(In reply to Andreas Tobler from comment #5)
> I bet it is the rtld which does not seem to be able to execute 32-bit bins.
> On -CURRENT we had this situation for a very short time. Between r345661 and 
> r345734.

Ah, a kernel issue. That explains why all my amd64 jails were affected but not
i386 jails. I was on r345732 but after updating to r345806 lang/gcc8 builds
fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"