bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange memory-related behavior (bug?)


From: Adam Fedor
Subject: Re: Strange memory-related behavior (bug?)
Date: Tue, 04 Sep 2001 21:09:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.2) Gecko/20010630

Marko Mikulicic wrote:


 Starting program: /System/Tools/ix86/linux-gnu/gnu-gnu-gnu/plparse
 [New Thread 1024 (LWP 20793)]
 NJAMD/free: Address passed (0x4419cff8) is not page-aligned




I've tried efence before with little sucess (perhaps a similar error to what you get).


- does gnustep only use malloc for all his allocations
  (objc_malloc does call malloc at the end)
 (the default zone should use objc_malloc) ?



Yes.


- is __do_global_ctors_aux calling static initializers
  and other things before main ?



It calls the +load method in any class.


- what is gcc_3.0_libobjc_Protocol.mTBvkAc ?



Looks like a constructor function.


- it seems that "free" is called with an address not returned by
"malloc" (njamd returns page-aligned (+4 bytes) addresses, starting near 0x4xxxx000,
  so the faulting address seems returned by the njamd allocator, not malloc
0x8xxxxxxx is more common). It seems that somewhere in the initialization of


I've always suspected there was some wierd bug in GNUstep due to similar problems I've encountered, but I've never been able to track it down. Perhaps it's just due to the size and complexity of GNUstep that debuggers can't handle it. I don't really know.


--
Adam Fedor, Digital Optics            | Fudd's law of opposition: Push
fedor@doc.com  http://www.doc.com     | something hard enough, and it
fedor@gnu.org  http://www.gnustep.org | will fall over.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]