View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000482 | ascend | compiler | public | 2011-01-09 22:06 | 2011-02-15 16:46 |
Reporter | john | ||||
Assigned To | john | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | 0.9.7 | ||||
Target Version | Fixed in Version | 0.9.8 | |||
Summary | 0000482: invlalid memory read associated with error_reporter_end_flush | ||||
Description | When 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? | ||||
Tags | No tags attached. | ||||