bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61514: 30.0.50; sadistically long xml line hangs emacs


From: Gregory Heytings
Subject: bug#61514: 30.0.50; sadistically long xml line hangs emacs
Date: Mon, 20 Feb 2023 14:17:24 +0000


For debugging purposes, you can set the value in the debugger after starting Emacs, or with a breakpoint just before calling the problematic code.

That's only true for the (very) few of us who are comfortable building Emacs and running it under GDB (and even for them it's much easier to just change the value with a setq). If regexp-max-backtracking-depth had been present, everyone could easily have tried to set it to some lower value.

I don't trust people who don't build Emacs and run it under GDB to use such a variable judiciously.


In the current patch it is automatically capped to a maximum value. It could also be automatically reset to a minimum value (say 1000 or 500 or 100). I just tried to set it to 500 in my configuration during a few minutes, and did not see any errors, so I don't see what could go fundamentally wrong if we give users control on that threshold.

It would have been much easier to debug this bug by asking Mark "could you please try to temporarily set regexp-max-backtracking-depth to 1000 and see if that fixes the bug?". This bug report was easy to reproduce, so that wasn't necessary, but it would be for bug reports from users with more complex setup.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]