View Issue Details

IDProjectCategoryView StatusLast Update
0009339Talerexchangepublic2024-12-13 19:15
ReporterFlorian Dold Assigned ToFlorian Dold  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.14Fixed in Version0.14 
Summary0009339: some exchange endpoints to not handle NULL jnew_rules
DescriptionThe /kyc-info endpoint crashes the when jnew_rules is NULL.

Other places in the code might also not handle it well.
TagsNo tags attached.

Activities

Christian Grothoff

2024-11-20 23:59

manager   ~0023739

I've double-checked taler-exchange-httpd_kyc-info.c, and sebastian fixed a segv just hours *before* this bug was submitted.

I fixed a wrong hard error log (GNUNET_break_op()) on this path in 4dedd235d..b18069097, but I really cannot see a segv path from new_rules (or lrs) being NULL.

Florian Dold

2024-11-21 19:37

manager   ~0023743

It does crash:

commit 3090d60068a6a4a3441fd0e6481190a03c407847 (HEAD -> master, origin/master, origin/HEAD)
Author: Florian Dold <florian@dold.me>
Date: Thu Nov 21 19:35:26 2024 +0100

    harness: extend test-kyc-decision to provoke exchange crash

Florian Dold

2024-11-21 19:38

manager   ~0023744

Actually ... it crashes in batch-deposit, so some other bug.

Florian Dold

2024-11-21 19:50

manager   ~0023745

Reproducer:

$ taler-harness run-integrationtests kyc-decision

(Test is *incomplete*, but crashes the exchange.)

Christian Grothoff

2024-11-21 23:49

manager   ~0023746

$ taler-harness run-integrationtests kyc-decision
2024-11-21T22:48:58.765Z testrunner.ts INFO purging shared test environment
testsuite root directory: /tmp/taler-integrationtests-HjubIp
See /tmp/taler-integrationtests-HjubIp/results.json for details
Skipped: 0/0
Failed: 0/0
Passed: 0/0
I get that, instantly. Nothing is run, no exchange is even started...

Florian Dold

2024-11-22 16:58

manager   ~0023747

I forgot the "s", it's

$ taler-harness run-integrationtests kyc-decisions

Christian Grothoff

2024-11-22 17:03

manager   ~0023748

Crash fixed. Bug fixed?

Florian Dold

2024-12-04 18:42

manager   ~0023786

I can still reproduce this, via an integration test that Sebastian contributed.

The test is meant to test something else, but:

$ taler-harness run-integrationtests kyc-two-forms
[ test fails ]

In the exchange logs:
2024-12-04T16:41:28.692004+0100 taler-exchange-httpd-1480242(58HP97JXRV6A2ZN76A0HT7R1G8) ERROR NULL field encountered for `jnew_rules' where non-NULL was required
2024-12-04T16:41:28.692050+0100 taler-exchange-httpd-1480242(58HP97JXRV6A2ZN76A0HT7R1G8) ERROR Assertion failed at taler-exchange-httpd_kyc-info.c:613.

Florian Dold

2024-12-06 11:22

manager   ~0023804

With the latest exchange, not reproducible anymore.

Florian Dold

2024-12-06 11:26

manager   ~0023805

Actually, it's still in the logs, just alongside other errors :-(

Florian Dold

2024-12-06 11:50

manager   ~0023806

*Now* it should be fixed.

Issue History

Date Modified Username Field Change
2024-11-14 22:17 Florian Dold New Issue
2024-11-14 22:17 Florian Dold Status new => assigned
2024-11-14 22:17 Florian Dold Assigned To => Florian Dold
2024-11-20 23:59 Christian Grothoff Note Added: 0023739
2024-11-20 23:59 Christian Grothoff Status assigned => feedback
2024-11-21 19:37 Florian Dold Note Added: 0023743
2024-11-21 19:38 Florian Dold Note Added: 0023744
2024-11-21 19:50 Florian Dold Note Added: 0023745
2024-11-21 19:50 Florian Dold Assigned To Florian Dold => Christian Grothoff
2024-11-21 23:49 Christian Grothoff Note Added: 0023746
2024-11-21 23:49 Christian Grothoff Assigned To Christian Grothoff => Florian Dold
2024-11-22 16:58 Florian Dold Note Added: 0023747
2024-11-22 16:58 Florian Dold Assigned To Florian Dold => Christian Grothoff
2024-11-22 17:03 Christian Grothoff Note Added: 0023748
2024-11-22 17:03 Christian Grothoff Assigned To Christian Grothoff => Florian Dold
2024-12-04 18:42 Florian Dold Note Added: 0023786
2024-12-06 11:22 Florian Dold Assigned To Florian Dold => Christian Grothoff
2024-12-06 11:22 Florian Dold Status feedback => resolved
2024-12-06 11:22 Florian Dold Resolution open => fixed
2024-12-06 11:22 Florian Dold Note Added: 0023804
2024-12-06 11:26 Florian Dold Assigned To Christian Grothoff => Florian Dold
2024-12-06 11:26 Florian Dold Status resolved => assigned
2024-12-06 11:26 Florian Dold Note Added: 0023805
2024-12-06 11:50 Florian Dold Status assigned => resolved
2024-12-06 11:50 Florian Dold Note Added: 0023806
2024-12-13 01:59 Christian Grothoff Fixed in Version => 0.14
2024-12-13 19:15 Christian Grothoff Status resolved => closed