Repository: rust
Issue: rust-gdb: "Python Exception <class 'OverflowError'> int too big to convert: "
Labels: A-debuginfo,T-compiler,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->
Note: this report may be in the wrong place, but it's not clear where rust-gdb bugs go.

I tried this code:

```rust
rust-gdb scenetest 
```

I expected to see this happen: *Normal GDB operation"

Instead, this happened: *Python errors from within GDB, followed by GDB hung and unable to accept more commands*

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.57.0 (f1edd0429 2021-11-29)


rust-gdb --version
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.

```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>
This is inside rust-gdb, looking at a backtrace, rather than rust-gdb itself having a crash.

```
bt
#0  __lll_lock_wait (futex=futex@entry=0x5555585aed70, private=0) at lowlevellock.c:52
#1  0x00007ffff7d820a3 in __GI___pthread_mutex_lock (mutex=0x5555585aed70) at ../nptl/pthread_mutex_lock.c:80
#2  0x0000555555ecf92e in std::sys::unix::mutex::Mutex::lock (self=0x5555585aed70)
    at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys/unix/mutex.rs:63
#3  0x0000555555ec135d in std::sys_common::mutex::MovableMutex::raw_lock (self=0x55555857cf80)
    at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/mutex.rs:76
#4  0x0000555555eac505 in std::sync::mutex::Mutex<T>::lock (self=0x55555857cf80)
    at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sync/mutex.rs:267
#5  0x0000555555e53026 in slscene::render::renderface::RenderFace::get_missing_texture_assets (self=0x7fff38008000, base=0x5555584a1e30)
    at slscene/src/render/renderface.rs:171
#6  0x0000555555e5424e in slscene::render::renderface::RenderFace::load_needed_textures (base=0x5555584a1e30, scene_object=0x7fff3870ab00, face_index=0)
    at slscene/src/render/renderface.rs:280
#7  0x0000555555e9d9a0 in slscene::render::renderscene::SceneObject::recalc_lod (self=0x7fff3870ab00, scene=0x7fff60dfd8d0, camera_pos=0x7fff60dfd4c0)
    at slscene/src/render/renderscene.rs:503
#8  0x00005555557fe927 in scenetest::dummyscene::DummyWorldScene::recalc_all_object_lods (scene=0x7fff60dfd8d0, camera_pos=0x7fff60dfd4c0, objects=Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
....
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
Python Exception <class 'OverflowError'> int too big to convert: 
^CPython Exception <class 'KeyboardInterrupt'> <class 'KeyboardInterrupt'>: 
^CPython Exception <class 'KeyboardInterrupt'> Quit: 
Python Exception <class 'IndexError'> list index out of range: 
Python Exception <class 'IndexError'> list index out of range: 
Python Exception <class 'IndexError'> list index out of range: 
Python Exception <class 'IndexError'> list index out of range: 
```
</p>
</details>