View Issue Details

IDProjectCategoryView StatusLast Update
0010402Talermerchant backendpublic2025-09-12 22:12
Reportersebasjm Assigned ToChristian Grothoff  
PriorityhighSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Product Versiongit (master) 
Target Version1.1 
Summary0010402: crash deleting self provisioned instance
Descriptionlooks like is trying to hash an empty body

$ curl 'http://merchant.taler.test/management/instances/zxc5' -X 'DELETE' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.9,es;q=0.8' -H 'Authorization: Bearer secret-token:9MM1R6NYK6S6N8YHDNBPDCFVYNGKATEK64QHRDRM65PGY82V5010' -H 'Connection: keep-alive' -H 'Origin: http://localhost:8080' -H 'Referer: http://localhost:8080/' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36'



Sep 12 17:03:03 taler-merchant-httpd[1211524]: (B29MJ8B0K4KNJDGDGASWFFYRJ4) INFO Handling request (DELETE) for URL '/management/instances/zxc5'
Sep 12 17:03:03 taler-merchant-httpd[1211524]: (B29MJ8B0K4KNJDGDGASWFFYRJ4) DEBUG Preparing SQL statement `SELECT expiration_time,validity_scope FROM merchant_login_tokens WHERE token=$2 A
ND merchant_serial= (SELECT merchant_serial FROM merchant_instances WHERE merchant_id=$1)' as `select_login_token'
Sep 12 17:03:03 taler-merchant-httpd[1211524]: (B29MJ8B0K4KNJDGDGASWFFYRJ4) DEBUG Running prepared statement `select_login_token' on 0x625b3a3fcac0
Sep 12 17:03:03 taler-merchant-httpd[1211524]: (B29MJ8B0K4KNJDGDGASWFFYRJ4) DEBUG Executing prepared SQL statement `select_login_token'
Sep 12 17:03:03 taler-merchant-httpd[1211524]: (B29MJ8B0K4KNJDGDGASWFFYRJ4) DEBUG Execution of prepared SQL statement `select_login_token' finished (PGRES_TUPLES_OK)
Sep 12 17:03:03 taler-merchant-httpd[1211524]: (B29MJ8B0K4KNJDGDGASWFFYRJ4) ERROR Assertion failed at mfa.c:131. Aborting.
Sep 12 17:03:04 systemd-coredump[1211538]: Process 1211524 (taler-merchant-) of user 1000 dumped core.
                                            
                                           Module linux-vdso.so.1 from deb linux-6.11.0-29.29.amd64
                                           Module libssl.so.3 from deb openssl-3.3.1-2ubuntu2.1.amd64
.....
                                           Stack trace of thread 1211524:
                                           #0 0x00007a3cd7aa3f1c __pthread_kill_implementation (libc.so.6 + 0xa3f1c)
                                           #1 0x00007a3cd7a4519e __GI_raise (libc.so.6 + 0x4519e)
                                           #2 0x00007a3cd7a28902 __GI_abort (libc.so.6 + 0x28902)
                                           #3 0x00007a3cd7c8458c GNUNET_abort_ (libgnunetutil.so.18 + 0x2458c)
                                           #4 0x00007a3cd7ee3232 TALER_MERCHANT_mfa_body_hash (libtalermerchantutil.so.0 + 0xb232)
                                           #5 0x0000625b38c5a0ea mfa_challenge_start (taler-merchant-httpd + 0x220ea)
                                           #6 0x0000625b38c5afe6 TMH_mfa_challenges_do (taler-merchant-httpd + 0x22fe6)
                                           #7 0x0000625b38c5b60e TMH_mfa_check_simple (taler-merchant-httpd + 0x2360e)
                                           #8 0x0000625b38c5c328 delete_instances_ID (taler-merchant-httpd + 0x24328)
                                           #9 0x0000625b38c5c6ee TMH_private_delete_instances_default_ID (taler-merchant-httpd + 0x246ee)
                                           #10 0x0000625b38c471b6 url_handler (taler-merchant-httpd + 0xf1b6)
                                           #11 0x00007a3cd7d4f8a2 n/a (libmicrohttpd.so.12 + 0xb8a2)
                                           #12 0x00007a3cd7d528e8 n/a (libmicrohttpd.so.12 + 0xe8e8)
                                           #13 0x00007a3cd7d55948 n/a (libmicrohttpd.so.12 + 0x11948)



#0 __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at ./nptl/pthread_kill.c:44

warning: 44 ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007a3cd7a4519e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007a3cd7a28902 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007a3cd7c8458c in GNUNET_abort_ () at ../src/lib/util/common_logging.c:280
#6 0x00007a3cd7ee3232 in TALER_MERCHANT_mfa_body_hash (body=0x0, salt=0x7fff9802ee00, h_body=0x7fff9802ee10) at mfa.c:131
#7 0x0000625b38c5a0ea in mfa_challenge_start (hc=0x625b3a3fd990, op=TALER_MERCHANT_MFA_CO_INSTANCE_DELETION, channel=TALER_MERCHANT_MFA_CHANNEL_EMAIL, expiration_date=...,
    required_address=0x625b3aa083b0 "test@test.com", challenge_id=0x7fff9802efc0) at taler-merchant-httpd_mfa.c:255
#8 0x0000625b38c5afe6 in TMH_mfa_challenges_do (hc=0x625b3a3fd990, op=TALER_MERCHANT_MFA_CO_INSTANCE_DELETION, combi_and=false) at taler-merchant-httpd_mfa.c:550
#9 0x0000625b38c5b60e in TMH_mfa_check_simple (hc=0x625b3a3fd990, op=TALER_MERCHANT_MFA_CO_INSTANCE_DELETION, mi=0x625b3a4274a0) at taler-merchant-httpd_mfa.c:674
#10 0x0000625b38c5c328 in delete_instances_ID (hc=0x625b3a3fd990, mi=0x625b3a4274a0, connection=0x625b3a428a90) at taler-merchant-httpd_private-delete-instances-ID.c:47
#11 0x0000625b38c5c6ee in TMH_private_delete_instances_default_ID (rh=0x625b38ce6b48 <management_handlers+264>, connection=0x625b3a428a90, hc=0x625b3a3fd990)
    at taler-merchant-httpd_private-delete-instances-ID.c:149
#12 0x0000625b38c471b6 in url_handler (cls=0x0, connection=0x625b3a428a90, url=0x625b3a4338f7 "/management/instances/zxc5", method=0x625b3a4338f0 "DELETE",
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-09-12 22:12 sebasjm New Issue
2025-09-12 22:12 sebasjm Status new => assigned
2025-09-12 22:12 sebasjm Assigned To => Christian Grothoff