Dan Nicholson wrote:

On 4/7/06, Tor Olav Stava <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED]:~# firefox
/usr/lib/firefox-1.5.0.1/run-mozilla.sh: line 131: 27354 Segmentation
fault      "$prog" ${1+"$@"}

First, let's turn up the verbosity of run-mozilla.sh to see where it's
crashing.  I think it may be firefox -g to turn on debugging, but I
can't recall right now.  Open up run-mozilla.sh in a text editor and
put

set -vx

in there somewhere.  Next time you start firefox, log the output,
there will be a lot.
OK.. Firefox recompiled, and set -vx in run-mozilla.sh. The output is attached. Hopefully someone can tell what's going on, coz it don't tell me much :(

I also tried compiling with --enable-debug set in .mozconfig, but that automatically started firefox with gdb, and I don't know how to use the debugger. The funny thing was that the Firefox window actually appeared, and entered into a stopped state. Since I didn't know what to do in gdb, and Fx actually started, I figured I must have hit the right button when fixing the fonts configurations. So that install went out the window, and another compile without debug set. Then the silly segfault's back again. :(

I vaguely remember something very similar to this when searching the mozilla forums, but of course I didn't save the link, and I don't remember there was any solution to the problem there.

I've quadruple-checked the fonts-config as it seems to be the common culprit, but I can't find anything wrong. The dirs and fonts are all world readable, and fc-list output seems very appropriate.

I'm stumped, and considering a downgrade, to see if that will solve the issues :(


Tor Olav
moz_libdir=/usr/lib/firefox-1.5.0.1
+ moz_libdir=/usr/lib/firefox-1.5.0.1
MRE_HOME=/usr/lib/mre/mre-1.5.0.1
+ MRE_HOME=/usr/lib/mre/mre-1.5.0.1

# Use run-mozilla.sh in the current dir if it exists
# If not, then start resolving symlinks until we find run-mozilla.sh
found=0
+ found=0
progname="$0"
+ progname=/usr/bin/firefox
curdir=`dirname "$progname"`
dirname "$progname"
++ dirname /usr/bin/firefox
+ curdir=/usr/bin
progbase=`basename "$progname"`
basename "$progname"
++ basename /usr/bin/firefox
+ progbase=firefox
run_moz="$curdir/run-mozilla.sh"
+ run_moz=/usr/bin/run-mozilla.sh
if test -x "$run_moz"; then
  dist_bin="$curdir"
  found=1
else
  here=`/bin/pwd`
  while [ -h "$progname" ]; do
    bn=`basename "$progname"`
    cd `dirname "$progname"`
    progname=`/bin/ls -l "$bn" | sed -e 's/^.* -> //' `
    if [ ! -x "$progname" ]; then
      break
    fi
    curdir=`dirname "$progname"`
    run_moz="$curdir/run-mozilla.sh"
    if [ -x "$run_moz" ]; then
      cd "$curdir"
      dist_bin=`pwd`
      run_moz="$dist_bin/run-mozilla.sh"
      found=1
      break
    fi
  done
  cd "$here"
fi
+ test -x /usr/bin/run-mozilla.sh
/bin/pwd
++ /bin/pwd
+ here=/root
+ '[' -h /usr/bin/firefox ']'
+ cd /root
if [ $found = 0 ]; then
  # Check default compile-time libdir
  if [ -x "$moz_libdir/run-mozilla.sh" ]; then
    dist_bin="$moz_libdir"
  else 
    echo "Cannot find mozilla runtime directory. Exiting."
    exit 1
  fi
fi
+ '[' 0 = 0 ']'
+ '[' -x /usr/lib/firefox-1.5.0.1/run-mozilla.sh ']'
+ dist_bin=/usr/lib/firefox-1.5.0.1

script_args=""
+ script_args=
debugging=0
+ debugging=0
MOZILLA_BIN="${progbase}-bin"
+ MOZILLA_BIN=firefox-bin

if [ "$OSTYPE" = "beos" ]; then
  mimeset -F "$MOZILLA_BIN"
fi
+ '[' linux-gnu = beos ']'

pass_arg_count=0
+ pass_arg_count=0
while [ $# -gt $pass_arg_count ]
do
  case "$1" in
    -p | --pure | -pure)
      MOZILLA_BIN="${MOZILLA_BIN}.pure"
      shift
      ;;
    -g | --debug)
      script_args="$script_args -g"
      debugging=1
      shift
      ;;
    -d | --debugger)
      script_args="$script_args -d $2"
      shift 2
      ;;
    *)
      # Move the unrecognized argument to the end of the list.
      arg="$1"
      shift
      set -- "$@" "$arg"
      pass_arg_count=`expr $pass_arg_count + 1`
      ;;
  esac
done
+ '[' 0 -gt 0 ']'

export MRE_HOME
+ export MRE_HOME

## Start addon scripts
moz_pis_startstop_scripts "start"
+ moz_pis_startstop_scripts start
+ MOZ_USER_DIR=.mozilla/firefox
+ MOZ_PIS_API=2
+ MOZ_PIS_MOZBINDIR=/usr/lib/firefox-1.5.0.1
+ MOZ_PIS_SESSION_PID=18351
+ MOZ_PIS_USER_DIR=.mozilla/firefox
+ export MOZ_PIS_API MOZ_PIS_MOZBINDIR MOZ_PIS_SESSION_PID MOZ_PIS_USER_DIR
+ case "${1}" in
+ for curr_pis in '"${dist_bin}/init.d"/S*' 
'"${HOME}/${MOZ_USER_DIR}/init.d"/S*'
+ '[' -x '/usr/lib/firefox-1.5.0.1/init.d/S*' ']'
+ for curr_pis in '"${dist_bin}/init.d"/S*' 
'"${HOME}/${MOZ_USER_DIR}/init.d"/S*'
+ '[' -x '/root/.mozilla/firefox/init.d/S*' ']'

if [ $debugging = 1 ]
then
  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
fi
+ '[' 0 = 1 ']'
"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
+ /usr/lib/firefox-1.5.0.1/run-mozilla.sh /usr/lib/firefox-1.5.0.1/firefox-bin
/usr/lib/firefox-1.5.0.1/run-mozilla.sh: line 131: 18360 Segmentation fault     
 "$prog" ${1+"$@"}
exitcode=$?
+ exitcode=139

## Stop addon scripts
moz_pis_startstop_scripts "stop"
+ moz_pis_startstop_scripts stop
+ MOZ_USER_DIR=.mozilla/firefox
+ MOZ_PIS_API=2
+ MOZ_PIS_MOZBINDIR=/usr/lib/firefox-1.5.0.1
+ MOZ_PIS_SESSION_PID=18351
+ MOZ_PIS_USER_DIR=.mozilla/firefox
+ export MOZ_PIS_API MOZ_PIS_MOZBINDIR MOZ_PIS_SESSION_PID MOZ_PIS_USER_DIR
+ case "${1}" in
+ for curr_pis in '"${HOME}/${MOZ_USER_DIR}/init.d"/K*' 
'"${dist_bin}/init.d"/K*'
+ '[' -x '/root/.mozilla/firefox/init.d/K*' ']'
+ for curr_pis in '"${HOME}/${MOZ_USER_DIR}/init.d"/K*' 
'"${dist_bin}/init.d"/K*'
+ '[' -x '/usr/lib/firefox-1.5.0.1/init.d/K*' ']'

exit $exitcode
+ exit 139
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to