Bug 272445 - www/tor-browser 12.0.6_1 Segfault after a few seconds of launch the port
Summary: www/tor-browser 12.0.6_1 Segfault after a few seconds of launch the port
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL: https://forums.freebsd.org/threads/to...
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2023-07-10 13:19 UTC by Bob Slacker
Modified: 2024-04-16 10:30 UTC (History)
8 users (show)

See Also:
fernape: maintainer-feedback? (freebsd)


Attachments
backtrace (7.95 KB, text/plain)
2023-07-12 20:45 UTC, Graham Perrin
no flags Details
the backtrace, in colour (457.46 KB, image/png)
2023-07-12 20:46 UTC, Graham Perrin
no flags Details
(gdb) bt (5.27 KB, text/plain)
2023-09-18 23:09 UTC, Graham Perrin
no flags Details
(lldb) bt, bt all (13.72 KB, text/plain)
2023-09-18 23:17 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Slacker 2023-07-10 13:19:26 UTC
{beastie} Ψ FreeBaSeD-T430 Ψ /home/beastie
 Ψ tor-browser
ATTENTION: default value of option mesa_glthread overridden by environment.
[fluent] Missing message in locale en-US: menu-help-feedback-page
[fluent] Couldn't find a message: menu-help-feedback-page
[dom/l10n] Could not complete initial document translation.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
zsh: segmentation fault tor-browser
root@FreeBaSeD-T430:~ # dmesg | grep pid
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
pid 74681 (tor-browser), jid 0, uid 1001: exited on signal 11
pid 12834 (tor-browser), jid 0, uid 1001: exited on signal 11
pid 11220 (tor-browser), jid 0, uid 1001: exited on signal 11
pid 37055 (tor-browser), jid 0, uid 1001: exited on signal 11
pid 91911 (tor-browser), jid 0, uid 1001: exited on signal 11
{beastie} Ψ FreeBaSeD-T430 Ψ /home/beastie
 Ψ doas pkg_libchk
Password:
linux-c7-expat-2.1.0_5: /compat/linux/usr/bin/xmlwf misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-32 misses libfreetype.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-32 misses libexpat.so.1
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-32 misses libuuid.so.1
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-32 misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-32 misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-64 misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cache-64 misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cat misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-cat misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-conflist misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-conflist misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-list misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-list misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-match misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-match misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-pattern misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-pattern misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-query misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-query misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-scan misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-scan misses libc.so.6
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-validate misses libpthread.so.0
linux-c7-fontconfig-2.13.0: /compat/linux/usr/bin/fc-validate misses libc.so.6
libreoffice-7.5.4.2_1: /usr/local/lib/libreoffice/program/libofficebean.so misses libjawt.so
root@FreeBaSeD-T430:~ # grep tor-browser /var/log/all.log
Jul  6 04:18:54 FreeBaSeD-T430 pkg[90603]: tor-browser upgraded: 12.0.6 -> 12.0.6_1
Jul  6 14:09:07 FreeBaSeD-T430 kernel: pid 74681 (tor-browser), jid 0, uid 1001: exited on signal 11
Jul  6 14:09:34 FreeBaSeD-T430 kernel: pid 12834 (tor-browser), jid 0, uid 1001: exited on signal 11
Jul  6 14:09:55 FreeBaSeD-T430 kernel: pid 11220 (tor-browser), jid 0, uid 1001: exited on signal 11
Jul  6 14:33:19 FreeBaSeD-T430 doas[3786]: beastie ran command pkg_libchk tor-browser as root from /usr/home/beastie
Jul  6 14:33:38 FreeBaSeD-T430 doas[30942]: beastie ran command pkg_libchk -v tor-browser as root from /usr/home/beastie
Jul  6 15:37:41 FreeBaSeD-T430 kernel: pid 37055 (tor-browser), jid 0, uid 1001: exited on signal 11
Jul  6 15:56:57 FreeBaSeD-T430 kernel: pid 91911 (tor-browser), jid 0, uid 1001: exited on signal 11
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-07-12 20:45:25 UTC
Created attachment 243364 [details]
backtrace

Backtrace from .core file on 14.0-CURRENT
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-07-12 20:46:51 UTC
Created attachment 243365 [details]
the backtrace, in colour

(In reply to Graham Perrin from comment #1)
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2023-07-12 20:59:15 UTC
I encountered the crash with a first run of this version, maybe after clicking away (or Alt-Tab away) from a pop-up near top right. 

So far, no crash with subsequent runs.
Comment 4 Bob Slacker 2023-07-12 21:02:40 UTC
(In reply to Graham Perrin from comment #3)
Same happens to me, if I change my workspace or change the focused app, tor-browser crashes almost immediately. It's also crashes when I try to load any onion site.
Comment 5 Brian Roper 2023-07-13 04:11:46 UTC
tor-browser frequently crashing here too.  
The recent upgrade included some unintended new features.
Comment 6 Bob Slacker 2023-08-11 14:28:54 UTC
This issue it is present in the version www/tor-browser-12.0.6_3 present in the latest repository as well.
Comment 7 Markus Graf 2023-09-17 13:48:05 UTC
Same here on FreeBSD 13.2. tor-browser-12.0.6 used core dump on first opening a page, after upgrade to tor-browser-12.0.6_4 will open the first page but still dumps sporadically.
Comment 8 Fernando Apesteguía freebsd_committer freebsd_triage 2023-09-17 17:43:00 UTC
Really strange, I can't see these crashes on 13.2-RELEASE and tor-browser 12.0.6_4.

I just installed the browser, started the tor service and it seems I can access different .onion sites without problem.
Comment 9 Graham Perrin 2023-09-18 23:09:28 UTC
Created attachment 245009 [details]
(gdb) bt

(In reply to Graham Perrin from comment #1)

> Backtrace from .core file on 14.0-CURRENT

Without attempting to compare the two: here's a gdb view of a backtrace from a crash of tor-browser-12.0.6_4 on FreeBSD 15.0-CURRENT 1500000.

gdb /usr/local/bin/tor-browser -- ~/tor-browser.core
Comment 10 Graham Perrin 2023-09-18 23:17:27 UTC
Created attachment 245010 [details]
(lldb) bt, bt all

(In reply to Graham Perrin from comment #9)

> … here's a gdb view of a backtrace from a crash …

This lldb view seems less useful than the gdb view. 

lldb -c ~/tor-browser.core
Comment 11 Graham Perrin 2023-09-18 23:28:51 UTC
(In reply to Bob Slacker from comment #0)

If you refrain from resizing any browser window, then is the crash reproducible?
Comment 12 Graham Perrin 2023-09-19 00:13:05 UTC
jbeich@ you have a good nose for things such as this. 


For me at the moment, crashes are consistently reproducible in multiple ways. 


One set of steps:

1. maximise the browser window

2. use the File menu, or tab bar, to open a new tab

– a crash before the tab appears.


Given (1) above and (a) below, what's the aroma?


----

(In reply to Fernando Apesteguía from comment #8)

Try these two steps: 

a) Control-B (to open the sidebar)

b) use the sidebar to open any bookmark.
Comment 13 Brian Roper 2023-09-19 00:32:28 UTC
(In reply to Graham Perrin from comment #11)

Yes, the crash is reproducible without resizing the window.
Often the right click at a link (ie open in new tab) will cause a crash.
Comment 14 Fernando Apesteguía freebsd_committer freebsd_triage 2023-09-19 06:50:35 UTC
(In reply to Graham Perrin from comment #12)
That triggers the crash in my case.

Having a look at the backtrace, it seems similar to this Firefox report:

https://bugzilla.mozilla.org/show_bug.cgi?id=1731142

which is still open.

I obtain a very similar backtrace:

#0  0x00001592741f3c5a in thr_kill () at /lib/libc.so.7
#1  0x000015927416c6d4 in raise () at /lib/libc.so.7
#2  0x00001592a3341a02 in nsProfileLock::FatalSignalHandler(int, __siginfo*, void*) () at /usr/local/lib/tor-browser/libxul.so
#3  0x00001592a3cd4997 in WasmTrapHandler(int, __siginfo*, void*) () at /usr/local/lib/tor-browser/libxul.so
#4  0x0000159272915b6e in  () at /lib/libthr.so.3
#5  0x000015927291511f in  () at /lib/libthr.so.3
#6  0x00007fffffffe8a3 in <signal handler called> ()
#7  0x00001592e75542e0 in  ()
#8  0x00001592a4beadba in style::properties::cascade::Cascade::apply_properties::h62ca68d5fcc77c39 () at /usr/local/lib/tor-browser/libxul.so
#9  0x00001592a4bea5f7 in style::properties::cascade::cascade_rules::h14b1cfa99da11f4b () at /usr/local/lib/tor-browser/libxul.so
#10 0x00001592a4c017f6 in style::stylist::Stylist::cascade_style_and_visited::h519b00bebdda9c12 () at /usr/local/lib/tor-browser/libxul.so
#11 0x00001592a4bf382d in style::style_resolver::StyleResolverForElement<E>::cascade_style_and_visited::had2d5ef70f7a19da ()
    at /usr/local/lib/tor-browser/libxul.so
#12 0x00001592a4bf34d8 in style::style_resolver::StyleResolverForElement<E>::cascade_primary_style::hc5db7f434411e767 ()
    at /usr/local/lib/tor-browser/libxul.so
Comment 15 Graham Perrin 2023-09-22 02:42:26 UTC
(In reply to Graham Perrin from comment #12)

Bug 273999 comment 4 noted and understood; feedback request cancelled. 

(In reply to Fernando Apesteguía from comment #14)

Thanks, I'll raise this in <https://matrix.to/#/#developers:mozilla.org>
Comment 17 Graham Perrin 2023-09-27 03:42:36 UTC
<https://github.com/freebsd/poudriere/discussions/1077>

> www/tor-browser DEBUG off after building with DEBUG=on · freebsd/poudriere · 
> Discussion #1077
Comment 18 Martin Filla 2024-03-20 13:12:37 UTC
(In reply to Bob Slacker from comment #0)
You try to update to 13.0.1
Comment 19 Bob Slacker 2024-04-16 10:28:06 UTC
(In reply to Martin Filla from comment #18)
Yes, now on FBSD 13.3 and tor-browser 13.0.1 the crash went way.
I still have some issues accessing some onions (dread for ex.) but this is probably not related with this old bug.