Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Malloc error

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


mankoff at gmail

May 16, 2008, 12:08 PM

Post #1 of 3 (416 views)
Permalink
Malloc error

Hi Group,

I'm brand spanking new to Python. Never coded in it, but I'm
comfortable coding in general in other languages. I'm Trying to get
some legacy code to run on a newer machine. I don't have access to the
legacy box for debugging.

I'm getting the following error:

Python(36979) malloc: *** error for object 0x88374: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug

My python version is:

$ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

And this is on an Intel MacBook running 10.5.2

The error is getting printed hundreds of times until I CTRL+C at which
point I see:

Python(36979) malloc: *** error for object 0xa58074: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "v2_to_bdb.py", line 104, in <module>
main()
File "v2_to_bdb.py", line 101, in main
fill_dbm(f, dbm, info, ids, sources)
File "v2_to_bdb.py", line 34, in fill_dbm
mystring = stationstring.serialize(dict, data)
KeyboardInterrupt

And advice on how to work around this error will be much appreciated.

Thanks,

-k.
--
http://mail.python.org/mailman/listinfo/python-list


gagsl-py2 at yahoo

May 16, 2008, 6:16 PM

Post #2 of 3 (360 views)
Permalink
Re: Malloc error [In reply to]

En Fri, 16 May 2008 16:08:41 -0300, mankoff <mankoff [at] gmail> escribió:

> I'm brand spanking new to Python. Never coded in it, but I'm
> comfortable coding in general in other languages.

Welcome...!

> I'm Trying to get
> some legacy code to run on a newer machine. I don't have access to the
> legacy box for debugging.
>
> I'm getting the following error:
>
> Python(36979) malloc: *** error for object 0x88374: Non-aligned
> pointer being freed
> *** set a breakpoint in malloc_error_break to debug

Ouch. I'd like to think that the error doesn't come from Python itself but
from some compiled C extension. Are you using any?
I'd try with the same Python version the legacy box had, if it was older
than 2.5.2

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


mankoff at gmail

May 17, 2008, 6:37 PM

Post #3 of 3 (349 views)
Permalink
Re: Malloc error [In reply to]

On May 16, 9:16 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
> En Fri, 16 May 2008 16:08:41 -0300, mankoff <mank...@gmail.com> escribió:
>
> > I'm brand spanking new to Python. Never coded in it, but I'm
> > comfortable coding in general in other languages.
>
> Welcome...!
>
> > I'm Trying to get
> > some legacy code to run on a newer machine. I don't have access to the
> > legacy box for debugging.
>
> > I'm getting the following error:
>
> > Python(36979) malloc: *** error for object 0x88374: Non-aligned
> > pointer being freed
> > *** set a breakpoint in malloc_error_break to debug
>
> Ouch. I'd like to think that the error doesn't come from Python itself but  
>  from some compiled C extension. Are you using any?
> I'd try with the same Python version the legacy box had, if it was older  
> than 2.5.2
>
> --
> Gabriel Genellina

You're right. I was using some C extensions. The bug was there. I've
fixed it and everything appears to be working.

Thanks,

-k.
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.