[Skip Montanaro <skip.montan...@gmail.com>]
> ...
> I thought setting PYTHONTRACEMALLOC should provoke some useful output,
> but I was confused into thinking I was (am?) still missed something
> because it continued to produce this message:
>
> Enable tracemalloc to get the memory block allocation traceback

Ah, I overlooked that.


> which suggests to me tracemalloc still isn't enabled. That's emitted
> from Modules/_tracemalloc.c and seems to be properly protected:
>
>     if (!_Py_tracemalloc_config.tracing) {
>         PUTS(fd, "Enable tracemalloc to get the memory block "
>                  "allocation traceback\n\n");
>         return;
>     }
>
> so I think there is still more to do.

Agreed - for whatever reason, tracemalloc is not enabled for you at
the time your run dies, despite your

> % PYTHONTRACEMALLOC=5 ./python ./Tools/scripts/run_tests.py -R
5:50:reflog.txt test_rattlesnake

command line.  Have to leave that mystery for Victor!

So between the "obvious" possibilities:

- something is going nuts spraying 0 all over memory

- the pointer passed to free() wasn't actually obtained from a
malloc/realloc function

there's nothing in the output to favor one over the other.  Except
that dereferencing addresses near the pointer didn't blow up (null
bytes were returned), so the pointer is at least in the process's
address space.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/74XUF5UNOID5YZ2EOUJD5YXOSNHIBEGT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to