Skip to content

emacs does not accept new xdebug sessions after a session is triggered during cleanup #57

Description

@fr1208

Hi,

Thanks for geben, I use it regularly for a while now and it works well.

Just in case, it can help someone.
Recently I encounter a bug with Xdebug 3 and emacs 29.

The exit hooks geben-session-exit-hook fail and leave invalid data structures in the variable geben-sessions.
It happens when a new trigger is processed at the same time the exit hooks are called. After this, I have trouble to restart geben and to have a new session.

I fix it by adding a mutex in the function geben-dbgp-handle-response.

`
(defvar geben-mutex (make-mutex "GEBEN-MUTEX"))

(defun geben-dbgp-handle-response (session msg)
"Within SESSION, handle a response message MSG."
(with-mutex geben-mutex
(let* ((tid (geben-dbgp-tid-read msg))
(cmd (geben-session-cmd-remove session tid))
(err (dbgp-xml-get-error-node msg)))
...

))
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions