I add *.domain.com, and Unbound goes tits up.
I remove this record, and it starts up.
Anything can be done about this?
Works fine for me. Added *.domain.com -> 1.2.3.4 as override. Unbound restarts fine and responds with 1.2.3.4 to an nslookup aaa.domain.com.
Good to know, but this does not help me. The crash is 100% reproducible: add a wildcard - it crashes and fails to restart. Remove the wildcard - it restarts. This is not something that users should discuss among ourselves but rather something that dev team should become concerned about.
I did not discuss it, I merely gave another data point saying: Nope, not happening here. If you want to catch the developer's attention, you better create a bug report on Github with a repeatable configuration or steps to reproduce the bug. This is a user's forum.
As I said, I cannot reproduce the bug the way you describe it, so probably it is something specific to your configuration. Unless you can point to something more exact, the problem will not be fixed. That is something you could have figured out if you thought about what I wrote.
And maybe you do not want to discuss it, but I will tell you anyway what your exact problem is:
You created a *.domain.com override on top of something pre-existing like aaa.domain.com. It is exactly with this configuration that Unbound crashes. Use only one or the other and it magically works. And no, I do not want to discuss that this may not be what you want to achieve (namely, a fallback for any unspecified name in the domain, while maintaining specific overrides). If it is so, file a bug. Now you now what to specify in a bug description and why it would be nice to have it fixed, not an unspecific, irreproducible complaint.
You are welcome.