View Issue Details

IDProjectCategoryView StatusLast Update
0009347Talerexchangepublic2024-11-25 17:11
Reportersebasjm Assigned Tosebasjm  
PriorityhighSeveritycrashReproducibilitysometimes
Status resolvedResolutionfixed 
Product Versiongit (master) 
Target Version0.14Fixed in Version0.14 
Summary0009347: crash when the aml program fails
Descriptionthe aml program check if the email ends with @taler.net, upon fails the error code is 0 and nothing is written in the stdout... only an error message on the stderr



#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
#1 0x00007f30af19da69 in GNUNET_PQ_query_param_string (ptr=0x0) at pq_query_helper.c:138
#2 0x00007f30af1eabad in TEH_PG_insert_kyc_measure_result (cls=0x55d4def8a790, process_row=5, h_payto=0x55d4df529340, birthday=0,
    collection_time=..., provider_name=0x0, provider_account_id=0x0, provider_legitimization_id=0x0, expiration_time=...,
    account_properties=0x55d4df502e50, new_rules=0x55d4df93cf70, to_investigate=true, num_events=0, events=0x55d4df0c4280,
    enc_attributes_size=0, enc_attributes=0x0) at pg_insert_kyc_measure_result.c:64
#3 0x000055d4d30e4209 in handle_aml_fallback_result (cls=0x55d4df529330, apr=0x55d4df93ce78)
    at taler-exchange-httpd_common_kyc.c:874
#4 0x00007f30b0597e48 in handle_aml_output (cls=0x55d4df93ce50, status_type=GNUNET_OS_PROCESS_EXITED, code=0, result=0x55d4df517900)
    at kyclogic_api.c:3721
#5 0x00007f30b05b9bcd in child_done_cb (cls=0x55d4df0c41e0, type=GNUNET_OS_PROCESS_EXITED, exit_code=0) at conversion.c:287
#6 0x00007f30b044f202 in maint_child_death (cls=0x0) at child_management.c:119







(HSHHGHFSK4JBX07CVCM9D1RN64) INFO HTTP request for `https://challenger.taler.ar/info' finished with 200 after 968 µs
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Conversion helper exited with status 3 and code 0 after outputting 32 bytes of data
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO KYC process #5 succeeded with KYC provider
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Running AML program aml-valid-email.js
{
  "context": {
    "domain": "taler.net"
  },
  "attributes": {
    "id": "3",
    "email": "asd@asd.com"
  },
  "aml_history": [],
  "kyc_history": []
}(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Passing 114 bytes to JSON conversion tool
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Trying to start child management.
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Conversion helper exited with status 3 and code 0 after outputting 0 bytes of data
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO AML program output is:
(HSHHGHFSK4JBX07CVCM9D1RN64) ERROR AML program output is malformed at `root is NULL'
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Executing command `NOTIFY XH2PSXDJPM29WAE2835WAQDHHS7VSTTJ4JZSFXQN3FZV35F52745G, '''
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO PG poll job active
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO PG poll job finishes after 0 events
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Running AML program aml-log-error.js
{
  "context": {
    "from": "running-program"
  },
  "attributes": {
    "id": "3",
    "email": "asd@asd.com"
  },
  "aml_history": [],
  "kyc_history": []
}(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Passing 118 bytes to JSON conversion tool
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Trying to start child management.
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO Conversion helper exited with status 3 and code 0 after outputting 131 bytes of data
(HSHHGHFSK4JBX07CVCM9D1RN64) INFO AML program output is:
{
  "to_investigate": true,
  "properties": {},
  "events": [],
  "new_rules": {
    "expiration_time": {
      "t_s": "never"
    },
    "rules": [],
    "custom_measures": {}
  }
Process 4661 (taler-exchange-) of user 1000 dumped core.
TagsNo tags attached.

Activities

sebasjm

2024-11-20 17:17

developer   ~0023736

I changed the returned code of the aml script to 1 (signaling error) but also crash

Christian Grothoff

2024-11-20 23:52

manager   ~0023738

3c358444a..4dedd235d fixes the crash at the reported program point. However, I didn't check if there isn't another crash 5 instructions later as I didn't (try to) reproduce the issue.

sebasjm

2024-11-25 16:20

developer   ~0023751

couldn't reproduce

Issue History

Date Modified Username Field Change
2024-11-20 17:15 sebasjm New Issue
2024-11-20 17:15 sebasjm Status new => assigned
2024-11-20 17:15 sebasjm Assigned To => Florian Dold
2024-11-20 17:17 sebasjm Note Added: 0023736
2024-11-20 23:52 Christian Grothoff Note Added: 0023738
2024-11-20 23:52 Christian Grothoff Assigned To Florian Dold => sebasjm
2024-11-20 23:52 Christian Grothoff Status assigned => feedback
2024-11-25 16:20 sebasjm Status feedback => resolved
2024-11-25 16:20 sebasjm Resolution open => fixed
2024-11-25 16:20 sebasjm Note Added: 0023751
2024-11-25 17:11 Christian Grothoff Fixed in Version => 0.14