View Issue Details

IDProjectCategoryView StatusLast Update
0001960GNUnetNSE servicepublic2011-11-30 18:38
ReporterBart Polot Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Target Version0.9.0Fixed in Version0.9.0 
Summary0001960: NSE misuses GNUNET_CRYPTO_random_u32
Description[bart@saturn ~/svn/gnunet/src/nse]$ ./gnunet-nse-profiler -c nse_profiler_test.conf
Hostkeys created Progress: [0%...........25%............50%............75%............100%]
Peers started Progress: [0%...........25%............50%............75%............100%]
Peer connection Progress: [0%............25%............50%.............75%............100%]
Nov 24 14:48:34-830759 nse-profiler-22630 WARNING Have 9912 connections
Nov 24 14:48:35-161367 nse-29752 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-161836 arm-23364 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-280479 nse-29939 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-281842 arm-25858 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-302824 nse-29704 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-303091 nse-29822 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-303445 arm-22710 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-303711 arm-25165 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-318811 nse-29740 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-319200 arm-23407 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-328895 nse-29780 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-329288 arm-25306 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-330206 nse-29920 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-330577 arm-25788 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-334443 nse-29807 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-334750 arm-25247 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-368176 nse-29798 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-369539 arm-25230 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-393443 nse-29862 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-394107 nse-29805 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-394217 arm-25510 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-397420 arm-25235 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-401157 nse-29829 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-402691 arm-25088 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-434907 nse-29816 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-435939 arm-25167 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-480734 nse-29705 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-481147 nse-29734 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-481455 arm-22699 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-481595 arm-23421 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-485118 nse-29806 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-486528 arm-25241 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-488631 nse-30041 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-489145 arm-25022 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-489241 nse-29707 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-489835 arm-22691 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-496597 nse-29778 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-497244 nse-29791 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-497347 nse-29863 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-501000 arm-25307 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-501786 arm-25227 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-502180 nse-29930 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-502704 arm-25864 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-503995 arm-25513 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-516786 nse-29724 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-517253 arm-22659 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-520192 nse-29927 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-521578 arm-25790 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-539113 nse-29742 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-539448 arm-23378 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-540355 nse-29710 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-540723 arm-22674 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-560244 core-25596 ERROR Assertion failed at gnunet-service-core_clients.c:617.
Nov 24 14:48:35-560674 arm-25582 WARNING Service `core' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-565486 nse-29880 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-568070 arm-25586 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-567166 nse-29969 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-569529 arm-26032 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-580352 nse-29843 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-581468 nse-29723 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-581526 nse-29954 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-586268 arm-25099 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-581916 nse-29812 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-586583 arm-26061 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-586274 arm-22658 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-587398 arm-25169 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-731415 nse-29997 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-732251 arm-26203 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-732702 nse-30029 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-733485 arm-25028 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-733763 nse-29884 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-734052 arm-25589 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-741707 nse-29946 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-742018 arm-25850 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-747776 nse-29964 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-748960 arm-26031 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-772503 nse-29959 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-772768 nse-29828 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-772917 arm-26058 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-773134 nse-30026 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-773341 arm-25162 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-775117 arm-25027 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-817477 nse-29985 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-818355 arm-26016 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-820967 nse-29796 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-821666 arm-25234 WARNING Service `nse' terminated with status signal/6, will try to restart it!
Nov 24 14:48:35-836913 nse-29977 ERROR Assertion failed at crypto_random.c:105.
Nov 24 14:48:35-837399 nse-29743 ERROR Assertion failed at crypto_random.c:105.
Steps To ReproduceRun nse_profiler with:

[testing]
NUM_PEERS = 1000
WEAKRANDOM = YES
TOPOLOGY = NONE
CONNECT_TOPOLOGY = ERDOS_RENYI
CONNECT_TOPOLOGY_OPTION = CONNECT_MINIMUM
CONNECT_TOPOLOGY_OPTION_MODIFIER = 5
PERCENTAGE = 3
#PROBABILITY = .1
F2F = NO
CONNECT_TIMEOUT = 360 s
CONNECT_ATTEMPTS = 3
#DEBUG = YES
HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat
MAX_CONCURRENT_SSH = 20
USE_PROGRESSBARS = YES
PEERGROUP_TIMEOUT = 1000 s
TOPOLOGY_OUTPUT_FILE = nse_topo_1000_peers_initial
MAX_OUTSTANDING_CONNECTIONS = 200
#SINGLE_PEERINFO_PER_HOST = YES
#NUM_PEERINFO_PER_HOST = 10
#SINGLE_STATISTICS_PER_HOST = YES
#NUM_STATISTICS_PER_HOST = 10
DELETE_FILES = NO

[nse-profiler]
#OUTPUT_FILE = nse_output_100_peers.dat
TOPOLOGY_OUTPUT_FILE = nse_topo_100_peers
#DATA_OUTPUT_FILE = nse_topo_100_peers_stats
#ROUND0 = 90
#ROUND1 = 100
#ROUND2 = 50
#ROUND3 = 100
#ROUND2 = 500
#ROUND3 = 1000
WAIT_TIME = 19200 s
CONNECTION_LIMIT = 10

[nse]
PORT = 0
UNIXPATH = /tmp/test-nse-service-nse.unix
BINARY = gnunet-service-nse
#PREFIX = valgrind --leak-check=full --log-file=valgrind_nse.%p
AUTOSTART = YES
DEBUG = NO
CONFIG = $DEFAULTCONFIG
# Overriding network settings for faster testing (do NOT use
# these values in production just because they are here)
WORKDELAY = 60 s
INTERVAL = 60s
WORKBITS = 0
PROOFFILE = $SERVICEHOME/nse.proof
TagsNo tags attached.

Activities

Bart Polot

2011-11-24 16:00

reporter   ~0004970

(gdb) bt
#0 0x00007f02a270e965 in raise () from /lib/libc.so.6
#1 0x00007f02a270fddb in abort () from /lib/libc.so.6
#2 0x00007f02a3ba9e39 in GNUNET_abort () at common_logging.c:273
#3 0x00007f02a3bba478 in GNUNET_CRYPTO_random_u32 (mode=GNUNET_CRYPTO_QUALITY_WEAK, i=0) at crypto_random.c:105
#4 0x0000000000403088 in get_delay_randomization (matching_bits=6) at gnunet-service-nse.c:440
#5 get_transmit_delay (round_offset=<optimized out>) at gnunet-service-nse.c:507
#6 0x00000000004040a0 in update_flood_times (cls=<optimized out>, key=<optimized out>, value=0xa44a00)
    at gnunet-service-nse.c:958
#7 0x00007f02a3bb5536 in GNUNET_CONTAINER_multihashmap_iterate (map=0xa43c30, it=0x404040 <update_flood_times>,
    it_cls=0xa44c20) at container_multihashmap.c:213
#8 0x0000000000402f0b in handle_p2p_size_estimate (cls=<optimized out>, peer=<optimized out>, message=0x7fffe6e6dcf0,
    atsi=<optimized out>, atsi_count=<optimized out>) at gnunet-service-nse.c:1116
#9 0x00007f02a3993bf7 in main_notify_handler (cls=0xa43cb0, msg=0x7fffe6e6dc90) at core_api.c:993
#10 0x00007f02a3ba71ca in receive_task (cls=0xa43980, tc=<optimized out>) at client.c:541
#11 0x00007f02a3bcf004 in run_ready (ws=0xa42da0, rs=0xa42250) at scheduler.c:684
#12 GNUNET_SCHEDULER_run (task=<optimized out>, task_cls=<optimized out>) at scheduler.c:864
#13 0x00007f02a3bd7b46 in GNUNET_SERVICE_run (argc=3, argv=<optimized out>, serviceName=<optimized out>,
    opt=<optimized out>, task=<optimized out>, task_cls=0x0) at service.c:1584
#14 0x0000000000401f69 in main (argc=<optimized out>, argv=<optimized out>) at gnunet-service-nse.c:1433

Christian Grothoff

2011-11-24 17:12

manager   ~0004972

Fixed in SVN 18305.

Issue History

Date Modified Username Field Change
2011-11-24 14:57 Bart Polot New Issue
2011-11-24 14:57 Bart Polot Status new => assigned
2011-11-24 14:57 Bart Polot Assigned To => Bart Polot
2011-11-24 16:00 Bart Polot Note Added: 0004970
2011-11-24 17:12 Christian Grothoff Assigned To Bart Polot => Christian Grothoff
2011-11-24 17:12 Christian Grothoff Note Added: 0004972
2011-11-24 17:12 Christian Grothoff Status assigned => resolved
2011-11-24 17:12 Christian Grothoff Fixed in Version => 0.9.0
2011-11-24 17:12 Christian Grothoff Resolution open => fixed
2011-11-30 18:38 Christian Grothoff Status resolved => closed