View Issue Details

IDProjectCategoryView StatusLast Update
0000482ascendcompilerpublic2011-02-15 16:46
Reporterjohn 
Assigned Tojohn 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version0.9.7 
Target VersionFixed in Version0.9.8 
Summary0000482: invlalid memory read associated with error_reporter_end_flush
DescriptionWhen running

valgrind --tool=memcheck --leak-check=full --show-reachable=yes test/test compiler_basics.stop compiler_basics.stoponfailedassert

the following error output is given by valgrind:

==5757== Invalid read of size 1
==5757== at 0x4F3950B: vfprintf (vfprintf.c:1614)
==5757== by 0x4F3AEC1: buffered_vfprintf (vfprintf.c:2254)
==5757== by 0x4F35E12: vfprintf (vfprintf.c:1306)
==5757== by 0x4F4011E: fprintf (fprintf.c:33)
==5757== by 0x45DEC1A: error_reporter_default_callback (error.c:74)
==5757== by 0x45DEDE5: va_error_reporter (error.c:320)
==5757== by 0x45DF194: error_reporter (error.c:447)
==5757== by 0x45DF13A: error_reporter_end_flush (error.c:416)
==5757== by 0x45F387A: Asc_CompilerDestroy (ascCompiler.c:270)
==5757== by 0x808B7AD: test_stop (test_basics.c:382)
==5757== by 0x4EF04C6: run_single_test (in /usr/local/lib/libcunit.so.1.0.1)
==5757== by 0x4EEE555: CU_run_test (in /usr/local/lib/libcunit.so.1.0.1)
==5757== Address 0x52776c4 is 556 bytes inside a block of size 2,056 free'd
==5757== at 0x4024B3A: free (vg_replace_malloc.c:366)
==5757== by 0x468C8E1: DestroyStringSpace (symtab.c:175)
==5757== by 0x45F37FD: Asc_CompilerDestroy (ascCompiler.c:235)
==5757== by 0x808B7AD: test_stop (test_basics.c:382)
==5757== by 0x4EF04C6: run_single_test (in /usr/local/lib/libcunit.so.1.0.1)
==5757== by 0x4EEE555: CU_run_test (in /usr/local/lib/libcunit.so.1.0.1)
==5757== by 0x4EF2020: basic_run_single_test (in /usr/local/lib/libcunit.so.1.0.1)
==5757== by 0x4EF1DA2: CU_basic_run_test (in /usr/local/lib/libcunit.so.1.0.1)
==5757== by 0x804D424: run_suite_or_test (test.c:70)
==5757== by 0x804DA3D: main (test.c:230)
==5757==


This could also be the origin of possibly-related bugs to do with error_reporter_tree?
TagsNo tags attached.

Relationships

Activities

john

2011-02-15 16:46

administrator   ~0000670

fixed in changeset 3149.

Issue History

Date Modified Username Field Change
2011-01-09 22:06 john New Issue
2011-02-15 16:46 john Note Added: 0000670
2011-02-15 16:46 john Status new => resolved
2011-02-15 16:46 john Fixed in Version => 0.9.8
2011-02-15 16:46 john Resolution open => fixed
2011-02-15 16:46 john Assigned To => john