V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alex_ilex
V2EX  ›  macOS

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

  •  
  •   alex_ilex · 2012-01-15 23:33:31 +08:00 · 8984 次点击
    这是一个创建于 4456 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在终端启动不能,不知道在安装什么东西后就成这样了. 请问高手如何解决?莫非只能重装?

    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
    10 条回复    2015-05-14 16:42:18 +08:00
    ant_sz
        1
    ant_sz  
       2012-01-15 23:35:11 +08:00
    装个iTerm2试试
    liuhang0077
        2
    liuhang0077  
       2012-01-15 23:35:27 +08:00
    iTerm 也不错
    alex_ilex
        3
    alex_ilex  
    OP
       2012-01-15 23:38:09 +08:00
    下载了- - 打不开,直接报上面的错误.自行关闭了...囧
    ant_sz
        4
    ant_sz  
       2012-01-15 23:44:00 +08:00
    @alex_ilex 悲催。。。。我也没有其他办法。

    其实Mac还有一个真终端,你要不要试试能不能进去啊。。。。 貌似开机ALT,然后以-s命令可以以单用户模式启动。。。进入MacOS难得一见的真终端。
    freefcw
        5
    freefcw  
       2012-01-15 23:47:34 +08:00
    看说明似乎是释放了未分配的指针……这还真是诡异的bug
    alex_ilex
        6
    alex_ilex  
    OP
       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
        7
    emohacker  
       2013-12-25 09:51:38 +08:00
    @alex_ilex 我也刚遇到这样的问题

    万能的 v2ex
    keating
        8
    keating  
       2014-03-12 16:32:24 +08:00
    悲剧地使用了一个叫做 whoami 命令!
    完成的 v2ex !
    lubuwei
        9
    lubuwei  
       2014-08-07 03:42:58 +08:00
    @alex_ilex 刚好也遇到了这个问题,太感谢了~
    fkccp
        10
    fkccp  
       2015-05-14 16:42:18 +08:00
    12年的帖子!
    万能的v2ex!
    3年了这个bug还在!!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5239 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:25 · PVG 09:25 · LAX 18:25 · JFK 21:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.