Skip to content

Instantly share code, notes, and snippets.

@dubslow
Created July 28, 2014 21:48
Show Gist options
  • Save dubslow/6d73f15a3a96794abcd1 to your computer and use it in GitHub Desktop.
Save dubslow/6d73f15a3a96794abcd1 to your computer and use it in GitHub Desktop.
libsodium segfault
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd93b2700 (LWP 29865)]
fcontract (input=<synthetic pointer>, output=0x7fffd37333b8 <Address 0x7fffd37333b8 out of bounds>)
at crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c:284
284 crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c: No such file or directory.
(gdb) bt
#0 fcontract (input=<synthetic pointer>, output=0x7fffd37333b8 <Address 0x7fffd37333b8 out of bounds>)
at crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c:284
#1 crypto_scalarmult_curve25519 (mypublic=mypublic@entry=0x7fffd37333b8 <Address 0x7fffd37333b8 out of bounds>,
secret=secret@entry=0x7fffd37333d8 <Address 0x7fffd37333d8 out of bounds>,
basepoint=basepoint@entry=0x7ffff7798520 <basepoint> "\t")
at crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c:452
#2 0x00007ffff77903c4 in crypto_scalarmult_curve25519_base (
q=q@entry=0x7fffd37333b8 <Address 0x7fffd37333b8 out of bounds>,
n=n@entry=0x7fffd37333d8 <Address 0x7fffd37333d8 out of bounds>)
at crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c:10
#3 0x00007ffff775854a in crypto_box_curve25519xsalsa20poly1305_keypair (
pk=pk@entry=0x7fffd37333b8 <Address 0x7fffd37333b8 out of bounds>,
sk=sk@entry=0x7fffd37333d8 <Address 0x7fffd37333d8 out of bounds>)
at crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c:11
#4 0x00007ffff7757e0d in crypto_box_keypair (pk=pk@entry=0x7fffd37333b8 <Address 0x7fffd37333b8 out of bounds>,
sk=sk@entry=0x7fffd37333d8 <Address 0x7fffd37333d8 out of bounds>) at crypto_box/crypto_box.c:55
#5 0x00007ffff7bbefb5 in new_crypto_connection (c=<optimized out>,
real_public_key=0x7fffd40c4ba0 "\373\211V!Vh\276\333\335\037\063\063z\305[\206\200\260\312fk'\326\210L\242j3\233\252)\006\001") at ../toxcore/net_crypto.c:1509
#6 0x00007ffff7bc67f4 in friend_new_connection (real_public_key=<optimized out>, friendnumber=1, m=0x7fffd4002f20)
at ../toxcore/Messenger.c:2237
#7 do_friends (m=m@entry=0x7fffd4002f20) at ../toxcore/Messenger.c:2276
#8 0x00007ffff7bc6c3e in do_messenger (m=0x7fffd4002f20) at ../toxcore/Messenger.c:2391
#9 0x000000000043f15d in Core::process() ()
#10 0x00007ffff58e116e in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff58ee648 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff58e23db in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff68beb0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#14 0x00007ffff68c3d6e in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff58b4543 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff5907885 in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff5907cf9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff36d4e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff36d5048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff36d50ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff59088c7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ffff58b1ec2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007ffff5684fdc in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007ffff5689c6f in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007ffff50abe0e in start_thread (arg=0x7fffd93b2700) at pthread_create.c:311
#26 0x00007ffff45c20fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment