gud-common-init function in emacs 27 seems to have a bug in how it calls display-buffer. The second argument passed is ACTION. According to docstring of display-buffer, the list of functions need to be a list within a list. The attached patch adds the missing extra pair of parenthesis.