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

when I run cifar10 with tiny-cnn in examples, I get this error: #300

Closed
haibarasiao opened this issue Aug 30, 2016 · 4 comments
Closed

when I run cifar10 with tiny-cnn in examples, I get this error: #300

haibarasiao opened this issue Aug 30, 2016 · 4 comments
Labels

Comments

@haibarasiao
Copy link

*** Error in `/home/haibara/workspace/tiny_cnn/Debug/tiny_cnn': corrupted double-linked list: 0x000000002b792500 ***

and I seems that in network.h line 687, this problem occur.

The dataset is cifar-10 dataset.
any suggestions?

@haibarasiao
Copy link
Author

and it seems that when function 'train_onebatch'(in network.h line 674) has ended, it occurred.

@edgarriba
Copy link
Member

@haibarasiao thanks for the feeback!
What's your batch size? Could you also provide the backtrace log you get?

@edgarriba edgarriba added the bug label Aug 30, 2016
@haibarasiao
Copy link
Author

batch_size is 10(default)

Thread #1 [tiny_cnn] 28375 [core: 1](Suspended : Signal : SIGABRT:Aborted)
__GI_raise() at raise.c:56 0x7ffff700dcc9
__GI_abort() at abort.c:89 0x7ffff70110d8
__libc_message() at libc_fatal.c:175 0x7ffff704a394
malloc_printerr() at malloc.c:4,996 0x7ffff70550f7
_int_free() at malloc.c:3,996 0x7ffff70567a7
tiny_dnn::aligned_allocator<float, 64ul>::aligned_free() at aligned_allocator.h:133 0x49e014
tiny_dnn::aligned_allocator<float, 64ul>::deallocate() at aligned_allocator.h:80 0x495543
std::_Vector_base<float, tiny_dnn::aligned_allocator<float, 64ul> >::_M_deallocate() at stl_vector.h:174 0x48c8c4
std::_Vector_base<float, tiny_dnn::aligned_allocator<float, 64ul> >::~_Vector_base() at stl_vector.h:160 0x489bcb
std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >::~vector() at stl_vector.h:416 0x482075
std::_Destroy<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > >() at stl_construct.h:93 0x4a485a
std::Destroy_aux::__destroy<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >>() at stl_construct.h:103 0x49c048
std::Destroy<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >>() at stl_construct.h:126 0x492d9c
std::Destroy<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > >() at stl_construct.h:151 0x48a099
std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > >::~vector() at stl_vector.h:415 0x482563
std::_Destroy<std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > > >() at stl_construct.h:93 0x4a525b
std::Destroy_aux::__destroy<std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > >>() at stl_construct.h:103 0x49d184
std::Destroy<std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > >>() at stl_construct.h:126 0x494433
std::Destroy<std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > >, std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > > >() at stl_construct.h:151 0x48b4cf
std::vector<std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > >, std::allocator<std::vector<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> >, std::allocator<std::vector<float, tiny_dnn::aligned_allocator<float, 64ul> > > > > >::~vector() at stl_vector.h:415 0x4834c1
<...more frames...>

@nyanp
Copy link
Member

nyanp commented Oct 3, 2016

The memory corruption in Cifar-10 default example was solved in v1.0.0alpha. Thank you very much for reporting :)

@nyanp nyanp closed this as completed Oct 3, 2016
Randl pushed a commit to Randl/tiny-cnn that referenced this issue Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants