Shallot
Shallot copied to clipboard
Segmentation fault (core dumped)
./shallot ^test Segmentation fault (core dumped) .....
Оne of the four normal. Observed only on AWS.
uname -a Linux ip-172-31-19-207 3.2.0-54-virtual #82-Ubuntu SMP Tue Sep 10 20:31:18 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
free -g total used free shared buffers cached 29 0 28 0 0 0
That happens to me very often too.
Gentoo Linux desktop 3.17.1 #1 SMP Sat Oct 18 00:33:19 MSK 2014 x86_64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz GenuineIntel GNU/Linux
Core was generated by `./shallot -t 17 ^asdfgh'.
Program terminated with signal 11, Segmentation fault.
#0 sha1_block_data_order_avx () at sha1-x86_64.s:3395
3395 sha1-x86_64.s: No such file or directory.
(gdb) bt
#0 sha1_block_data_order_avx () at sha1-x86_64.s:3395
#1 0x5ef311e522033fcc in ?? ()
#2 0xc3e4152c111613eb in ?? ()
#3 0x7eaec7c3e98f2d89 in ?? ()
#4 0x2b3f17bcb2f99615 in ?? ()
#5 0x226fca36e6987e54 in ?? ()
#6 0x30411997fd666f51 in ?? ()
#7 0x66f812cd197e37b8 in ?? ()
#8 0xbaef2237c43667f5 in ?? ()
#9 0x00007fae9ecfc64f in state () from /usr/lib64/libcrypto.so.1.0.0
#10 0x00007fae98001290 in ?? ()
#11 0x0000000000000010 in ?? ()
#12 0x00007fae9e99be30 in SHA1_Update (c=0xaab72fae, data_=
Could that be the off by one error referenced here: https://github.com/katmagic/Shallot/pull/9 ?
The SHA1_CTX is located directly after the onion buffer, where mentioned bug lead to base32_onion writing a \0 after the onion buffer.