View Issue Details

IDProjectCategoryView StatusLast Update
0009103Talerexchangepublic2024-08-28 23:31
Reportersebasjm Assigned ToChristian Grothoff  
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.13Fixed in Version0.13 
Summary0009103: exchange crash on form submittion
Description

request

curl 'http://exchange.taler.test:1180/kyc-upload/SW010CE082HYC23SNHGSG0YCW7FHC5FEYP0891W7FWNTBT56QK50-0-2' \
  -H 'Accept: application/json' \
  -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryC4yQueDLcEibXUmz' \
  -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
  --data-raw $'------WebKitFormBoundaryC4yQueDLcEibXUmz\r\nContent-Disposition: form-data; name="trucker"\r\n\r\nyes\r\n------WebKitFormBoundaryC4yQueDLcEibXUmz\r\nContent-Disposition: form-data; name="money"\r\n\r\nYEIN:1\r\n------WebKitFormBoundaryC4yQueDLcEibXUmz--\r\n' \
  --insecure


LOG

C) INFO Handling request (POST) for URL '/kyc-upload/SW010CE082HYC23SNHGSG0YCW7FHC5FEYP0891W7FWNTBT56QK50-0-2'
C) INFO Trying to start child management.
C) INFO Child management started.
C) INFO Conversion helper exited with status 3 and code 0 after outputting 286 bytes of data
C) WARNING Failed to parse JSON from helper at 256: unexpected token near '}'
C) INFO AML program output is:
C) ERROR AML program output is malformed at `'
C) INFO Executing command `NOTIFY XK3WCACA0YBN3E3QNDEEM5MQ78SP9S85F038QX7TMGS6VX45VB770, '''
C) INFO PG poll job active
C) INFO Received notification xk3wcaca0ybn3e3qndeem5mq78sp9s85f038qx7tmgs6vx45vb770 with extra data `'
C) INFO Received KYC update event
M) INFO Resuming from long-polling on KYC status
C) INFO PG poll job finishes after 1 events
C) INFO Trying to start child management.
M) INFO Handling request (GET) for URL '/kyc-check/2'
M) INFO Looking up KYC requirements by row 2
M) INFO Suspending HTTP request on timeout (22 s) now...
C) INFO Conversion helper exited with status 3 and code 0 after outputting 157 bytes of data
C) WARNING Failed to parse JSON from helper at 156: string or '}' expected near '}'
C) INFO AML program output is:
C) ERROR AML program output is malformed at `'
ange-) of user 1000 dumped core.


crash backtrace

#1 0x00007d5a4fa4f636 in GNUNET_PQ_query_param_string (ptr=0x0) at pq_query_helper.c:139
#2 0x00007d5a4fa8675a in TEH_PG_insert_kyc_failure (cls=0x56434433d6a0, process_row=1, h_payto=0x564344466ad0, provider_name=0x0, provider_account_id=0x0,
    provider_legitimization_id=0x0, error_message=0x7ffde81fe630 "", ec=TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT) at pg_insert_kyc_failure.c:46
#3 0x0000564343027f17 in TEH_kyc_failed (process_row=1, account_id=0x564344466ad0, provider_name=0x0, provider_user_id=0x0, provider_legitimization_id=0x0,
    error_message=0x7ffde81fe630 "", ec=TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT) at taler-exchange-httpd_common_kyc.c:975
#4 0x00005643430275ed in handle_aml_fallback_result (cls=0x564344466ac0, apr=0x564344466a18) at taler-exchange-httpd_common_kyc.c:771
#5 0x00007d5a5125581d in handle_aml_output (cls=0x5643444669f0, status_type=GNUNET_OS_PROCESS_EXITED, code=0, result=0x0) at kyclogic_api.c:3353
TagsNo tags attached.

Activities

Christian Grothoff

2024-08-22 14:42

manager   ~0023030

We probably should set (somewhere higher up in the call chain) the provider name to "FORM" instead of NULL.

Christian Grothoff

2024-08-22 17:54

manager   ~0023033

Crash fixed in 1590a0aa..c586c158

Issue History

Date Modified Username Field Change
2024-08-20 17:00 sebasjm New Issue
2024-08-20 17:00 sebasjm Status new => assigned
2024-08-20 17:00 sebasjm Assigned To => Christian Grothoff
2024-08-22 14:42 Christian Grothoff Note Added: 0023030
2024-08-22 17:54 Christian Grothoff Note Added: 0023033
2024-08-22 17:54 Christian Grothoff Status assigned => resolved
2024-08-22 17:54 Christian Grothoff Resolution open => fixed
2024-08-22 17:54 Christian Grothoff Fixed in Version => 0.13
2024-08-22 17:54 Christian Grothoff Target Version git (master) => 0.13
2024-08-28 23:31 Christian Grothoff Status resolved => closed