After switching from go1.20.7 to go1.21.0 one of my applications compiles without warnings or errors, but fails at run-time with the following panic when loading a plugin:

panic: regexp: Compile(`^([\w./]+)/((?:\w+)|[*])(.+)?$`): error parsing regexp: invalid escape sequence: `\w`

goroutine 1 [running]:
regexp.MustCompile({0x7fee026ddc4f, 0x1e})
        .../golang/src/regexp/regexp.go:319 +0xb4
google.golang.org/grpc/internal/binarylog.init()

.../ext/pkg/mod/google.golang.org/grpc@v1.57.0/internal/binarylog/env_config.go:135 +0xf9
plugin.open({0xc0000146b0, 0xe})
        .../golang/src/plugin/plugin_dlopen.go:95 +0x51c
plugin.Open(...)
        .../golang/src/plugin/plugin.go:80

The above regex compiles fine in go1.21.0 directly, so I wonder what is happening here.

After switching back to 1.20.7 and a full recompilation, the application works fine again...

Cheers, Bernd.

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d208fed7-dec3-8865-b332-1d693122edda%40hoi-polloi.org.

Reply via email to