Lion 启动终端错误 - - 真悲催

2012-01-15 23:33:31 +08:00
 alex_ilex
现在终端启动不能,不知道在安装什么东西后就成这样了. 请问高手如何解决?莫非只能重装?

Last login: Sun Jan 15 23:26:44 on console
login(592,0x7fff7d833960) malloc: *** error for object 0x7fd420500000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

[进程已完成]

查看系统Log.


Process: login [7328]
Path: /usr/bin/login
Identifier: login
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: Terminal [218]

Date/Time: 2012-01-15 18:18:06.248 +0800
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
*** error for object 0x7f99f4100000: pointer being freed was not allocated

objc[7328]: garbage collection is OFF
9011 次点击
所在节点    macOS
10 条回复
ant_sz
2012-01-15 23:35:11 +08:00
装个iTerm2试试
liuhang0077
2012-01-15 23:35:27 +08:00
iTerm 也不错
alex_ilex
2012-01-15 23:38:09 +08:00
下载了- - 打不开,直接报上面的错误.自行关闭了...囧
ant_sz
2012-01-15 23:44:00 +08:00
@alex_ilex 悲催。。。。我也没有其他办法。

其实Mac还有一个真终端,你要不要试试能不能进去啊。。。。 貌似开机ALT,然后以-s命令可以以单用户模式启动。。。进入MacOS难得一见的真终端。
freefcw
2012-01-15 23:47:34 +08:00
看说明似乎是释放了未分配的指针……这还真是诡异的bug
alex_ilex
2012-01-15 23:55:42 +08:00
找到了原因.

https://discussions.apple.com/thread/3232775?start=0&tstart=0

然后用磁盘工具修复下权限就好了...

johnwlong
Re: Terminal crashes "pointer being freed was not allocated"
2011-8-3 下午6:58 (in response to johnwlong)
Ok, sounds like "Repair Disk Permisions" in the Disk Utility app will fix the problem:

http://forums.macrumors.com/showthread.php?t=1197937

具体的解决方法:

http://www.simplehelp.net/2007/05/14/how-to-repair-disk-permissions-in-os-x/

万能的google - -
emohacker
2013-12-25 09:51:38 +08:00
@alex_ilex 我也刚遇到这样的问题

万能的 v2ex
keating
2014-03-12 16:32:24 +08:00
悲剧地使用了一个叫做 whoami 命令!
完成的 v2ex !
lubuwei
2014-08-07 03:42:58 +08:00
@alex_ilex 刚好也遇到了这个问题,太感谢了~
fkccp
2015-05-14 16:42:18 +08:00
12年的帖子!
万能的v2ex!
3年了这个bug还在!!!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/25671

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX