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

TensorFlow Fold crash #13

@girving

Description

@girving

Background: deepmath has tensorflow and fold submodules. model_utils_test exercises fold features, and crashes on Mac with

Python(5066,0x7fffcaea83c0) malloc: *** error for object 0x10b2ba238: pointer being freed was not allocated

The stacktrace looks like

(lldb) bt
* thread #4: tid = 0xe86c7, 0x00007fffc2189dd6 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * frame #0: 0x00007fffc2189dd6 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fffc2275787 libsystem_pthread.dylib`pthread_kill + 90
    frame #2: 0x00007fffc20ef420 libsystem_c.dylib`abort + 129
    frame #3: 0x00007fffc21df03f libsystem_malloc.dylib`free + 530
    frame #4: 0x000000010b1715cb _deserializing_weaver_op.so`tensorflow::OpDef::SharedDtor() + 107
    frame #5: 0x000000010b17141c _deserializing_weaver_op.so`tensorflow::OpDef::~OpDef() + 28
    frame #6: 0x000000010b10276d _deserializing_weaver_op.so`_GLOBAL__sub_I_deserializing_weaver_op.cc + 317
...

It looks like some TensorFlow symbols are duplicated in the _pywrapweaver.so file, but not all of them:

% nm ./org_fold/tensorflow_fold/loom/_pywrapweaver.so
...
0000000000070e50 T __ZN10tensorflow5OpDef10SharedDtorEv
...
             U __ZN10tensorflow11TensorShape9InsertDimEix

It's possible that proto symbols are being duplicated and non-proto symbols are not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions