in reply to need help golfing down/making a backtrace for panic: free from wrong pool, … during global destruction.

In Konsole's src, the action you are doing calls clearHistoryAndReset() (SessionController.cpp) which calls emulation->reset(), session->refresh(), session->setCodec() and clearHistory(). Of all these, the easiest to debug is refresh() which changes the window width by 1 pixel, then waits for some millis and then changes width back to original as a means of a force-refresh hack. So you can see if resizing the window causes you any crash, unlikely though.

The next in line is setCodec(). It may be that it re-sets the encoding and the locale. So you can perhaps try to manually change the encoding and see if crashes?

  • Comment on Re: need help golfing down/making a backtrace for panic: free from wrong pool, … during global destruction.
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: need help golfing down/making a backtrace for panic: free from wrong pool, … during global destruction.
by daxim (Curate) on Jul 05, 2019 at 06:46 UTC
    This answer is exemplary and that's the reason why I come to PM with my difficult questions. I wish I could upvote more than once.
    if resizing the window causes you any crash, unlikely though.
    Resizing causes the crash indeed. This also means the repro becomes easier and independent of any specific terminal emulator: pkill -WINCH re.pl