Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

Conversation

@mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Sep 22, 2018

I'm getting memory management errors, which seem hard to reproduce outside of Sage.
https://trac.sagemath.org/ticket/25097

Valgrind report is inconclusive.

Reviewing the PyQNormaliz source, I found a few suspicious places, but the segfaults persist.

PyObject * in_as_string = PyObject_Str( in );
const char* in_as_c_string = PyUnicodeToString( in_as_string ).c_str();
string s = PyUnicodeToString( in_as_string );
const char* in_as_c_string = s.c_str();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. s might be prematurely deleted. I looked at the C++-Reference, and indeed, the return value of c_str points to the internal memory of the string object.

return ret_val;
}

PyObject* NmzToPyList( mpq_class in ){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed unused, probably a left over from PyNormaliz.

in.get_fmpq_poly(current);
vector<mpq_class> output;
fmpq_poly2vector(output,current);
fmpq_poly2vector(output,current); // is this the correct length??
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand the length comment? There is no length given here. The function itself comes from e-antic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for being cryptic. Question is, do we want to represent number field elements by list of exactly the degree, or list of at most the degree of the number field (when some highest coefficients are 0).

Copy link
Owner

@sebasguts sebasguts Sep 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I personally do not care too much. The current solution is easy though, as the conversion function already exists. One could for example resize the vector using the element output handler function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm handling the current format, of course, in sage, so no change is needed. But I was surprised first.

NumberFieldCone * cone_ptr = reinterpret_cast<NumberFieldCone*>( PyCapsule_GetPointer( cone, cone_name ) );
delete cone_ptr->cone;
delete cone_ptr->nf;
//delete cone_ptr->nf;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure nf should not be deleted with the cone? It gets allocated in the cone constructor, see https://github.com/sebasguts/PyQNormaliz/blob/master/QNormalizModule.cpp#L542
Not deleting this would cause a memory leak.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this, but I am getting "pointer being freed was not allocated" without this patch. But since other things go wrong with the memory management that I have not been able to pin down, this may be a fix for the wrong thing.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you post the valgrind output, too? I am not able to compile the proper sage branch, and as you said, this does not happen in pure python.

}else{
to_compute = PyList_New( arg_len - 1 );
for( int i = 1;i<arg_len;i++){
for( int i = 1;i<arg_len;i++){ // Is i the correct index?? -mkoeppe
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am indeed. args[0] is the cone.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you are using it also as an index into to_compute, which seems off by one.
Is this tested?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I didn't see it, thank you. This needs to be fixed.

Did you try it with the segfault in sage? Cause I doubt that this causes it, as the segfault is when constructing the cone, not when computing something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Sage, I don't actually use NmzCompute at the moment, so this bug can't be the cause.

@sebasguts sebasguts merged commit 2bd3b91 into sebasguts:master Sep 22, 2018
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 22, 2018

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 22, 2018

The sage ticket should be easier to build now.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 22, 2018

OK here is a segfault that I can reproduce with pure Python:

egret:~/s/sage/sage-rebasing/worktree-clean (t/25097/public/25097/qnormaliz-algebraic)$ sage -python
Python 2.7.15 (default, Aug 30 2018, 15:16:44) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQNormaliz_cpp
>>> PyQNormaliz_cpp.NmzCone(**{'subspace': [], 'vertices': [[-1L, [[1L, 3L]], [[-1L, 9L]], 1L], [[[1L, 3L]], [[-1L, 9L]], -1L, 1L], [[[-1L, 9L]], -1L, [[1L, 3L]], 1L], [[[1L, 3L]], -1L, [[1L, 9L]], 1L], [-1L, [[1L, 9L]], [[1L, 3L]], 1L], [[[1L, 9L]], [[1L, 3L]], -1L, 1L], [[[-1L, 3L]], -1L, [[-1L, 9L]], 1L], [-1L, [[-1L, 9L]], [[-1L, 3L]], 1L], [[[-1L, 9L]], [[-1L, 3L]], -1L, 1L], [-1L, [[-1L, 3L]], [[1L, 9L]], 1L], [[[-1L, 3L]], [[1L, 9L]], -1L, 1L], [[[1L, 9L]], -1L, [[-1L, 3L]], 1L], [[[1L, 3L]], 1L, [[-1L, 9L]], 1L], [1L, [[-1L, 9L]], [[1L, 3L]], 1L], [[[-1L, 9L]], [[1L, 3L]], 1L, 1L], [1L, [[1L, 3L]], [[1L, 9L]], 1L], [[[1L, 3L]], [[1L, 9L]], 1L, 1L], [[[1L, 9L]], 1L, [[1L, 3L]], 1L], [1L, [[-1L, 3L]], [[-1L, 9L]], 1L], [[[-1L, 3L]], [[-1L, 9L]], 1L, 1L], [[[-1L, 9L]], 1L, [[-1L, 3L]], 1L], [[[-1L, 3L]], 1L, [[1L, 9L]], 1L], [1L, [[1L, 9L]], [[-1L, 3L]], 1L], [[[1L, 9L]], [[-1L, 3L]], 1L, 1L]], 'cone': []})
Segmentation fault: 11

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 22, 2018

With valgrind:

$ valgrind python
==29669== Memcheck, a memory error detector
==29669== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==29669== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==29669== Command: python
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100079606: tupledealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100033293: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA775: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x10173c020 is 0 bytes inside a block of size 32 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004CDF2: PyList_Append (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EF2FD: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EECB9: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3D2: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004CDF2: PyList_Append (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EF2FD: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEC59: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3D2: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100033261: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA775: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E7690: PyImport_ExecCodeModuleEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x101786020 is 112 bytes inside a block of size 3,075 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000EE3F7: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E7690: PyImport_ExecCodeModuleEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000EE37A: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E7690: PyImport_ExecCodeModuleEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100033261: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000795BB: tupledealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10003327A: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA775: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x10174b020 is 288 bytes inside a block of size 576 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004CDF2: PyList_Append (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EF2FD: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3D2: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004CDF2: PyList_Append (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EF2FD: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEC0C: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3D2: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100079606: tupledealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10003327A: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA775: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x101734020 is 11,472 bytes inside a block of size 12,581 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000EE3F7: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E7690: PyImport_ExecCodeModuleEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000EE37A: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E7690: PyImport_ExecCodeModuleEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100033337: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA775: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E7690: PyImport_ExecCodeModuleEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x101737020 is 1,200 bytes inside a block of size 1,384 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004E923: list_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3EF: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004CDF2: PyList_Append (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EF2FD: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEC59: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3D2: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100033329: code_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA775: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x10184f020 is 3,424 bytes inside a block of size 4,784 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004E923: list_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3EF: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CC8FD: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10004CDF2: PyList_Append (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EF2FD: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEA14: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EEBC2: r_object (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EE3D2: PyMarshal_ReadLastObjectFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA4AE: load_source_module (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000EA1DE: import_submodule (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E9C67: load_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000E8CA1: PyImport_ImportModuleLevel (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C1C46: builtin___import__ (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 8
==29669==    at 0x10006774A: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10006D923: _PyString_Resize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10003FF31: file_read (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE900: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x10186c020 is 16 bytes after a block of size 1,040 in arena "client"
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10011EBFA: match_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100046973: frame_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33F7: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x10186e020 is 4,016 bytes inside a block of size 4,096 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100AEC460: fclose (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x10003F8D6: close_the_file (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10004124E: file_close (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE2F9: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100AEFAEE: __smakebuf (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x100AF36C8: __srefill0 (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x100AEDEC7: __fread (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x100AEDE06: fread (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x10003FDC2: file_read (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE900: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013557: PyGrammar_AddAccelerators (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013BBE: PyParser_New (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001453B: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x101896020 is 240 bytes inside a block of size 556 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100017312: PyTokenizer_FromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014480: PyParser_ParseStringFlagsFilenameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100017240: PyTokenizer_FromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014480: PyParser_ParseStringFlagsFilenameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Conditional jump or move depends on uninitialised value(s)
==29669==    at 0x100067755: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001398E: PyNode_AddChild (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013E95: PyParser_AddToken (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001468A: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Use of uninitialised value of size 8
==29669==    at 0x10006776D: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001398E: PyNode_AddChild (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013E95: PyParser_AddToken (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001468A: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013A72: freechildren (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013A5B: freechildren (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013A5B: freechildren (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013A05: PyNode_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6AF5: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x1018f5020 is 320 bytes inside a block of size 640 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10001398E: PyNode_AddChild (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013E95: PyParser_AddToken (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001468A: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000677B1: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001398E: PyNode_AddChild (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013E95: PyParser_AddToken (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001468A: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F6ABA: PyParser_ASTFromString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F08: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DAC7D: compiler_unit_free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3A53: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F24: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x1018f7020 is 544 bytes inside a block of size 768 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10005D7CC: dictresize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB34E: compiler_add_o (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9920: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8C4D: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8C88: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D938C: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D458A: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3F1F: compiler_body (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D38EF: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F24: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10005D515: dictresize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB34E: compiler_add_o (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9920: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8CF8: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8C4D: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D458A: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3F1F: compiler_body (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D38EF: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F24: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10005EC88: dict_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100046A15: frame_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C710C: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D33E1: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x101893020 is 3,040 bytes inside a block of size 4,096 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100AEC460: fclose (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x10003F8D6: close_the_file (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10004124E: file_close (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10002125D: _PyObject_CallMethod_SizeT (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100041307: file_exit (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100020C12: PyObject_Call (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001AE18: PyObject_CallFunctionObjArgs (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D078F: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100AEFAEE: __smakebuf (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x100AF36C8: __srefill0 (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x100AEDEC7: __fread (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x100AEDE06: fread (in /usr/lib/system/libsystem_c.dylib)
==29669==    by 0x10003F653: Py_UniversalNewlineFread (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10003FA0C: readahead_get_line_skip (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10003EB29: file_iternext (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100038F5F: enum_next (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CDA88: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 8
==29669==    at 0x10006774A: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB103: compiler_nameop (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D4634: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3F1F: compiler_body (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D38EF: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F24: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x10190d020 is 464 bytes inside a block of size 768 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10005ECA6: dict_dealloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000FAD35: analyze_block (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F868D: PySymtable_Build (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D386D: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F24: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10005D515: dictresize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000FA3B8: analyze_block (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F868D: PySymtable_Build (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D386D: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5F24: PyRun_StringFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C74EC: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000CE206: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3305: fast_function (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
Python 2.7.15 (default, Aug 30 2018, 15:16:44) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
--29669-- run: /usr/bin/dsymutil "/Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/python2.7/lib-dynload/readline.so"
warning: (x86_64) /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/var/tmp/sage/build/python2-2.7.15.p0/src/build/temp.macosx-10.9-x86_64-2.7/Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/var/tmp/sage/build/python2-2.7.15.p0/src/Modules/readline.o unable to open object file: No such file or directory
warning: no debug symbols in executable (-arch x86_64)
--29669-- run: /usr/bin/dsymutil "/Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libncursesw.6.dylib"
warning: no debug symbols in executable (-arch x86_64)
--29669-- run: /usr/bin/dsymutil "/Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libtinfow.6.dylib"
warning: no debug symbols in executable (-arch x86_64)
>>> import PyQNormaliz_cpp
>>> PyQNormaliz_cpp.NmzCone(**{'subspace': [], 'vertices': [[-1L, [[1L, 3L]], [[-1L, 9L]], 1L], [[[1L, 3L]], [[-1L, 9L]], -1L, 1L], [[[-1L, 9L]], -1L, [[1L, 3L]], 1L], [[[1L, 3L]], -1L, [[1L, 9L]], 1L], [-1L, [[1L, 9L]], [[1L, 3L]], 1L], [[[1L, 9L]], [[1L, 3L]], -1L, 1L], [[[-1L, 3L]], -1L, [[-1L, 9L]], 1L], [-1L, [[-1L, 9L]], [[-1L, 3L]], 1L], [[[-1L, 9L]], [[-1L, 3L]], -1L, 1L], [-1L, [[-1L, 3L]], [[1L, 9L]], 1L], [[[-1L, 3L]], [[1L, 9L]], -1L, 1L], [[[1L, 9L]], -1L, [[-1L, 3L]], 1L], [[[1L, 3L]], 1L, [[-1L, 9L]], 1L], [1L, [[-1L, 9L]], [[1L, 3L]], 1L], [[[-1L, 9L]], [[1L, 3L]], 1L, 1L], [1L, [[1L, 3L]], [[1L, 9L]], 1L], [[[1L, 3L]], [[1L, 9L]], 1L, 1L], [[[1L, 9L]], 1L, [[1L, 3L]], 1L], [1L, [[-1L, 3L]], [[-1L, 9L]], 1L], [[[-1L, 3L]], [[-1L, 9L]], 1L, 1L], [[[-1L, 9L]], 1L, [[-1L, 3L]], 1L], [[[-1L, 3L]], 1L, [[1L, 9L]], 1L], [1L, [[1L, 9L]], [[-1L, 3L]], 1L], [[[1L, 9L]], [[-1L, 3L]], 1L, 1L]], 'cone': []})
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100019D69: tok_nextc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100017DCE: PyTokenizer_Get (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014576: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5C3F: PyParser_ASTFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5A94: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Address 0x1019db020 is 0 bytes inside a block of size 3,725 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10006D923: _PyString_Resize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10008E78A: PyUnicodeUCS4_EncodeUTF8 (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100019CEE: tok_nextc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100017DCE: PyTokenizer_Get (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014576: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5C3F: PyParser_ASTFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5A94: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x100009681: malloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10006CC69: PyString_FromStringAndSize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10008E621: PyUnicodeUCS4_EncodeUTF8 (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100019CEE: tok_nextc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100017DCE: PyTokenizer_Get (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014576: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5C3F: PyParser_ASTFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5A94: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669== 
==29669== Invalid read of size 8
==29669==    at 0x10006774A: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001398E: PyNode_AddChild (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100013E95: PyParser_AddToken (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10001468A: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5C3F: PyParser_ASTFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5A94: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Address 0x1019dc020 is 304 bytes inside a block of size 959 free'd
==29669==    at 0x100009ABD: free (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x100019D69: tok_nextc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100017DCE: PyTokenizer_Get (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014576: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5C3F: PyParser_ASTFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5A94: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x10006D923: _PyString_Resize (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10008E78A: PyUnicodeUCS4_EncodeUTF8 (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100019CEE: tok_nextc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100017DCE: PyTokenizer_Get (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100014576: parsetok (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5C3F: PyParser_ASTFromFile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5A94: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669== 
==29669== Conditional jump or move depends on uninitialised value(s)
==29669==    at 0x100067755: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8134: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Use of uninitialised value of size 8
==29669==    at 0x10006776D: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8134: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Conditional jump or move depends on uninitialised value(s)
==29669==    at 0x100067755: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8FBD: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Use of uninitialised value of size 8
==29669==    at 0x10006776D: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8FBD: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 8
==29669==    at 0x10006774A: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8134: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x1019e6020 is 1,264 bytes inside a block of size 1,536 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8FBD: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8134: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 8
==29669==    at 0x10006774A: PyObject_Realloc (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8FBD: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Address 0x1019e6020 is 1,264 bytes inside a block of size 1,536 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8FBD: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8134: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DA67D: assemble (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3A44: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Address 0x1019ec020 is 16 bytes after a block of size 1,072 in arena "client"
==29669== 
==29669== Invalid read of size 4
==29669==    at 0x100067548: PyObject_Free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000DAC7D: compiler_unit_free (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3A53: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Address 0x1019e8020 is 4,720 bytes inside a block of size 6,144 free'd
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8FBD: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==  Block was alloc'd at
==29669==    at 0x10000A0E6: realloc (in /usr/local/Cellar/valgrind/3.12.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==29669==    by 0x1000DB3EC: compiler_next_instr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8134: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D8EA9: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D86D2: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D9567: compiler_visit_expr (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D52C3: compiler_visit_stmt (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000D3988: PyAST_Compile (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5AFB: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669== 
==29669== Invalid read of size 8
==29669==    at 0x10006D846: PyString_AsString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x101EB8E78: _NmzQCone(_object*, _object*, _object*) (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/python2.7/site-packages/PyQNormaliz_cpp.so)
==29669==    by 0x1000CF202: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5B15: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  Address 0x8 is not stack'd, malloc'd or (recently) free'd
==29669== 
==29669== 
==29669== Process terminating with default action of signal 11 (SIGSEGV)
==29669==  Access not within mapped region at address 0x8
==29669==    at 0x10006D846: PyString_AsString (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x101EB8E78: _NmzQCone(_object*, _object*, _object*) (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/python2.7/site-packages/PyQNormaliz_cpp.so)
==29669==    by 0x1000CF202: PyEval_EvalFrameEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6DC6: PyEval_EvalCodeEx (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000C6575: PyEval_EvalCode (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F5B15: PyRun_InteractiveOneFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F55DD: PyRun_InteractiveLoopFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x1000F547A: PyRun_AnyFileExFlags (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x10010A9CC: Py_Main (in /Users/mkoeppe/s/sage/sage-rebasing/worktree-clean/local/lib/libpython2.7.dylib)
==29669==    by 0x100A555AC: start (in /usr/lib/system/libdyld.dylib)
==29669==  If you believe this happened as a result of a stack
==29669==  overflow in your program's main thread (unlikely but
==29669==  possible), you can try to increase the size of the
==29669==  main thread stack using the --main-stacksize= flag.
==29669==  The main thread stack size used in this run was 8388608.
==29669== 
==29669== HEAP SUMMARY:
==29669==     in use at exit: 1,198,102 bytes in 1,274 blocks
==29669==   total heap usage: 4,322 allocs, 3,048 frees, 3,340,201 bytes allocated
==29669== 
==29669== LEAK SUMMARY:
==29669==    definitely lost: 99,328 bytes in 27 blocks
==29669==    indirectly lost: 6,209 bytes in 25 blocks
==29669==      possibly lost: 24,654 bytes in 87 blocks
==29669==    still reachable: 1,008,912 bytes in 964 blocks
==29669==         suppressed: 58,999 bytes in 171 blocks
==29669== Rerun with --leak-check=full to see details of leaked memory
==29669== 
==29669== For counts of detected and suppressed errors, rerun with: -v
==29669== Use --track-origins=yes to see where uninitialised values come from
==29669== ERROR SUMMARY: 368 errors from 26 contexts (suppressed: 123 from 1)
Segmentation fault: 11

@sebasguts
Copy link
Owner

@mkoeppe The code above is a segfault, true, but certainly not the one you were looking for.
The segfault here comes from the missing number field data.
I just pushed a patch for this. Now we get a sensible error.

@sebasguts
Copy link
Owner

I will try to get a working sage to build. If you have a working build, a backtrace of the segfault would be helpful (by running sage in gdb and providing the output of bt after the crash. But as said, I will try to get it to work on my computer, too.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 22, 2018

Thanks for the quick fix!

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 22, 2018

I guess it would be better though if it would just compute over Q, just like QNormaliz does.

@sebasguts
Copy link
Owner

Yeah, but certainly this should be done via GMP, not via e-antic then, I guess. But otherwise this is a sensible thing to do.

Anyway, the fix does not really help with the problems in sage, unfortunately...

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 23, 2018

OK it seems that the segfaults have gone away.

One thing I noticed is that any exception raised in rational_handler etc. will cause a segfault. I have put a try...except around it in my sage code, but it would be better if this were handled gracefully in PyQNormaliz.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 23, 2018

Could you make a new release for the sage ticket?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 23, 2018 via email

@sebasguts
Copy link
Owner

So, I do not really understand this right now. Yours and my patch together made the segfaults go away?

Anyway, I released 1.2

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 23, 2018

Thank you for the release. Ticket https://trac.sagemath.org/ticket/25097 seems to work fine with it.
After fixing the build mess on the sage ticket (which used 2 versions of the FLINT library...), the segfaults that remained were fixed by this patch and by fixing the number field handler in a corner case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants