use of menus crashes Firefox?

Keith Seyffarth weif at weif.net
Wed Jan 19 02:01:32 UTC 2011


> 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


More information about the freebsd-questions mailing list