Neptune-Crypto / neptune-core

anonymous peer-to-peer cash
Apache License 2.0
24 stars 7 forks source link

Bug in test `test_verify_aocl_membership`? #54

Closed Sword-Smith closed 11 months ago

Sword-Smith commented 11 months ago

Got this error when I ran make all

failures:

---- models::blockchain::transaction::validity::tasm::verify_aocl_membership::tests::test_verify_aocl_membership stdout ----
testing tasm_neptune_transaction_verify_aocl_membership with seed: [88, 6c, 38, 2a, d5, ab, ae, c5, 24, 7b, 32, 86, ba, 27, bf, e6, 62, 8b, 8c, f8, 95, dc, fb, 7, c1, 29, 28, bb, b0, 4, c4, f2]
peaks_size: 21
peaks: 05066486194154640795,17413797850231566203,00654834929566861940,09897481016309641385,14061745508353870737,16388283581567414466,07596361868548659159,06237418848280309560,15038203834628147510,07566174216091740263,12482056902160088880,03165455463149126886,17481829100789796397,09511430253383066024,03079331850358949689,04780152992467735353,13837934149453499982,07509238825361712009,11659352511448266286,17776777643383288559
mp_size: 1087
memproof li: 30
memproof ap: 04031956590237556247,15617322817194288667,03830318200707708846,05997421369075844411,18019428535461650178,18184095660234220520,12345741493881402408,16968437508831578618,16278711592680057906,06198382705057116797,02906072477413761516,00546735302677993998,02631248568762869647,18374163412708859115,12147050931484698970,04318176018631790270,01265439173207140747,10512667742570410565,10088837967414671789,12046644905999327342,01821714922019627445,10164878468471771301,07488622637069750345,15487554087767029072,06462704550492569653,13057998414347645955,09056455458540156859,15897291738998999904,17246069855521398274,17184571538618921662
RS validation_result: true
linking with preallocated memory ... number of statically allocated words: 1
testing tasm_neptune_transaction_verify_aocl_membership with seed: [fa, 6d, 29, 8f, 31, 70, 36, 4c, a7, 21, f6, 26, 28, dc, f2, a, 75, e4, e0, 99, 85, cb, 68, 8b, 97, c3, cd, ec, 33, 6f, 8a, f3]
peaks_size: 26
peaks: 13683262623216127917,04264436816844208099,05783405414663913800,06742274221706837029,17766160209753814685,03402721357455898120,17576048966213253781,03339419754102101555,14262299325361645879,06787750327228757635,11397864991983692141,10644974672372917064,13470005604344260669,15656877817628291492,01681000267720966161,06121803462198878329,16645952750211375467,03832927464065320881,00033053972598349384,03917939245731477061,14075521269033944859,14270140395523006183,11399524692536965552,03262497858717203791,09647809314504113651
mp_size: 1131
memproof li: 31
memproof ap: 09340146041473910312,02277232645780773146,16424160089549200878,11562577384552631884,09678976460994123144,04665332032215229174,16088489202219872602,03737294622064883861,06280817998569552135,10746320135491619354,02079809267055656643,01649077212708036992,15475130229334674641,10260454859039728395,12844444336104463855,05096830338406324468,18220900349994044695,16080367085185800034,10161627254232500271,06790360132900076369,01035556548005602773,15699520764297698282,15418946837000371608,17056932385892258312,16219949853060786136
RS validation_result: true
linking with preallocated memory ... number of statically allocated words: 1
testing tasm_neptune_transaction_verify_aocl_membership with seed: [9c, 1f, a5, 66, 80, 93, e3, f, f0, 3e, d9, 7c, 5f, 51, d4, 47, 9e, 57, ec, 69, 1a, d9, fd, 15, 80, 8b, 11, 3e, dd, 34, 61, 79]
peaks_size: 21
peaks: 15695248940384328533,09576225173747846113,03752160251911269382,15435796601625791254,05855892629232422504,08014919839837760688,06876134685004345284,01661054177886699802,07975565241794843395,14177149679128690132,03752178765203145948,00413580651505473109,17071941042373069416,03555218605458767763,11948926127576938887,15588561760194822359,17674851135591037331,07982474284430390303,07439512659407849436,16176537827294483285
mp_size: 1198
memproof li: 29
memproof ap: 03272355267424627560,01127172589894909859,17818467647354489118,03832425950727255958,13023613236417471472,09139764965159132797,01793539104231570079,08465710112211066460,02818582856136333896,05933437302946029080,02195380069302112830,06951989445325711518,17525053330545272081,10302681276055485607,01663536925696028154,12817879366128357231,11548733296889854897,08625345224447067771,02620269023226422041,14422190014439626141,00395906742228865019,13802521519926989572,00076685642068403215,09744770023686018681,04385416935567384035
RS validation_result: true
linking with preallocated memory ... number of statically allocated words: 1
testing tasm_neptune_transaction_verify_aocl_membership with seed: [62, 88, 3c, aa, 85, 20, eb, 9d, 20, c2, 17, 99, 6e, c1, 8d, 38, f7, f2, ad, fd, 39, 24, a1, d3, 9c, a1, 67, 48, e0, db, 4b, 89]
peaks_size: 21
peaks: 01857733557283154119,07322162144253573794,03027819058828939612,04471529709302853172,08676916383275257408,07938549946496350013,10277464964815798726,05486011604407595953,03713906179783004073,16230254687630704174,00467430428715773035,08558624791902646266,18272487119699783067,08204494279749966461,06129040930104835652,08672197701137826583,00505373434303745404,15874916202902096106,00794443785563183027,04218627313169144730
mp_size: 1137
memproof li: 3
memproof ap: 12336054954397345726,11915757181926936021,01775660659696835867,05014041889525048217,03857057139154887865,05158781196911383339,00998315567073620280,13055227564433742511,12901336437465343734,07589055869243068611,07769723267653251574,14880949454797302694,13167424457654347813,08194917357912083462,16256680559254203198
RS validation_result: true
linking with preallocated memory ... number of statically allocated words: 1
testing tasm_neptune_transaction_verify_aocl_membership with seed: [80, 5c, d3, 1f, 2d, bd, 6f, 52, 72, 38, 30, 9, 3d, 61, e0, 87, c4, 47, cd, 17, 38, e3, c7, ae, 3, 77, f1, 4e, e0, 4d, 7e, 3b]
thread 'models::blockchain::transaction::validity::tasm::verify_aocl_membership::tests::test_verify_aocl_membership' panicked at 'attempt to calculate the remainder with a divisor of zero', src/models/blockchain/transaction/validity/tasm/verify_aocl_membership.rs:201:26
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/std/src/panicking.rs:593:5
   1: core::panicking::panic_fmt
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/panicking.rs:67:14
   2: core::panicking::panic
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/panicking.rs:117:5
   3: <neptune_core::models::blockchain::transaction::validity::tasm::verify_aocl_membership::VerifyAoclMembership as tasm_lib::function::Function>::pseudorandom_initial_state
             at ./src/models/blockchain/transaction/validity/tasm/verify_aocl_membership.rs:201:26
   4: <tasm_lib::function::ShadowedFunction<F> as tasm_lib::snippet::RustShadow>::test
             at /home/thv/.cargo/git/checkouts/tasm-lib-b549f10621331e49/8cb4c2d/tasm-lib/src/function.rs:72:35
   5: neptune_core::models::blockchain::transaction::validity::tasm::verify_aocl_membership::tests::test_verify_aocl_membership
             at ./src/models/blockchain/transaction/validity/tasm/verify_aocl_membership.rs:256:9
   6: neptune_core::models::blockchain::transaction::validity::tasm::verify_aocl_membership::tests::test_verify_aocl_membership::{{closure}}
             at ./src/models/blockchain/transaction/validity/tasm/verify_aocl_membership.rs:255:38
   7: core::ops::function::FnOnce::call_once
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/ops/function.rs:250:5
   8: core::ops::function::FnOnce::call_once
             at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

failures:
    models::blockchain::transaction::validity::tasm::verify_aocl_membership::tests::test_verify_aocl_membership

test result: FAILED. 194 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 24.40s

error: test failed, to rerun pass `--lib`
make: *** [Makefile:58: test] Error 101