Re: use of menus crashes Firefox?




Run it under gdb, look at the backtrace. Bad system call implies a
mismatch between your shared libraries and kernel, or maybe you are
loading some plugin or something which has been compiled for a
different version of the platform.

Chuck,

Thanks for the suggestion.

I can't figure out how to get that to work...

$ gdb --exec=firefox3
This GDB was configured as
"i386-marcel-freebsd"."/usr/local/bin/firefox3": not in executable
format: File format not recognized

$ gdb --exec=firefox-bin
This GDB was configured as "i386-marcel-freebsd"...firefox-bin: No such
file or directory.

or

$ gdb firefox3
This GDB was configured as
"i386-marcel-freebsd"..."/usr/local/bin/firefox3": not in executable
format: File format not recognized


It doesn't seem that gdb thinks firefox is an executable... I'm not
seeing what I'm missing from the man page.

I can get it to pick up the process once it is running:

$ gdb firefox3 9759
This GDB was configured as
"i386-marcel-freebsd"..."/usr/local/bin/firefox3": not in executable
format: File format not recognized

Attaching to process 9759
/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443:
internal-error: legacy_fetch_link_map_offsets called without legacy
link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443:
internal-error: legacy_fetch_link_map_offsets called without legacy
link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
Abort trap: 6 (core dumped)


this results in both Firefox and GDB crashing...

$ gdb --core=gdb.core
This GDB was configured as "i386-marcel-freebsd".
Core was generated by `gdb'.
Program terminated with signal 6, Aborted.
#0 0x283e8e17 in ?? ()



So, how do I get FF to run under gdb? or does the above provide enough
information to try a fix?

Thanks,
Keith
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Mozilla and Firefox crash on OpenBSD 3.6
    ... >Flash is not installed. ... Attempts to debug the browser using GDB expose a bug in GDB. ... >format: File format not recognized ... It executes: ...
    (comp.unix.bsd.openbsd.misc)
  • Re: gdb 6.1.1: File format not recognized
    ... Subject: gdb 6.1.1: File format not recognized ... > correct file format of a core dump. ... > Architecture version: 1 ...
    (freebsd-hackers)
  • Re: Mozilla and Firefox crash on OpenBSD 3.6
    ... Attempts to debug the browser using GDB expose a bug in GDB. ... Here's what the debugging session looks ... There is absolutely no warranty for GDB. ... format: File format not recognized ...
    (comp.unix.bsd.openbsd.misc)
  • Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....
    ... __do_global_dtors_aux is usually the problem - destroying the globals it created. ... This GDB was configured as ... format: File format not recognized ...
    (freebsd-questions)
  • Re: NPTL patch for linux 2.4.28
    ... I have already checked the core files size ... Please point me to NPTL patch location or the kernel SRPM if you could. ... > While debugging a simple multithreaded application using gdb linux ... exec file is newer than core file. ...
    (Linux-Kernel)