View Issue Details

IDProjectCategoryView StatusLast Update
0004077Talermechant backendpublic2021-09-02 18:22
ReporterMarcello Stanisci Assigned ToChristian Grothoff  
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.

Activities

Marcello Stanisci

2015-12-01 15:10

reporter   ~0009967

The error must be related to the config file modifications

Christian Grothoff

2015-12-01 15:51

manager   ~0009971

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

Christian Grothoff

2015-12-01 15:58

manager   ~0009972

Fixed in 23265dc..bbe803e

Related Changesets

merchant: master 18b7d37b

2015-12-01 16:57

Christian Grothoff


Details Diff
fix 0004077 (stupid typo) Affected Issues
0004077
mod - src/backend/taler-merchant-httpd_auditors.c Diff File
mod - src/backend/taler-merchant-httpd_mints.c Diff File

Issue History

Date Modified Username Field Change
2015-12-01 15:07 Marcello Stanisci New Issue
2015-12-01 15:07 Marcello Stanisci Status new => assigned
2015-12-01 15:07 Marcello Stanisci Assigned To => Marcello Stanisci
2015-12-01 15:10 Marcello Stanisci Note Added: 0009967
2015-12-01 15:10 Marcello Stanisci Assigned To Marcello Stanisci => Christian Grothoff
2015-12-01 15:10 Marcello Stanisci Status assigned => feedback
2015-12-01 15:51 Christian Grothoff Note Added: 0009971
2015-12-01 15:51 Christian Grothoff Status feedback => assigned
2015-12-01 15:58 Christian Grothoff Note Added: 0009972
2015-12-01 15:58 Christian Grothoff Status assigned => resolved
2015-12-01 15:58 Christian Grothoff Fixed in Version => 0.0
2015-12-01 15:58 Christian Grothoff Resolution open => fixed
2015-12-01 15:58 Christian Grothoff Product Version => 0.0
2015-12-01 15:58 Christian Grothoff Target Version => 0.0
2015-12-02 23:37 Christian Grothoff Status resolved => closed
2021-09-02 18:22 Christian Grothoff Changeset attached => Taler-merchant master 18b7d37b