четверг, 30 мая 2013 г., 23:07:37 UTC+4 пользователь ZyX написал: > And this one fixes tests. And I still do not have any memory access errors, > probably they were fixed by the previous posted diff. Some memory leaks are > there, but nothing marked "definitely lost" in my code:
There is a big bunch of "possibly lost" leaks though. I am not sure whether they are worth bothering. Most of such leaks have nothing to do with my code. Also there are additional definitely lost leaks with test87.in, but they all look like ==10905== at 0x4C2C88D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10905== by 0x7A27139: strdup (in /lib64/libc-2.15.so) ==10905== by 0x14A36E72: ??? ==10905== by 0x14A3732F: ??? ==10905== by 0x689345: Python_Init (if_python.c:866) (the number of question marks vary, strdup is present only in one of the additional reports, but Python_Init and malloc are always there before and after the question marks). Python3 additionally has two "invalid read of size 8" errors: ==10905== Invalid read of size 8 ==10905== at 0x7A3F9E7: wcschr (in /lib64/libc-2.15.so) ==10905== by 0x126F1A71: makepathobject (sysmodule.c:1738) ==10905== by 0x126F1BDA: PySys_SetPath (sysmodule.c:1766) ==10905== by 0x126DF3D4: _Py_InitializeEx_Private (pythonrun.c:342) ==10905== by 0x126DF63C: Py_InitializeEx (pythonrun.c:401) ==10905== by 0x126DF64C: Py_Initialize (pythonrun.c:407) ==10905== by 0x69AE52: Python3_Init (if_python3.c:810) ==10905== by 0x69740F: DoPyCommand (if_python3.c:883) ==10905== by 0x6973D1: ex_py3 (if_python3.c:946) ==10905== by 0x4B57FC: do_one_cmd (ex_docmd.c:2686) ==10905== by 0x4B19D2: do_cmdline (ex_docmd.c:1124) ==10905== by 0x568B66: nv_colon (normal.c:5457) ==10905== by 0x55E27A: normal_cmd (normal.c:1200) ==10905== by 0x6BC1B0: main_loop (main.c:1329) ==10905== by 0x6B8434: main (main.c:1020) ==10905== Address 0x1122f218 is 776 bytes inside a block of size 780 alloc'd ==10905== at 0x4C2C88D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10905== by 0x125C4FA6: PyMem_Malloc (object.c:1840) ==10905== by 0x12706B0E: calculate_path (getpath.c:732) ==10905== by 0x12706F93: Py_GetProgramFullPath (getpath.c:871) ==10905== by 0x126F0D78: _PySys_Init (sysmodule.c:1615) ==10905== by 0x126DF344: _Py_InitializeEx_Private (pythonrun.c:334) ==10905== by 0x126DF63C: Py_InitializeEx (pythonrun.c:401) ==10905== by 0x126DF64C: Py_Initialize (pythonrun.c:407) ==10905== by 0x69AE52: Python3_Init (if_python3.c:810) ==10905== by 0x69740F: DoPyCommand (if_python3.c:883) ==10905== by 0x6973D1: ex_py3 (if_python3.c:946) ==10905== by 0x4B57FC: do_one_cmd (ex_docmd.c:2686) ==10905== by 0x4B19D2: do_cmdline (ex_docmd.c:1124) ==10905== by 0x568B66: nv_colon (normal.c:5457) ==10905== by 0x55E27A: normal_cmd (normal.c:1200) ==10905== by 0x6BC1B0: main_loop (main.c:1329) ==10905== by 0x6B8434: main (main.c:1020) ==10905== ==10905== Invalid read of size 8 ==10905== at 0x7A3F9E7: wcschr (in /lib64/libc-2.15.so) ==10905== by 0x126F1AB6: makepathobject (sysmodule.c:1746) ==10905== by 0x126F1BDA: PySys_SetPath (sysmodule.c:1766) ==10905== by 0x126DF3D4: _Py_InitializeEx_Private (pythonrun.c:342) ==10905== by 0x126DF63C: Py_InitializeEx (pythonrun.c:401) ==10905== by 0x126DF64C: Py_Initialize (pythonrun.c:407) ==10905== by 0x69AE52: Python3_Init (if_python3.c:810) ==10905== by 0x69740F: DoPyCommand (if_python3.c:883) ==10905== by 0x6973D1: ex_py3 (if_python3.c:946) ==10905== by 0x4B57FC: do_one_cmd (ex_docmd.c:2686) ==10905== by 0x4B19D2: do_cmdline (ex_docmd.c:1124) ==10905== by 0x568B66: nv_colon (normal.c:5457) ==10905== by 0x55E27A: normal_cmd (normal.c:1200) ==10905== by 0x6BC1B0: main_loop (main.c:1329) ==10905== by 0x6B8434: main (main.c:1020) ==10905== Address 0x1122f218 is 776 bytes inside a block of size 780 alloc'd ==10905== at 0x4C2C88D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10905== by 0x125C4FA6: PyMem_Malloc (object.c:1840) ==10905== by 0x12706B0E: calculate_path (getpath.c:732) ==10905== by 0x12706F93: Py_GetProgramFullPath (getpath.c:871) ==10905== by 0x126F0D78: _PySys_Init (sysmodule.c:1615) ==10905== by 0x126DF344: _Py_InitializeEx_Private (pythonrun.c:334) ==10905== by 0x126DF63C: Py_InitializeEx (pythonrun.c:401) ==10905== by 0x126DF64C: Py_Initialize (pythonrun.c:407) ==10905== by 0x69AE52: Python3_Init (if_python3.c:810) ==10905== by 0x69740F: DoPyCommand (if_python3.c:883) ==10905== by 0x6973D1: ex_py3 (if_python3.c:946) ==10905== by 0x4B57FC: do_one_cmd (ex_docmd.c:2686) ==10905== by 0x4B19D2: do_cmdline (ex_docmd.c:1124) ==10905== by 0x568B66: nv_colon (normal.c:5457) ==10905== by 0x55E27A: normal_cmd (normal.c:1200) ==10905== by 0x6BC1B0: main_loop (main.c:1329) ==10905== by 0x6B8434: main (main.c:1020) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
