Re: RFC: mount_nfs failure due to dns not running yet

2025-02-20 Thread Rick Macklem
On Thu, Feb 20, 2025 at 4:28 PM Steve Rikli wrote: > > On Wed, Feb 19, 2025 at 02:40:15PM -0800, Rick Macklem wrote: > > > > The subject line basically describes the problem glebius@ > > ran into. When doing an NFS mount in /etc/fstab, it failed > > since the DNS service was not yet working and,

Re: RFC: mount_nfs failure due to dns not running yet

2025-02-20 Thread Steve Rikli
On Wed, Feb 19, 2025 at 02:40:15PM -0800, Rick Macklem wrote: > > The subject line basically describes the problem glebius@ > ran into. When doing an NFS mount in /etc/fstab, it failed > since the DNS service was not yet working and, as such, > the DNS lookup of the server fqdn failed, causing th

Re: [Retitled!] some under-VM detections for non-amd64 may be broken

2025-02-20 Thread Olivier Certner
Hi, I've submitted a change proposal to fix this (and potentially other problems): https://reviews.freebsd.org/D49084 Please feel free to comment/review there. For olivier@: I'd be interested in seeing the full output of (minus serial numbers of course): kenv | grep -F smbios in all the cases yo

Re: RFC: mount_nfs failure due to dns not running yet

2025-02-20 Thread Jan Martin Mikkelsen
Hi, DNS resolvers can fail transiently, as can UDP. At least some retries seem to make sense. (I don’t use NFS; this is a general comment.) Regards, Jan M. > On 19. Feb 2025, at 23:40, Rick Macklem wrote: > > Hi, > > The subject line basically describes the problem glebius@ > ran into. Wh

Re: RFC: mount_nfs failure due to dns not running yet

2025-02-20 Thread Ronald Klop
Van: Rick Macklem Datum: woensdag, 19 februari 2025 23:40 Aan: FreeBSD CURRENT CC: Gleb Smirnoff Onderwerp: RFC: mount_nfs failure due to dns not running yet Hi, The subject line basically describes the problem glebius@ ran into. When doing an NFS mount in /etc/fstab, it failed since the DN

Re: Empty structures have sizeof(1) in C++ now ?

2025-02-20 Thread Dimitry Andric
In fact, in C having a struct without members is undefined behavior: > If the struct-declaration-list does not contain any named members, either > directly or via an anonymous structure or anonymous union, the behavior is > undefined. However, gcc allows this as an extension, and clang has appa

Re: Empty structures have sizeof(1) in C++ now ?

2025-02-20 Thread David Chisnall
No, that’s always been the case in C++. It comes from the rule that two allocations must have unique addresses. If a structure could have size zero, an array of these structures would have size zero and the two elements in the array would have the same address. Similarly, two struct fields co

Re: Empty structures have sizeof(1) in C++ now ?

2025-02-20 Thread Michael Gmelin
On Thu, 20 Feb 2025 09:40:54 + Poul-Henning Kamp wrote: > Is this a bug ? > > > critter phk> cat /tmp/_.c > > #include > struct foo { > }; > > int > main(int argc, char **argv) > { > struct foo bar; > printf("%jd %j

Empty structures have sizeof(1) in C++ now ?

2025-02-20 Thread Poul-Henning Kamp
Is this a bug ? critter phk> cat /tmp/_.c #include struct foo { }; int main(int argc, char **argv) { struct foo bar; printf("%jd %jd\n", sizeof(struct foo), sizeof(bar)); return (0);

crash with head as of 2h ago (in_pcblbgroup_insert)

2025-02-20 Thread Alexander Leidinger
Hi, I get this backtrace: ---snip--- [102] panic: invalid local group size 16 and count 16 [102] cpuid = 17 [102] time = 1740041984 [102] KDB: stack backtrace: [102] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe07453a5b80 [102] vpanic() at vpanic+0x136/frame 0xfe07453