prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  pwndbg gets stuck in GDB 10.1
  <!--
  Before reporting a new issue, make sure that we do not have any duplicates already open.
  If there is one it might be good to take part in the discussion there.
  
  Please make sure you have checked that the issue persists on LATEST pwndbg version.
  
  Below is a template for BUG REPORTS.
  Don't include it if this is a FEATURE REQUEST.
  -->
  
  
  ### Description
  pwndbg gets stuck in GDB 10.1
  <!--
  Briefly describe the problem you are having in a few paragraphs.
  -->
  
  ### Steps to reproduce
  ![Screenshot_20201227_212816](https://user-images.githubusercontent.com/16643669/103172053-aa50ad00-488b-11eb-9326-b8a5745d88aa.png)
  
  <!--
  What do we have to do to reproduce the problem?
  If this is connected to particular C/asm code, 
  please provide the smallest C code that reproduces the issue.
  -->
  
  ### My setup
  
  <!--
  Show us your gdb/python/pwndbg/OS/IDA Pro version (depending on your case).
  
  NOTE: We are currently supporting only Ubuntu installations.
  It is known that pwndbg is not fully working e.g. on Arch Linux (the heap stuff is not working there).
  If you would like to change this situation - help us improving pwndbg and supporting other distros!
  
  This can be displayed in pwndbg through `version` command.
  
  If it is somehow unavailable, use:
  * `show version` - for gdb
  * `py import sys; print(sys.version)` - for python
  * pwndbg version/git commit id
  -->
  ```
  Gdb:      10.1
  Python:   3.8.6 (default, Sep 30 2020, 04:00:38)  [GCC 10.2.0]
  Pwndbg:   1.1.0
  Capstone: 4.0.1024
  Unicorn:  1.0.2
  ```
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `pwndbg/heap/__init__.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 import pwndbg.heap.heap
  5 import pwndbg.symbol
  6 
  7 current = None
  8 
  9 heap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference')
  10 
  11 @pwndbg.events.new_objfile
  12 def update():
  13     import pwndbg.heap.dlmalloc
  14     import pwndbg.heap.ptmalloc
  15 
  16     global current
  17 
  18 
  19     if pwndbg.symbol.address('ptmalloc_init'):
  20         current = pwndbg.heap.ptmalloc.Heap()
  21 
  22     else:
  23         # Default to ptmalloc heap for now until
  24         # there are more implementations
  25         current = pwndbg.heap.ptmalloc.Heap()
  26
  ```
  
  Path: `pwndbg/heap/dlmalloc.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 import gdb
  5 
  6 import pwndbg.events
  7 import pwndbg.typeinfo
  8 
  9 
  10 class Heap(pwndbg.heap.heap.BaseHeap):
  11     pass
  12
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/pwndbg/heap/__init__.py b/pwndbg/heap/__init__.py
  --- a/pwndbg/heap/__init__.py
  +++ b/pwndbg/heap/__init__.py
  @@ -8,18 +8,8 @@
   
   heap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference')
   
  -@pwndbg.events.new_objfile
  +@pwndbg.events.start
   def update():
  -    import pwndbg.heap.dlmalloc
       import pwndbg.heap.ptmalloc
  -
       global current
  -
  -
  -    if pwndbg.symbol.address('ptmalloc_init'):
  -        current = pwndbg.heap.ptmalloc.Heap()
  -
  -    else:
  -        # Default to ptmalloc heap for now until
  -        # there are more implementations
  -        current = pwndbg.heap.ptmalloc.Heap()
  +    current = pwndbg.heap.ptmalloc.Heap()
  diff --git a/pwndbg/heap/dlmalloc.py b/pwndbg/heap/dlmalloc.py
  deleted file mode 100644
  --- a/pwndbg/heap/dlmalloc.py
  +++ /dev/null
  @@ -1,11 +0,0 @@
  -#!/usr/bin/env python
  -# -*- coding: utf-8 -*-
  -
  -import gdb
  -
  -import pwndbg.events
  -import pwndbg.typeinfo
  -
  -
  -class Heap(pwndbg.heap.heap.BaseHeap):
  -    pass
  
verification_info: {"golden_diff": "diff --git a/pwndbg/heap/__init__.py b/pwndbg/heap/__init__.py\n--- a/pwndbg/heap/__init__.py\n+++ b/pwndbg/heap/__init__.py\n@@ -8,18 +8,8 @@\n \n heap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference')\n \n-@pwndbg.events.new_objfile\n+@pwndbg.events.start\n def update():\n-    import pwndbg.heap.dlmalloc\n     import pwndbg.heap.ptmalloc\n-\n     global current\n-\n-\n-    if pwndbg.symbol.address('ptmalloc_init'):\n-        current = pwndbg.heap.ptmalloc.Heap()\n-\n-    else:\n-        # Default to ptmalloc heap for now until\n-        # there are more implementations\n-        current = pwndbg.heap.ptmalloc.Heap()\n+    current = pwndbg.heap.ptmalloc.Heap()\ndiff --git a/pwndbg/heap/dlmalloc.py b/pwndbg/heap/dlmalloc.py\ndeleted file mode 100644\n--- a/pwndbg/heap/dlmalloc.py\n+++ /dev/null\n@@ -1,11 +0,0 @@\n-#!/usr/bin/env python\n-# -*- coding: utf-8 -*-\n-\n-import gdb\n-\n-import pwndbg.events\n-import pwndbg.typeinfo\n-\n-\n-class Heap(pwndbg.heap.heap.BaseHeap):\n-    pass\n", "issue": "pwndbg gets stuck in GDB 10.1\n<!--\r\nBefore reporting a new issue, make sure that we do not have any duplicates already open.\r\nIf there is one it might be good to take part in the discussion there.\r\n\r\nPlease make sure you have checked that the issue persists on LATEST pwndbg version.\r\n\r\nBelow is a template for BUG REPORTS.\r\nDon't include it if this is a FEATURE REQUEST.\r\n-->\r\n\r\n\r\n### Description\r\npwndbg gets stuck in GDB 10.1\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\n### Steps to reproduce\r\n![Screenshot_20201227_212816](https://user-images.githubusercontent.com/16643669/103172053-aa50ad00-488b-11eb-9326-b8a5745d88aa.png)\r\n\r\n<!--\r\nWhat do we have to do to reproduce the problem?\r\nIf this is connected to particular C/asm code, \r\nplease provide the smallest C code that reproduces the issue.\r\n-->\r\n\r\n### My setup\r\n\r\n<!--\r\nShow us your gdb/python/pwndbg/OS/IDA Pro version (depending on your case).\r\n\r\nNOTE: We are currently supporting only Ubuntu installations.\r\nIt is known that pwndbg is not fully working e.g. on Arch Linux (the heap stuff is not working there).\r\nIf you would like to change this situation - help us improving pwndbg and supporting other distros!\r\n\r\nThis can be displayed in pwndbg through `version` command.\r\n\r\nIf it is somehow unavailable, use:\r\n* `show version` - for gdb\r\n* `py import sys; print(sys.version)` - for python\r\n* pwndbg version/git commit id\r\n-->\r\n```\r\nGdb:      10.1\r\nPython:   3.8.6 (default, Sep 30 2020, 04:00:38)  [GCC 10.2.0]\r\nPwndbg:   1.1.0\r\nCapstone: 4.0.1024\r\nUnicorn:  1.0.2\r\n```\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport pwndbg.heap.heap\nimport pwndbg.symbol\n\ncurrent = None\n\nheap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference')\n\n@pwndbg.events.new_objfile\ndef update():\n    import pwndbg.heap.dlmalloc\n    import pwndbg.heap.ptmalloc\n\n    global current\n\n\n    if pwndbg.symbol.address('ptmalloc_init'):\n        current = pwndbg.heap.ptmalloc.Heap()\n\n    else:\n        # Default to ptmalloc heap for now until\n        # there are more implementations\n        current = pwndbg.heap.ptmalloc.Heap()\n", "path": "pwndbg/heap/__init__.py"}, {"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport gdb\n\nimport pwndbg.events\nimport pwndbg.typeinfo\n\n\nclass Heap(pwndbg.heap.heap.BaseHeap):\n    pass\n", "path": "pwndbg/heap/dlmalloc.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport pwndbg.heap.heap\nimport pwndbg.symbol\n\ncurrent = None\n\nheap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference')\n\n@pwndbg.events.start\ndef update():\n    import pwndbg.heap.ptmalloc\n    global current\n    current = pwndbg.heap.ptmalloc.Heap()\n", "path": "pwndbg/heap/__init__.py"}, {"content": null, "path": "pwndbg/heap/dlmalloc.py"}]}