View Issue Details

IDProjectCategoryView StatusLast Update
0010862Talermerchant backendpublic2026-01-12 15:45
Reportersebasjm Assigned ToChristian Grothoff  
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Summary0010862: crash on update pot
DescriptionJan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) INFO Handling request (PATCH) for URL '/instances/qwe/private/pots/4'
Jan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) DEBUG Preparing SQL statement `SELECT expiration_time,validity_scope FROM merchant_login_tokens WHERE token=$2 >
Jan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) DEBUG Running prepared statement `select_login_token' on 0x6261ea9c6a10
Jan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) DEBUG Executing prepared SQL statement `select_login_token'
Jan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) DEBUG Execution of prepared SQL statement `select_login_token' finished (PGRES_TUPLES_OK)
Jan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) WARNING Invalid currency specified before colon: `23'
Jan 12 11:38:38 taler-merchant-httpd[1094562]: (9WX0MTJJB69TASQENBZPRFYGQW) WARNING External protocol violation detected at json_helper.c:213.
Jan 12 11:38:39 systemd-coredump[1094569]: [�] Process 1094562 (taler-merchant-) of user 1000 dumped core.
                                           
                                           Module /media/luffy/taler-workspace/install-prefix/bin/taler-merchant-httpd from deb glibc-2.41-6ubuntu1.2.amd64
                                           Module linux-vdso.so.1 from deb linux-6.14.0-37.37.amd64
                                           Module libpq.so.5 from deb postgresql-17-17.7-0ubuntu0.25.04.1.amd64
                                           Module libresolv.so.2 from deb glibc-2.41-6ubuntu1.2.amd64
                                           Module libkeyutils.so.1 from deb keyutils-1.6.3-4ubuntu2.amd64





warning: 3453 ./malloc/malloc.c: No such file or directory
(gdb) bt
#0 0x00007871546b40d8 in __GI___libc_free (mem=0x1ffffffff) at ./malloc/malloc.c:3453
#1 0x0000787154a33abd in GNUNET_xfree_ (ptr=0x1ffffffff, filename=0x787154be172c "json_helper.c", linenumber=233) at ../src/lib/util/common_allocation.c:201
#2 0x0000787154bd7ccc in clean_amount_any_array (cls=0x6261ea9a3a50, spec=0x7ffeef742a30) at json_helper.c:233
#3 0x0000787154acaec3 in GNUNET_JSON_parse_free (spec=0x7ffeef7429a0) at ../src/lib/json/json.c:104
#4 0x0000787154acace8 in GNUNET_JSON_parse (root=0x6261ea9ea6f0, spec=0x7ffeef7429a0, error_json_name=0x7ffeef7427f8, error_line=0x7ffeef7427f0) at ../src/lib/json/json.c:77
#5 0x0000787154bf24fc in TALER_MHD_parse_json_data (connection=0x6261ea9fa630, root=0x6261ea9ea6f0, spec=0x7ffeef7429a0) at mhd_parsing.c:406
#6 0x00006261d00a7cf1 in TMH_private_patch_pot (rh=0x6261d00e8cd8 <private_handlers+3960>, connection=0x6261ea9fa630, hc=0x6261ea9ea260) at taler-merchant-httpd_private-patch-pot-ID.c:84
#7 0x00006261d0028198 in process_upload_with_handler (hc=0x6261ea9ea260, upload_data=0x0, upload_data_size=0x7ffeef742bf0) at taler-merchant-httpd.c:469
#8 0x00006261d00288b3 in url_handler (cls=0x0, connection=0x6261ea9fa630, url=0x6261ea9fd536 "/instances/qwe/private/pots/4", method=0x6261ea9fd530 "PATCH",
    version=0x6261ea9fd554 "HTTP/1.1", upload_data=0x0, upload_data_size=0x7ffeef742bf0, con_cls=0x6261ea9fa6e8) at taler-merchant-httpd.c:667








$ curl 'https://merchant.taler/instances/qwe/private/pots/4' -X 'PATCH'
....
  --data-raw '{"description":"asd","expected_pot_totals":[],"new_pot_totals":["KUDOS:23"],"pot_name":"second pot"}' -v


< HTTP/1.1 502 Bad Gateway





TagsNo tags attached.

Relationships

child of 0010839 confirmedsebasjm need SPA support for new CRUD APIs: (1) reports, (2) money pots, and (3) product groups 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-01-12 15:45 sebasjm New Issue
2026-01-12 15:45 sebasjm Status new => assigned
2026-01-12 15:45 sebasjm Assigned To => Christian Grothoff
2026-01-12 15:45 sebasjm Relationship added child of 0010839