Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Firefox52 broken on NetBSD9.3 / pkgsrc-2022Q4



On Sat, Jan 21, 2023 at 9:47 AM Martin Husemann <martin%duskware.de@localhost> wrote:
>
> On Fri, Jan 20, 2023 at 10:58:16PM +0100, Alexander Schreiber wrote:
> > Next step is to build firefox with actual debug symbols so one can check
> > exactly where that happens. Although I'm somewhat suspicious, given:
>
> This is not as tricky as it sounds (but needs (compile) time and disk
> space), here is a description how I used to do it:
>
>         http://wiki.netbsd.org/tutorials/pkgsrc/debugging_firefox/
>
> This should still work (and sorry I didn't do it for a while for firefox52
> on sparc64, my main sparc64 desktop machine's hardware broke and I haven't
> come around to fixing or replacing it).
>
> Martin

Hello Martin and all,

first i have to report that thunderbird52 shows the same or similar
issue and is also crashing when built from pkgsrc_2022Q4.

I now have built the debug symbol version of firefox52 as instructed.
I get an error displayed from gdb referring to python, but it seems it
runs anyway:

root@localhost:/usr/pkgsrc/www/firefox52/work/build/dist/bin# paxctl
+m ./firefox
root@localhost:/usr/pkgsrc/www/firefox52/work/build/dist/bin#
./run-mozilla.sh -g ./firefox
MOZILLA_FIVE_HOME=.
  LD_LIBRARY_PATH=.:./plugins:.
DISPLAY=:0.0
DYLD_LIBRARY_PATH=.:.
     LIBRARY_PATH=
       SHLIB_PATH=.:.
          LIBPATH=.:.
       ADDON_PATH=
      MOZ_PROGRAM=./firefox
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
moz_debugger_args=
/usr/bin/gdb  --args ./firefox
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "sparc64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./firefox...
.gdbinit:189: Error in sourced command file:
.gdbinit_python:5: Error in sourced command file:
Scripting in the "Python" language is not supported in this copy of GDB.
(gdb)

Then i run it and get the following result:

(gdb) run
Starting program: /usr/pkgsrc/www/firefox52/work/build/dist/bin/firefox
[New process 13240]
[Detaching after fork from child process 28480]
[New LWP 2 of process 13240]
[New LWP 3 of process 13240]
[New LWP 4 of process 13240]
[New LWP 10 of process 13240]
[New LWP 9 of process 13240]
[New LWP 8 of process 13240]
[New LWP 7 of process 13240]
[New LWP 6 of process 13240]
[New LWP 5 of process 13240]
[New LWP 11 of process 13240]
[New LWP 12 of process 13240]
[New LWP 13 of process 13240]
[New LWP 14 of process 13240]
[New LWP 15 of process 13240]
[New LWP 16 of process 13240]
[New LWP 17 of process 13240]
[New LWP 18 of process 13240]
[New LWP 19 of process 13240]
[New LWP 20 of process 13240]
[New LWP 21 of process 13240]
[New LWP 22 of process 13240]
[New process 13240]
[Detaching after fork from child process 2981]
[New LWP 23 of process 13240]
[New LWP 24 of process 13240]
[New LWP 25 of process 13240]
[New LWP 26 of process 13240]
[New LWP 27 of process 13240]
[New LWP 28 of process 13240]
[New LWP 29 of process 13240]
[New LWP 30 of process 13240]
[New LWP 31 of process 13240]
[New LWP 32 of process 13240]
[New LWP 33 of process 13240]
[New LWP 34 of process 13240]
[New LWP 35 of process 13240]
[New LWP 36 of process 13240]
[New LWP 37 of process 13240]
[New LWP 38 of process 13240]
[New process 13240]

[Detaching after fork from child process 25760]
[New LWP 40 of process 13240]
[New LWP 41 of process 13240]
[New LWP 42 of process 13240]
[New LWP 43 of process 13240]
[New LWP 44 of process 13240]
[New LWP 45 of process 13240]
[New LWP 46 of process 13240]
[New LWP 47 of process 13240]

Thread 1 "" received signal SIGSEGV, Segmentation fault.
0x000000004cb09ec4 in CallQueryInterface<nsISupports, nsWrapperCache>
(aDestination=0xffffffffffff9e98, aSource=0>
    at /usr/pkgsrc/www/firefox52/work/build/dist/include/nsISupportsUtils.h:135
135
reinterpret_cast<void**>(aDestination));
(gdb) bt
#0  0x000000004cb09ec4 in CallQueryInterface<nsISupports,
nsWrapperCache> (aDestination=0xffffffffffff9e98, aSour>
    at /usr/pkgsrc/www/firefox52/work/build/dist/include/nsISupportsUtils.h:135
#1  xpcObjectHelper::xpcObjectHelper (this=0xffffffffffff9e80,
aObject=0x410ed748 <__stack_chk_guard>, aCache=0x0)
    at /usr/pkgsrc/www/firefox52/work/firefox-52.9.0esr/js/xpconnect/src/xpcObjectHelper.h:35
l#2  0x000000004a55036c in XPCConvert::NativeData2JS (d=...,
s=0xffffffffffffa468, type=..., iid=iid@entry=0xffff>
    at /usr/pkgsrc/www/firefox52/work/firefox-52.9.0esr/js/xpconnect/src/XPCConvert.cpp:343
#3  0x000000004a56c7dc in nsXPCWrappedJSClass::CallMethod
(this=0x535a5000, wrapper=<optimized out>, methodIndex=>
    at /usr/pkgsrc/www/firefox52/work/firefox-52.9.0esr/js/xpconnect/src/XPCWrappedJSClass.cpp:1163
#4  0x0000000049df8450 in PrepareAndDispatch (self=<optimized out>,
methodIndex=<optimized out>, args=0xfffffffff>
    at /usr/pkgsrc/www/firefox52/work/firefox-52.9.0esr/xpcom/reflect/xptcall/md/unix/xptcstubs_sparc64_openbsd.c>
#5  0x0000000049e001d0 in SharedStub () at
/usr/pkgsrc/www/firefox52/work/firefox-52.9.0esr/xpcom/reflect/xptcall>
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) list
130
131       NS_PRECONDITION(aSource, "null parameter");
132       NS_PRECONDITION(aDestination, "null parameter");
133
134       return aSource->QueryInterface(NS_GET_TEMPLATE_IID(DestinationType),
135
reinterpret_cast<void**>(aDestination));
136     }
137
138     template <class SourceType, class DestinationType>
139     inline nsresult
(gdb)


Regards,
Connor


Home | Main Index | Thread Index | Old Index