#894686 surf: segmentation fault accessing youtube.com

Package:
surf
Source:
surf
Description:
Simple web browser by suckless community
Submitter:
"Matsievskiy S.V."
Date:
2025-02-27 13:03:02 UTC
Severity:
normal
#894686#5
Date:
2018-04-03 09:00:10 UTC
From:
To:
Dear Maintainer,

Encountered segmentation fault when accessing youtube.com.

   * What led up to the situation?
Accessing youtube.com
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
When GIGACAGE_ENABLED=no was set, surf just crushed.
When it was not set, graphics stopped responding and did not come back up after restarting lightdm and Xorg.
   * What was the outcome of this action?
Kernel logs contained messages:
nouveau 0000:04:00.0: ositorWorkQueue[2259]: failed to idle channel 7 [ositorWorkQueue[2259]]
surf[2042]: segfault at 90 ip 00007fda15cc0988 sp 00007fffa3f2ec50 error 4 in libgdk-3.so.0.2200.29[7fda15c63000+ea000]
   * What outcome did you expect instead?
No segfaults

#894686#10
Date:
2018-06-22 11:21:17 UTC
From:
To:
It appears that problem is not limited to youtube.com and applies to all
video files and gifs.

#894686#15
Date:
2018-06-30 12:55:33 UTC
From:
To:
Hi Matsievskiy,

I'm not able to reproduce a segmentation fault.
Can you please provide some help with debugging this issue?
A backtrace would be really helpful. How to obtain one is explained
here:  https://wiki.debian.org/HowToGetABacktrace

You basically install the surf-dbgsym package (after enabling the -debug
repository), then run surf in gdb:  $ gdb surf
After it crashes again, type "bt full" in the gdb prompt.

Thanks!

Kind regards,
   Reiner

#894686#20
Date:
2018-06-30 20:13:24 UTC
From:
To:
I cannot reproduce segfault on current version 2.0+git20180223-1.
However it still crashes the Xserver. Problem seems to be specific to
nouveau drivers. Browser works fine with nvidia drivers.

#894686#25
Date:
2025-02-27 13:02:06 UTC
From:
To:
Hi,

Some more facts on surf segfaulting:

 root@nusku:~# apt -V install surf
 [...]
 Les NOUVEAUX paquets suivants seront installés :
   surf (2.1+git20221016-4)
 0 mis à jour, 1 nouvellement installés, 0 à enlever et 1 non mis à jour.


 joostvb@nusku:~% surf

 ** (surf:1878339): WARNING **: 13:55:41.783: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

 ** (surf:1878339): WARNING **: 13:55:41.783: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied
 Could not create default EGL display: EGL_BAD_PARAMETER. Aborting...
 web process terminated: crashed
 zsh: segmentation fault  surf
 joostvb@nusku:~%

 joostvb@nusku:~% ls -l /sys/class/dmi/id/chassis_type /sys/firmware/acpi/pm_profile
 -r--r--r-- 1 root root 4096 Feb 25 10:11 /sys/class/dmi/id/chassis_type
 -r--r--r-- 1 root root 4096 Feb 27 13:51 /sys/firmware/acpi/pm_profile


This is with surf 2.1+git20221016-4 on Debian 12 (bookworm).

(I am running x2x on another machine, so that this hosts keyboard/mouse control
a display connected to the other machine.)

Unfortunately I don't have the time now to do proper debugging / stack stracing.

Hope this is of some help anyway...

Bye,

Joost