Bug 212780 - /usr/bin/python: free(): invalid pointer: 0x08b84040
Summary: /usr/bin/python: free(): invalid pointer: 0x08b84040
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: newt
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-29 01:20 UTC by Robert Scheck
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-07 03:11:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Full backtrace (14.48 KB, text/plain)
2006-10-30 19:50 UTC, Robert Scheck
no flags Details
another backtrace file (11.69 KB, text/plain)
2006-12-13 02:07 UTC, sangu
no flags Details

Description Robert Scheck 2006-10-29 01:20:06 UTC
Description of problem:
*** glibc detected *** /usr/bin/python: free(): invalid pointer: 0x08b84040 ***
                                                                               
======= Backtrace: =========
                                                                                 
                          /lib/libc.so.6[0x95defd]
                                                                                 
                                                  /lib/libc.so.6(cfree+0x90)
[0x961550]
                        /usr/lib/python2.5/site-packages/_snackmodule.
so[0xdd3846]
                                                                                 
 /usr/lib/libpython2.5.so.1.0[0xcaec02]
                                                                                 
                                       /usr/lib/libpython2.5.so.1.0[0xc896b1]
               /usr/lib/libpython2.5.so.1.0[0xcc4d5d]
                                                     /usr/lib/libpython2.5.so.1.
0[0xca5032]
                                                                                 
          /usr/lib/libpython2.5.so.1.0[0xcaec02]
                                                                                 
                                                /usr/lib/libpython2.5.so.1.
0[0xc896b1]
                        /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x9e0)
[0xcf83a0]
                                                                                 
       /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x63cf)[0xcfdd8f]
          /usr/lib/lAbgebrochen

BTW, "Abgebrochen" means "Canceled".

Version-Release number of selected component (if applicable):
python25-2.5-0

How reproducible:
Running system-config-date in TUI and quitting without any changes.

Actual results:
Invalid pointer.

Expected results:
No invalid pointer... ;-)

Comment 1 Robert Scheck 2006-10-29 01:22:40 UTC
BTW, same at system-config-keyboard in TUI. IMHO either newt/snack or python
is broken.

Comment 2 Jeremy Katz 2006-10-30 18:37:47 UTC
Can you run with _MALLOC_CHECK_=2 and get a full backtrace from gdb?

Comment 3 Robert Scheck 2006-10-30 19:50:46 UTC
Created attachment 139757 [details]
Full backtrace

Is this what you expected to get by me?

Comment 4 Robert Scheck 2006-10-30 19:53:16 UTC
I am providing the requested information for this bug *ticks*

Comment 5 sangu 2006-12-13 01:31:32 UTC
this problem still happens in python-2.5-3.fc7.

Starting system-config-display, *** glibc detected *** python2: free(): invalid
pointer: 0x09c81b00 ***  happens.

Comment 6 sangu 2006-12-13 02:07:07 UTC
Created attachment 143485 [details]
another backtrace file

pyxf86config-0.3.31-4.fc7

Comment 7 Robert Scheck 2006-12-19 23:06:20 UTC
Ping? Nobody interested in fixing this annoying bug?

Comment 8 Jeremy Katz 2006-12-20 01:41:20 UTC
Sorry, thought I had reassigned to the right component after looking into it.

Comment 9 Robert Scheck 2006-12-20 10:37:55 UTC
Hum? Why is this problem re-asssigned to pyxf86config? Any TUI application 
(system-config-*) seems to be affected. IMHO the problem is somewhere between 
newt and python, isn't it?

Comment 10 Robert Scheck 2007-01-04 21:12:01 UTC
Ping?

Comment 11 Michal Jaegermann 2007-01-06 18:08:45 UTC
It appears that bug 220923 will be another instance, or closely related,
to this problem (although that appears to start quite a bit later
than a date on the original report from Robert Scheck).

Presumably glibc got stricter in catching those things as I see also
similar bombs which can be likely be traced back to bugs in fontconfig
or Tk (or both playing together?).

Comment 12 Jeremy Katz 2007-01-06 20:29:46 UTC
This is being caused by snack allocating memory with PyObject_Malloc and then
freeing it with PyMem_DEL.  In python 2.5, these actually have a differences (so
that the interpreter can return memory to the system).

Fixed in newt-0.52.4-3.fc7

Comment 13 Robert Scheck 2007-01-06 23:41:09 UTC
Yepp, your fix is confirmed to work in newt-0.52.4-3. Is there any reason why 
you left open this bug report?

Comment 14 Jeremy Katz 2007-01-07 03:11:43 UTC
Forgot to hit the closed button :)


Note You need to log in before you can comment on or make changes to this bug.