valgrind reports memory access errors (Invalid read of size 4)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Bazaar |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
bzr 2.1.0b4 performs invalid memory access. See attached stderr file. Built from Gentoo package. One example:
Invalid read of size 4
at 0x4EB8FF4: PyObject_Free (in /usr/lib64/
by 0x4E89BCA: code_dealloc (in /usr/lib64/
by 0x4F2AA54: load_source_module (in /usr/lib64/
by 0x4F2B861: import_submodule (in /usr/lib64/
by 0x4F2BAF0: load_next (in /usr/lib64/
by 0x4F2C11B: import_module_level (in /usr/lib64/
by 0x4F2C684: PyImport_
by 0x4F0F34C: builtin___import__ (in /usr/lib64/
by 0x4E71FE6: PyObject_Call (in /usr/lib64/
by 0x4F0F914: PyEval_
by 0x4F129F8: PyEval_EvalFrameEx (in /usr/lib64/
by 0x4F168F0: PyEval_EvalCodeEx (in /usr/lib64/
Address 0x5f0a020 is 544 bytes inside a block of size 568 free'd
at 0x4C259DF: free (vg_replace_
by 0x5AF261F: __fopen_internal (in /lib64/
by 0x4F283B2: find_module (in /usr/lib64/
by 0x4F2B9B2: import_submodule (in /usr/lib64/
by 0x4F2BAF0: load_next (in /usr/lib64/
by 0x4F2C11B: import_module_level (in /usr/lib64/
by 0x4F2C684: PyImport_
by 0x4F0F34C: builtin___import__ (in /usr/lib64/
by 0x4E71FE6: PyObject_Call (in /usr/lib64/
by 0x4F0F914: PyEval_
by 0x4F129F8: PyEval_EvalFrameEx (in /usr/lib64/
by 0x4F168F0: PyEval_EvalCodeEx (in /usr/lib64/
Hi,
Thanks for reporting this.
At least some of the errors you're reporting are coming from inside Python and it's not very likely they're caused by bzr bugs. Can you please make sure you're using the right python setup for valgrind, and report only the things that are actually caused by bzr?