Hello,
I'm aware of the recent GTK 4 hotfix for the print dialog and I'm not sure if this is related. I'm not familiar with this API or if the problem lies with WebKit, GTK, or something else, but am submitting this report to give you a lead in any case. I don't see anything obvious to suggest that CUPS is coming into play here.
When using Epiphany or the mini browser demo on unstable, merely opening the print dialog (which, I presume, probes for printers) causes a crash. Before the process terminates only the "Print to File" device is visible, but I have a couple physical printers as well as printer-driver-cups-pdf set up. I've crafted this GDB command to make the issue more obvious:
gdb --eval-command='file -readnow /usr/lib/x86_64-linux-gnu/webkitgtk-6.0/MiniBrowser' --eval-command='set args data:text/html,%3Chtml%3E%3Chead%3E%3Ctitle%3EPrint%3C%2Ftitle%3E%3Cscript%3Ewindow.onload%20%3D%20window.print%28%29%3B%3C%2Fscript%3E%3C%2Fhead%3E%3C%2Fhtml%3E%0A' --eval-command='break -force-condition ./debian/build/deb/../../../gtk/gtklistitemmanager.c:1679 if n_items'
That breakpoint refers to the file in the GTK 4 source tree where a null pointer is assigned to tile but it gets dereferenced in the loop because n_items is non-zero.
Please take a gander when you find the opportunity or let me know if help is needed reproducing the issue.