If I were a betting person, I would put my stakes on gdk-pixbuf
(https://github.com/snapcrafters/vscode/blob/master/files/bin/wrapper#L36)

If that is part of code's environment, whatever it calls will leak that
env into the callee...

sergiusens@umbar:~$ snap run --shell code
sergiusens@umbar:~$ cd $SNAP
sergiusens@umbar:/snap/code/25$ cat electron-launch 
#!/usr/bin/env bash

# On Fedora $SNAP is under /var and there is some magic to map it to /snap.
# We need to handle that case and reset $SNAP
SNAP=$(echo $SNAP | sed -e "s|/var/lib/snapd||g")

if [ "$SNAP_ARCH" == "amd64" ]; then
  ARCH="x86_64-linux-gnu"
elif [ "$SNAP_ARCH" == "armhf" ]; then
  ARCH="arm-linux-gnueabihf"
elif [ "$SNAP_ARCH" == "arm64" ]; then
  ARCH="aarch64-linux-gnu"
else
  ARCH="$SNAP_ARCH-linux-gnu"
fi

export XDG_CACHE_HOME=$SNAP_USER_COMMON/.cache
if [[ -d $SNAP_USER_DATA/.cache && ! -e $XDG_CACHE_HOME ]]; then
  # the .cache directory used to be stored under $SNAP_USER_DATA, migrate it
  mv $SNAP_USER_DATA/.cache $SNAP_USER_COMMON/
fi
mkdir -p $XDG_CACHE_HOME

# Gdk-pixbuf loaders
export GDK_PIXBUF_MODULE_FILE=$XDG_CACHE_HOME/gdk-pixbuf-loaders.cache
export GDK_PIXBUF_MODULEDIR=$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/2.10.0/loaders
if [ -f $SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders ]; then
  $SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders > 
$GDK_PIXBUF_MODULE_FILE
fi

# Create $XDG_RUNTIME_DIR if not exists (to be removed when 
https://pad.lv/1656340 is fixed)
[ -n "$XDG_RUNTIME_DIR" ] && mkdir -p $XDG_RUNTIME_DIR -m 700

exec "$@"
sergiusens@umbar:/snap/code/25$ if [ "$SNAP_ARCH" == "amd64" ]; then
>   ARCH="x86_64-linux-gnu"
> elif [ "$SNAP_ARCH" == "armhf" ]; then
>   ARCH="arm-linux-gnueabihf"
> elif [ "$SNAP_ARCH" == "arm64" ]; then
>   ARCH="aarch64-linux-gnu"
> else
>   ARCH="$SNAP_ARCH-linux-gnu"
> fi
sergiusens@umbar:/snap/code/25$ 
sergiusens@umbar:/snap/code/25$ export XDG_CACHE_HOME=$SNAP_USER_COMMON/.cache
sergiusens@umbar:/snap/code/25$ if [[ -d $SNAP_USER_DATA/.cache && ! -e 
$XDG_CACHE_HOME ]]; then
>   # the .cache directory used to be stored under $SNAP_USER_DATA, migrate it
>   mv $SNAP_USER_DATA/.cache $SNAP_USER_COMMON/
> fi
sergiusens@umbar:/snap/code/25$ mkdir -p $XDG_CACHE_HOME
sergiusens@umbar:/snap/code/25$ 
sergiusens@umbar:/snap/code/25$ # Gdk-pixbuf loaders
sergiusens@umbar:/snap/code/25$ export 
GDK_PIXBUF_MODULE_FILE=$XDG_CACHE_HOME/gdk-pixbuf-loaders.cache
sergiusens@umbar:/snap/code/25$ export 
GDK_PIXBUF_MODULEDIR=$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/2.10.0/loaders
sergiusens@umbar:/snap/code/25$ if [ -f 
$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders ]; then
>   $SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders > 
> $GDK_PIXBUF_MODULE_FILE
> fi
sergiusens@umbar:/snap/code/25$ firefox
ExceptionHandler::GenerateDump cloned child 570327
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
sergiusens@umbar:/snap/code/25$ unset GDK_PIXBUF_MODULE_FILE 
sergiusens@umbar:/snap/code/25$ unset GDK_PIXBUF_MODULEDIR 
sergiusens@umbar:/snap/code/25$ firefox

###!!! [Child][MessageChannel] Error:
(msgtype=0x370135,name=PContent::Msg_DetachBrowsingContext) Closed
channel: cannot send/recv


As you can see, env exported gets a crash, next, after unsetting, everything is 
fine.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1838129

Title:
  Firefox crashreporter crashed with SIGSEGV in memcpy() when opening
  links from Visual Studio Code snap

Status in firefox package in Ubuntu:
  Confirmed

Bug description:
  How the crash happened:

  0) Firefox is already open with a few tabs.
  1) Click on a link in VS Code.
  2) Firefox crashes
  3) The crashreporter of firefex pops up.
  4) Click on "Send to Mozilla".
  5) Crash.

  Here is the crashreport of Firefox: 
https://crash-stats.mozilla.org/report/index/b6952db2-9983-4f67-b51c-f03a60190727#tab-details
  I send it manually via about:crashes because the crashreporter is crashed.

  VS Code is installed as a snap by the way.

  $ snap list
  Name               Version          Rev   Tracking  Publisher         Notes
  code               2213894e         11    stable    vscode✓           classic
  core               16-2.39.3        7270  stable    canonical✓        core
  core18             20190709         1066  stable    canonical✓        base
  gtk-common-themes  0.1-22-gab0a26b  1313  stable    canonical✓        -
  telegram-desktop   1.7.13           836   stable    telegram.desktop  -

  As you can see telegram is also installed as as snap. but open links
  from telegram just work.

  Auto generated data below
  -------------------------------------------------------

  ProblemType: Crash
  DistroRelease: Ubuntu 19.10
  Package: firefox 68.0.1+build1-0ubuntu2
  ProcVersionSignature: Ubuntu 5.2.0-8.9-generic 5.2.0
  Uname: Linux 5.2.0-8-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  AddonCompatCheckDisabled: False
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  stefano    1718 F.... pulseaudio
  BuildID: 20190719083815
  Channel: Unavailable
  CrashCounter: 1
  CurrentDesktop: Unity
  Date: Sat Jul 27 13:01:39 2019
  DefaultProfileExtensions: extensions.sqlite corrupt or missing
  DefaultProfileIncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  DefaultProfileLocales: extensions.sqlite corrupt or missing
  DefaultProfilePrefErrors: Unexpected character ',' before close parenthesis @ 
/usr/lib/firefox/omni.ja:greprefs.js:1141
  DefaultProfilePrefSources: prefs.js
  DefaultProfilePrefs:
   extensions.lastAppVersion: "68.0.1" (prefs.js)
   security.sandbox.content.tempDirSuffix: 
"0b21b0ae-b91f-43b6-9458-bf92ba3df531" (prefs.js)
   security.sandbox.plugin.tempDirSuffix: 
"9a7729c3-823f-443e-95cb-6b41d9a61198" (prefs.js)
  DefaultProfileThemes: extensions.sqlite corrupt or missing
  ExecutablePath: /usr/lib/firefox/crashreporter
  ForcedLayersAccel: False
  InstallationDate: Installed on 2019-07-20 (7 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190715)
  IpRoute:
   default via 192.168.0.1 dev wlp2s0 proto dhcp metric 600
   169.254.0.0/16 dev wlp2s0 scope link metric 1000
   192.168.0.0/24 dev wlp2s0 proto kernel scope link src 192.168.0.199 metric 
600
  LocalLibraries: /snap/code/11/usr/lib/x86_64-linux-gnu/librsvg-2.so.2.40.13 
/snap/code/11/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so
 
/snap/code/11/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
 /snap/code/11/usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1 
/snap/code/11/usr/lib/x86_64-linux-gnu/libicudata.so.55.1 
/snap/code/11/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
 /snap/code/11/usr/lib/x86_64-linux-gnu/libxml2.so.2.9.4 
/snap/code/11/usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
  MostRecentCrashID: bp-b6952db2-9983-4f67-b51c-f03a60190727
  ProcCmdline: /usr/lib/firefox/crashreporter 
/home/username/.mozilla/firefox/7n8aku4a.default/minidumps/7eb59ca7-3107-9f59-9af7-7a6e321d6230.dmp
  Profile0Extensions: extensions.sqlite corrupt or missing
  Profile0IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  Profile0Locales: extensions.sqlite corrupt or missing
  Profile0PrefErrors: Unexpected character ',' before close parenthesis @ 
/usr/lib/firefox/omni.ja:greprefs.js:1141
  Profile0PrefSources: prefs.js
  Profile0Themes: extensions.sqlite corrupt or missing
  Profiles:
   Profile1 (Default) - LastVersion=68.0.1/20190719083815
   Profile0 - LastVersion=68.0.1/20190719083815 (In use)
  RunningIncompatibleAddons: False
  SegvAnalysis:
   Segfault happened at: 0x7f36ea452871 <__memmove_avx_unaligned_erms+33>:      
vmovdqu %ymm0,(%rdi)
   PC (0x7f36ea452871) ok
   source "%ymm0" ok
   destination "(%rdi)" (0x00000000) not located in a known VMA region (needed 
writable region)!
  SegvReason: writing NULL VMA
  Signal: 11
  SourcePackage: firefox
  StacktraceTop:
   __memmove_avx_unaligned_erms () at 
../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:240
   ?? () from /lib/x86_64-linux-gnu/libpng16.so.16
   ?? () from /lib/x86_64-linux-gnu/libpng16.so.16
   ?? () from /lib/x86_64-linux-gnu/libpng16.so.16
   ?? () from /lib/x86_64-linux-gnu/libpng16.so.16
  SubmittedCrashIDs:
   bp-b6952db2-9983-4f67-b51c-f03a60190727
   bp-7b9123e3-e901-4bcd-8815-f36980190720
  Title: crashreporter crashed with SIGSEGV in __memmove_avx_unaligned_erms()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  dmi.bios.date: 12/20/2018
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 5XCN26WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0J40709 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo Y520-15IKBM
  dmi.modalias: 
dmi:bvnLENOVO:bvr5XCN26WW:bd12/20/2018:svnLENOVO:pn80YY:pvrLenovoY520-15IKBM:rvnLENOVO:rnLNVNB161216:rvrSDK0J40709WIN:cvnLENOVO:ct10:cvrLenovoY520-15IKBM:
  dmi.product.family: Y520-15IKBM
  dmi.product.name: 80YY
  dmi.product.sku: LENOVO_MT_80YY_BU_idea_FM_Y520-15IKBM
  dmi.product.version: Lenovo Y520-15IKBM
  dmi.sys.vendor: LENOVO
  separator:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1838129/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to