AndyA / htop-osx

A port of htop to OSX
http://hexten.net/
GNU General Public License v2.0
180 stars 40 forks source link

malloc issue on snow leopard (10.6.2) #1

Closed prb closed 13 years ago

prb commented 14 years ago

Build runs fine, but alas htop does not.

htop(11589) malloc: *** error for object 0x100cf0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap
kfigiela commented 14 years ago

Do this before ./configure: export CFLAGS="-m32"

This will force building htop as x86 (32-bit, 64-bit by default) application - this way it works :)

bitboxer commented 14 years ago

That didn't work for me. I got :

ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [htop] Error 1 make: * [all] Error 2

as result of make

If you want to get the whole text, I can send that to you via mail.

bitboxer commented 14 years ago

Using MacPort I was able to build it. The PortFile:

http://trac.macports.org/browser/trunk/dports/sysutils/htop/Portfile

kornea commented 13 years ago

I didn't want to install macport (why installing another PERL dist to install htop), so I try to use your source. I have the same problem :

htop(20786) malloc: * error for object 0x100df0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Abort trap

with snow 10.6.5. I try the CFLAGS tricks, but I still have the malloc error.

Any fixes ?

regards

klynch commented 13 years ago

I'm on Snow Leopard 10.6.6 and compiling with CFLAGS="-m32" works for me and also with CFLAGS="-m32 -O2".

nbigaouette commented 13 years ago

On snow leopard 10.6.7 (Darwin 10.7.0), the following worked: export CFLAGS="-m32" && ./autogen.sh && ./configure && make clean && make

omellette commented 13 years ago

On snow leopard 10.6.7, and the previous comment worked well. Thanks nbigaouette!

ghost commented 9 years ago

The above step to build from source and use CFLAGS does not work on yosemite. Please help

JohnDDuncanIII commented 8 years ago

@bansalgagan works for me on OS X 10.11.2 Beta 4