Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tflite micro: segfault after failing to allocate tensors in MicroAllocator #36533

Closed
exFalso opened this issue Feb 7, 2020 · 1 comment
Closed
Assignees
Labels
comp:lite TF Lite related issues comp:micro Related to TensorFlow Lite Microcontrollers type:bug Bug

Comments

@exFalso
Copy link
Contributor

exFalso commented Feb 7, 2020

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): no
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Arch Linux, NixOS
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: nope
  • TensorFlow installed from (source or binary): source
  • TensorFlow version (use command below): latest master
  • Python version: C++
  • Bazel version (if compiling from source): nope, Make
  • GCC/Compiler version (if compiling from source): 8.3.0
  • CUDA/cuDNN version: nope
  • GPU model and memory: nope

Describe the current behavior

tflite::MicroInterpreter constructor segfaults

Describe the expected behavior

it shouldn't segfault

Code to reproduce the issue

grrr call MicroInterpreter constructor with a small arena_size

Other info / logs
Fix:

"Failed to allocate memory for context->tensors, %d bytes required",
this conditional should return an error code instead of continuing. PR coming up

@ravikyram ravikyram added comp:lite TF Lite related issues comp:micro Related to TensorFlow Lite Microcontrollers type:bug Bug labels Feb 10, 2020
@ravikyram ravikyram assigned ymodak and unassigned ravikyram Feb 10, 2020
@ymodak ymodak assigned wangtz and unassigned ymodak Feb 14, 2020
@tensorflow-bot
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues comp:micro Related to TensorFlow Lite Microcontrollers type:bug Bug
Projects
None yet
Development

No branches or pull requests

4 participants