STINNER Victor added the comment:

> Turns out the type->length of the the globally initialized ptr types is 
> wrong: It is 4 instead of 8, causing the cast to fail. I suspect the 
> initialization is done before the executable is loaded and gdb is using some 
> default.

Hum. I see two options:

* try late initialization: initialize types at the first usage
* remove variables: always lookup types at runtime

Would you like to try to implement these options?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26799>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to