Re: -current firefox segfault: pledge "", syscall 289

2024-02-11 Thread Dorian Büttner

I'm not seeing this in firefox, but in kdevelop when creating a new
project (hit the finish button to finally do it). Not hte pledge issue,
but the tmp dir thing

remarkable xterm output running kdevelop &

sysctl() call failed with code 22
sysctl() call failed with code 22
sysctl() call failed with code 0
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects:
"org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"
 "The permission of the setuid helper is not correct"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects:
"org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"
 "The permission of the setuid helper is not correct"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects:
"org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"

[etc, then lots of WARNINGS]

kdevelop:/usr/local/llvm16/lib/../lib/libLLVM-16.so:
/usr/lib/libLLVM.so.8.0 : WARNING:
symbol(_ZTVNSt3__110__function6__funcIN4llvm2cl3optINS2_17PassSummaryActionELb0ENS3_6parserIS5_EEEUlRKS5_E_ENS_9allocatorISB_EEFvSA_EEE)
size mismatch, relink your program
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options



gdb /usr/local/bin/kdevelop kdevelop.core:

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd7.4"...
(no debugging symbols found)

Core was generated by `kdevelop'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libpthread.so.27.1...done.
Loaded symbols for /usr/lib/libpthread.so.27.1


[many things work well]

Reading symbols from /usr/local/lib/libavahi-client.so.0.2...done.
Loaded symbols for /usr/local/lib/libavahi-client.so.0.2
Reading symbols from /usr/libexec/ld.so...Error while reading shared
library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be
2) [in module /usr/libexec/ld.so]

[many things work well again]

Reading symbols from /usr/lib/libcurses.so.15.0...done.
Loaded symbols for /usr/lib/libcurses.so.15.0
#0  thrkill () at /tmp/-:2
2   /tmp/-: No such file or directory.
    in /tmp/-



backtrace:

#0  thrkill () at /tmp/-:2
#1  0x1dd61efc52c4b45b in ?? ()
#2  0x0b710f5d6d72 in _libc_abort () at
/usr/src/lib/libc/stdlib/abort.c:51
#3  0x0b71b79e1744 in llvm::report_fatal_error ()
   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#4  0x0b71b79e157d in llvm::report_fatal_error ()
   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#5  0x0b71b79cc66f in (anonymous
namespace)::CommandLineParser::addOption
    () from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#6  0x0b71b79bf060 in (anonymous
namespace)::CommandLineParser::registerSubCommand () from
/usr/local/llvm16/lib/../lib/libLLVM-16.so
#7  0x0b71b79d08a4 in llvm::object_creator<(anonymous
namespace)::CommandLineParser>::call () from
/usr/local/llvm16/lib/../lib/libLLVM-16.so
#8  0x0b71b7a2628b in llvm::ManagedStaticBase::RegisterManagedStatic ()
   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#9  0x0b71b79c9003 in llvm::cl::OptionCategory::OptionCategory ()
   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#10 0x0b71b79bed6e in llvm::cl::getGeneralCategory ()
   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#11 0x0b71b7b4773c in
_ZN4llvm2cl3optIbLb0ENS0_6parserIbEEEC2IJA13_cNS0_4descENS0_11initializerIbEENS0_12OptionHiddenDpRKT_
()

   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#12 0x0b71b7b501d1 in _GLOBAL__sub_I_DIBuilder.cpp ()
---Type  to continue, or q  to quit---
   from /usr/local/llvm16/lib/../lib/libLLVM-16.so
#13 0x0b7108be0989 in ?? () from /usr/libexec/ld.so
#14 0x0005 in ?? ()
#15 0x592ba000 in ?? ()
#16 0x in ?? ()
Current language:  auto; currently asm


Is that helpful to anyone?





On 1/26/24 4:23 PM, Kirill Miazine wrote:

Most recent package on amd64 snapshot from yesterday:

OpenBSD 7.4-current (GENERIC.MP) #1625: Thu Jan 25 09:16:39 MST 2024

gdb says

[...]
#0  shmget () at /tmp/-:2
2   /tmp/-: No such file or directory.
 in /tmp/-





Re: -current firefox segfault: pledge "", syscall 289

2024-01-29 Thread Stuart Henderson
On 2024-01-26, Kirill Miazine  wrote:
> here's how I can reproduce it here -- just by opening 
> https://domene.shop/login page and waiting some seconds:
>
> $ firefox https://domene.shop/login
> Exiting due to channel error.
> Exiting due to channel error.
> Exiting due to channel error.
> Exiting due to channel error.
> Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: 
> CompositorBridgeChild receives IPC close with reason=AbnormalShutdown 
> (t=5.06002) [GFX1-]: CompositorBridgeChild receives IPC close with 
> reason=AbnormalShutdown
> Exiting due to channel error.
> Abort trap (core dumped)
>
> should mention that this is inside Xvnc, and vnc logs has additional 
> error line:
>
> PCRE2 library was built without JIT support
>
> maybe Xvnc -- or PCRE -- are somehow contributing here

The firefox port uses pledge, which is incompatible with some things done
by the swrast DRI driver (any use of pledge disables the shm syscalls,
and it's unlikely that they will be added).

https://marc.info/?t=15510231321&r=1&w=2

You can either disable pledge in firefox (see the pkg-readme - no need to
recompile anything), or build a patched version of Mesa (the patch
in that thread will no longer work, but removing -DHAVE_SYS_SHM_H in
config.mk may do the trick - and if you go down that route, you'll
need to recompile it yourself after updates).


-- 
Please keep replies on the mailing list.



Re: -current firefox segfault: pledge "", syscall 289

2024-01-26 Thread Jose Maldonado
El Fri, 26 Jan 2024 16:23:22 +0100
Kirill Miazine  escribió:
> Most recent package on amd64 snapshot from yesterday:
> 
> OpenBSD 7.4-current (GENERIC.MP) #1625: Thu Jan 25 09:16:39 MST 2024
> 
> gdb says
> 
> [...]
> #0  shmget () at /tmp/-:2
> 2   /tmp/-: No such file or directory.
> in /tmp/-
> 

If you have active pledge in Firefox and the program try using
shmget() syscall (syscall 289), pledge will exit the program because
this syscall is not implemented in pledge yet.


-- 
*
Dios en su cielo, todo bien en la Tierra



Re: -current firefox segfault: pledge "", syscall 289

2024-01-26 Thread Kirill Miazine
here's how I can reproduce it here -- just by opening 
https://domene.shop/login page and waiting some seconds:


$ firefox https://domene.shop/login
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: 
CompositorBridgeChild receives IPC close with reason=AbnormalShutdown 
(t=5.06002) [GFX1-]: CompositorBridgeChild receives IPC close with 
reason=AbnormalShutdown

Exiting due to channel error.
Abort trap (core dumped)

should mention that this is inside Xvnc, and vnc logs has additional 
error line:


PCRE2 library was built without JIT support

maybe Xvnc -- or PCRE -- are somehow contributing here

• Kirill Miazine [2024-01-26 16:23]:

Most recent package on amd64 snapshot from yesterday:

OpenBSD 7.4-current (GENERIC.MP) #1625: Thu Jan 25 09:16:39 MST 2024

gdb says

[...]
#0  shmget () at /tmp/-:2
2   /tmp/-: No such file or directory.
 in /tmp/-





Re: -current firefox segfault: pledge "", syscall 289

2024-01-26 Thread bilal
> Most recent package on amd64 snapshot from yesterday:
> 
> OpenBSD 7.4-current (GENERIC.MP) #1625: Thu Jan 25 09:16:39 MST 2024
> 
> gdb says

> [...]
> #0 shmget () at /tmp/-:2
> 2 /tmp/-: No such file or directory.
> in /tmp/-

Not sure is that only come from to firefox and pledge
because  i'd another variant of the one you sending when 
compiling zig which I caught a
 
```
thrkill () at /tmp/-:2
2   /tmp/-: No such file or directory.
in /tmp/-
```

also, the only thing that lldb returnsOn 2024-01-26T16:23:22.000+01:00, Kirill 
Miazine  wrote:
>  Most recent package on amd64 snapshot from yesterday:
> 
> OpenBSD 7.4-current (GENERIC.MP) #1625: Thu Jan 25 09:16:39 MST 2024
> 
> gdb says
> 
> [...]
> #0  shmget () at /tmp/-:2
> 2   /tmp/-: No such file or directory.
in /tmp/-



-current firefox segfault: pledge "", syscall 289

2024-01-26 Thread Kirill Miazine
Most recent package on amd64 snapshot from yesterday:

OpenBSD 7.4-current (GENERIC.MP) #1625: Thu Jan 25 09:16:39 MST 2024

gdb says

[...]
#0  shmget () at /tmp/-:2
2   /tmp/-: No such file or directory.
in /tmp/-