View Issue Details

IDProjectCategoryView StatusLast Update
0007035Talermerchant backend API (C)public2021-10-13 13:55
Reportersebasjm Assigned ToChristian Grothoff  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Versiongit (master) 
Target Version0.8.5Fixed in Version0.8.5 
Summary0007035: merchant crashed when paying order
Descriptionit's mostly the case that I'm missing some configuration, but it should not crash

tested version: Version: 0.8.4-1
it was installed from latest release as a debian package

Thread 1 "taler-merchant-" received signal SIGSEGV, Segmentation fault.
0x0000558b84de1ecf in process_find_operations (exchange=exchange@entry=0x558b85f11d80) at taler-merchant-httpd_exchanges.c:577
577 taler-merchant-httpd_exchanges.c: No such file or directory.
(gdb) info locals
fbw = 0x558b85f3a840
fo = 0x558b85f3dfc0
fn = 0x0
now = {abs_value_us = 1634116857692024}
need_wire = false
__FUNCTION__ = "process_find_operations"
(gdb) print "%x", fbw->af
$1 = (struct TALER_EXCHANGE_WireAggregateFees *) 0x0
quit)
Steps To Reproducecreate an order
try to pay it
TagsNo tags attached.

Activities

sebasjm

2021-10-13 13:54

developer   ~0018436

adding wire fee information solved the issue

previous configuration that reproduce the error in [1] (the dates goes from jan 1 2020 to jan 1 2021)
current configuration that works ok [2]




[1]
{
  "accounts": [
    {
      "payto_uri": "payto://x-taler-bank/bank.taler:5882/sebasjm",
      "master_sig": "CAKK3HDWY5DVGTTTPFGSASS96FGJKAWMP41RYCV7MVBEX3WJ108JSNWN5DP8ZZM215TM69NZWVCBR3QNNRX1KJS7KD32VWS3GG5C60R"
    }
  ],
  "fees": {
    "x-taler-bank": [
      {
        "wire_fee": "NERDS:0.1",
        "closing_fee": "NERDS:0.1",
        "start_date": {
          "t_ms": 1577836800000
        },
        "end_date": {
          "t_ms": 1609459200000
        },
        "sig": "XP1H2GMKJVRDMFB71PDHYMQSJ3144GAVPM502JPRWKMDQAZGY7VVZ1206PMV1G5D6TY2DEYKB0RDJ7AF0PFA57MY7QSVRZX2XERS61G"
      }
    ]
  },
  "master_public_key": "958T0MBFHSKGZRZ3EM7KRRZGVX66M2S368WE7ED0T87TEB3BNPEG"
}

[2]
{
  "accounts": [
    {
      "payto_uri": "payto://x-taler-bank/bank.taler:5882/sebasjm",
      "master_sig": "CAKK3HDWY5DVGTTTPFGSASS96FGJKAWMP41RYCV7MVBEX3WJ108JSNWN5DP8ZZM215TM69NZWVCBR3QNNRX1KJS7KD32VWS3GG5C60R"
    }
  ],
  "fees": {
    "x-taler-bank": [
      {
        "wire_fee": "NERDS:0.1",
        "closing_fee": "NERDS:0.1",
        "start_date": {
          "t_ms": 1577836800000
        },
        "end_date": {
          "t_ms": 1609459200000
        },
        "sig": "XP1H2GMKJVRDMFB71PDHYMQSJ3144GAVPM502JPRWKMDQAZGY7VVZ1206PMV1G5D6TY2DEYKB0RDJ7AF0PFA57MY7QSVRZX2XERS61G"
      },
      {
        "wire_fee": "NERDS:0.1",
        "closing_fee": "NERDS:0.1",
        "start_date": {
          "t_ms": 1609459200000
        },
        "end_date": {
          "t_ms": 1640995200000
        },
        "sig": "0PDS8N4226W8AVV0GQ8CQ0J2RQBF9D9FYGFKRAFB983JF1PQ8ECBWS7HHYPG34J723MJH0YS30GX4TVFNGFH9PKK4Z4M7FWNKY28M1G"
      },
      {
        "wire_fee": "NERDS:0.1",
        "closing_fee": "NERDS:0.1",
        "start_date": {
          "t_ms": 1640995200000
        },
        "end_date": {
          "t_ms": 1672531200000
        },
        "sig": "S3P825FA8PXQDSQKJR0BHZ28GNFEPVR9NJ169XSPPSTFCP4WAV2W5T9333K2SY1NAEX33AT04E795HADYJ15RBMHWBHYJF82DDGWT3R"
      }
    ]
  },
  "master_public_key": "958T0MBFHSKGZRZ3EM7KRRZGVX66M2S368WE7ED0T87TEB3BNPEG"
}

Christian Grothoff

2021-10-13 13:54

manager   ~0018437

Crash should be fixed in 862ef7c..9d7abac

Issue History

Date Modified Username Field Change
2021-10-13 11:28 sebasjm New Issue
2021-10-13 11:28 sebasjm Status new => assigned
2021-10-13 11:28 sebasjm Assigned To => Christian Grothoff
2021-10-13 13:54 sebasjm Note Added: 0018436
2021-10-13 13:54 Christian Grothoff Note Added: 0018437
2021-10-13 13:55 Christian Grothoff Status assigned => resolved
2021-10-13 13:55 Christian Grothoff Resolution open => fixed
2021-10-13 13:55 Christian Grothoff Fixed in Version => 0.8.5