免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2560 | 回复: 2
打印 上一主题 下一主题

Debian 4(Etch)运行Firefox出现 Segmentation fault [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-16 23:47 |只看该作者 |倒序浏览
问题如题所示。Fireofx的版本是2.0.0.14。

当在其目录下执行 ./firefox 时,如果Iceweasel未运行,就会出现类似
    “./run-mozilla.sh: line 131:  7443 Segmentation fault      "$prog" ${1+"$@"}”
的出错信息;
如果Iceweasel已运行的话就会打开一个新的Iceweasel窗口。

请问这是什么问题?该如何解决呢?谢谢!

run-mozilla.sh中131行附近的代码如下:

moz_run_program()
{
    prog=$MOZ_PROGRAM
    ##
    ## Make sure the program is executable
    ##
    if [ ! -x "$prog" ]
    then
        moz_bail "Cannot execute $prog."
    fi
    ##
    ## Use md5sum to crc a core file.  If md5sum is not found on the system,
    ## then dont debug core files.
    ##
    moz_test_binary /bin/type
    if [ $? -eq 1 ]
    then
        crc_prog=`type md5sum 2>/dev/null | awk '{print $3;}' 2>/dev/null | sed -e 's/\.$//'`
    else
        crc_prog=`which md5sum 2>/dev/null`
    fi
    if [ -x "$crc_prog" ]
    then
        DEBUG_CORE_FILES=1
    fi
    if [ "$DEBUG_CORE_FILES" ]
    then
        crc_old=
        if [ -f core ]
        then
            crc_old=`$crc_prog core | awk '{print $1;}' `
        fi
    fi
    ##
    ## Run the program
    ##
    "$prog" ${1+"$@"}
    exitcode=$?
    if [ "$DEBUG_CORE_FILES" ]
    then
        if [ -f core ]
        then
            crc_new=`$crc_prog core | awk '{print $1;}' `
        fi
    fi
    if [ "$crc_old" != "$crc_new" ]
    then
        printf "\n\nOh no!  %s just dumped a core file.\n\n" $prog
        printf "Do you want to debug this ? "
        printf "You need a lot of memory for this, so watch out ? [y/n] "
        read ans
        if [ "$ans" = "y" ]
        then
            debugger=`moz_get_debugger`
            if [ -x "$debugger" ]
            then
                echo "$debugger $prog core"

                # See http://www.mozilla.org/unix/debugging-faq.html
                # For why LD_BIND_NOW is needed
                LD_BIND_NOW=1; export LD_BIND_NOW

                $debugger "$prog" core
            else
                echo "Could not find a debugger on your system."
            fi
        fi
    fi
}

论坛徽章:
0
2 [报告]
发表于 2008-06-17 00:23 |只看该作者

回复 #1 sysulzh 的帖子

问题似乎是出在    "$prog" ${1+"$@"}
当执行到该语句时 $prog 的值是 "./firefox-bin" , $@的值为空

水平有限,不知怎么回事。 Anyone can help?

论坛徽章:
0
3 [报告]
发表于 2008-07-31 22:37 |只看该作者
firefox3已经来了,试一下,下载来直接用,而且在lenny下我觉得要比2.0版本快一些
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP