View Issue Details

IDProjectCategoryView StatusLast Update
0004077Talermerchant backendpublic2021-09-02 16:22
ReporterMarcello Stanisci Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004077: 502 error when GETting /contract
DescriptionGot this on 'tripwire', in fact no merchant is running there.
That's why Olivera got the 502 error while running the demo purchase.

==4941== Memcheck, a memory error detector
==4941== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==4941== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==4941== Command: taler-merchant-httpd -c src/backend/merchant.conf
==4941==
==4941== Invalid read of size 8
==4941== at 0x5894017: find_entry (configuration.c:707)
==4941== by 0x5895568: GNUNET_CONFIGURATION_get_value_string (configuration.c:987)
==4941== by 0x406621: parse_mints (taler-merchant-httpd_mints.c:421)
==4941== by 0x5894734: GNUNET_CONFIGURATION_iterate_sections (configuration.c:590)
==4941== by 0x406E88: TMH_MINTS_init (taler-merchant-httpd_mints.c:484)
==4941== by 0x402CED: run (taler-merchant-httpd.c:488)
==4941== by 0x58C03E6: run_ready (scheduler.c:587)
==4941== by 0x58C03E6: GNUNET_SCHEDULER_run (scheduler.c:867)
==4941== by 0x58BBF65: GNUNET_PROGRAM_run2 (program.c:302)
==4941== by 0x58BC24E: GNUNET_PROGRAM_run (program.c:341)
==4941== by 0x4027D0: main (taler-merchant-httpd.c:571)
==4941== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4941==
==4941==
==4941== Process terminating with default action of signal 11 (SIGSEGV)
==4941== Access not within mapped region at address 0x0
==4941== at 0x5894017: find_entry (configuration.c:707)
==4941== by 0x5895568: GNUNET_CONFIGURATION_get_value_string (configuration.c:987)
==4941== by 0x406621: parse_mints (taler-merchant-httpd_mints.c:421)
==4941== by 0x5894734: GNUNET_CONFIGURATION_iterate_sections (configuration.c:590)
==4941== by 0x406E88: TMH_MINTS_init (taler-merchant-httpd_mints.c:484)
==4941== by 0x402CED: run (taler-merchant-httpd.c:488)
==4941== by 0x58C03E6: run_ready (scheduler.c:587)
==4941== by 0x58C03E6: GNUNET_SCHEDULER_run (scheduler.c:867)
==4941== by 0x58BBF65: GNUNET_PROGRAM_run2 (program.c:302)
==4941== by 0x58BC24E: GNUNET_PROGRAM_run (program.c:341)
==4941== by 0x4027D0: main (taler-merchant-httpd.c:571)
==4941== If you believe this happened as a result of a stack
==4941== overflow in your program's main thread (unlikely but
==4941== possible), you can try to increase the size of the
==4941== main thread stack using the --main-stacksize= flag.
==4941== The main thread stack size used in this run was 8388608.
==4941==
==4941== HEAP SUMMARY:
==4941== in use at exit: 200,994 bytes in 3,298 blocks
==4941== total heap usage: 5,903 allocs, 2,605 frees, 336,719 bytes allocated
==4941==
==4941== LEAK SUMMARY:
==4941== definitely lost: 0 bytes in 0 blocks
==4941== indirectly lost: 0 bytes in 0 blocks
==4941== possibly lost: 0 bytes in 0 blocks
==4941== still reachable: 200,994 bytes in 3,298 blocks
==4941== suppressed: 0 bytes in 0 blocks
==4941== Rerun with --leak-check=full to see details of leaked memory
==4941==
==4941== For counts of detected and suppressed errors, rerun with: -v
==4941== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Marcello Stanisci

2015-12-01 14:10

reporter   ~0009967

The error must be related to the config file modifications

Christian Grothoff

2015-12-01 14:51

manager   ~0009971

Well, that's a straight NPE, I'll look into it.

Christian Grothoff

2015-12-01 14:58

manager   ~0009972

Fixed in 23265dc..bbe803e

Issue History

Date ModifiedUsernameFieldChange
2015-12-01 14:07Marcello StanisciNew Issue
2015-12-01 14:07Marcello StanisciStatusnew => assigned
2015-12-01 14:07Marcello StanisciAssigned To => Marcello Stanisci
2015-12-01 14:10Marcello StanisciNote Added: 0009967
2015-12-01 14:10Marcello StanisciAssigned ToMarcello Stanisci => Christian Grothoff
2015-12-01 14:10Marcello StanisciStatusassigned => feedback
2015-12-01 14:51Christian GrothoffNote Added: 0009971
2015-12-01 14:51Christian GrothoffStatusfeedback => assigned
2015-12-01 14:58Christian GrothoffNote Added: 0009972
2015-12-01 14:58Christian GrothoffStatusassigned => informing
2015-12-01 14:58Christian GrothoffFixed in Version => 0.0
2015-12-01 14:58Christian GrothoffResolutionopen => fixed
2015-12-01 14:58Christian GrothoffProduct Version => 0.0
2015-12-01 14:58Christian GrothoffTarget Version => 0.0
2015-12-02 22:37Christian GrothoffStatusinforming => closed
2021-09-02 16:22Christian Grothoff
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend