Re: procfs crashing on shudown/reboot

2021-04-17 Thread João Pedro Malhado
On Fri, Apr 16, 2021 at 01:50:49PM +0200, Samuel Thibault wrote:
> That will build a procfs.static that you can settrans -a by hand.

Had to use settrans -fga to displace the original running translator.
Below is the backtrace of the core file.

Regards,
João

GNU gdb (Debian 10.1-2) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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 "i686-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from procfs.static...

warning: core file may not match specified executable file.
[New process 689]
[New process 1]
[New process 2]
[New process 3]

warning: Unexpected size of section `.reg2/689' in core file.
Core was generated by `/root/procfs.static --compatible'.
Program terminated with signal SIGABRT, Aborted.

warning: Unexpected size of section `.reg2/689' in core file.
#0  0x080b91ec in mach_msg_trap ()
[Current thread is 1 (process 689)]

Thread 4 (process 3):
warning: Unexpected size of section `.reg2/3' in core file.
#0  0x080b91ec in mach_msg_trap ()
No symbol table info available.
#1  0x08071046 in mach_msg ()
No symbol table info available.
#2  0x08071399 in mach_msg_server_timeout ()
No symbol table info available.
#3  0x08068592 in thread_function (arg=0x0) at 
../../libports/manage-multithread.c:259
thread = {color = 1}
master = 
timeout = 12
err = 
startover = 
#4  0x0806c69f in entry_point (self=, start_routine=, arg=) at pt-create.c:62
No locals.
#5  0x in ?? ()
No symbol table info available.

Thread 3 (process 2):
warning: Unexpected size of section `.reg2/2' in core file.
#0  0x080b91ec in mach_msg_trap ()
No symbol table info available.
#1  0x08071046 in mach_msg ()
No symbol table info available.
#2  0x08118a2c in msg_sig_post ()
No symbol table info available.
#3  0x080d495c in kill_pid ()
No symbol table info available.
#4  0x080d4c86 in kill ()
No symbol table info available.
#5  0x080d3fda in raise ()
No symbol table info available.
#6  0x080482c8 in abort ()
No symbol table info available.
#7  0x08048170 in __assert_fail_base_backtrace (fmt=0x81301a0 "%s: %s:%u: %s: 
Assertion '%s' failed.\n", assertion=0x812f290 "! (r.hard == 1 && r.weak == 0) 
|| !\"refcount detected use-after-free!\"", file=0x812f22c 
"../../libshouldbeinlibc/refcount.h", line=170, function=0x812f3a8 
<__PRETTY_FUNCTION__.3> "refcounts_ref") at 
../../libshouldbeinlibc/assert-backtrace.c:57
size = 128
skip = 2
nptrs = 16
buffer = 0x2811990
#8  0x0806c53d in __assert_fail_backtrace (assertion=0x812f290 "! (r.hard == 1 
&& r.weak == 0) || !\"refcount detected use-after-free!\"", file=0x812f22c 
"../../libshouldbeinlibc/refcount.h", line=170, function=0x812f3a8 
<__PRETTY_FUNCTION__.3> "refcounts_ref") at 
../../libshouldbeinlibc/assert-backtrace.c:64
No locals.
#9  0x0804e69e in refcounts_ref (result=0x0, ref=0x10002c70) at 
../../libshouldbeinlibc/refcount.h:170
r = {hard = , weak = }
r = {hard = , weak = }
__PRETTY_FUNCTION__ = "refcounts_ref"
#10 netfs_nref (np=0x10002bc0) at ../../libnetfs/nref.c:26
No locals.
#11 0x0804b514 in rootdir_make_translated_node (dir_hook=0x100016d0, 
entry_hook=0x8190180 <__compound_literal.8>) at ../../procfs/rootdir.c:674
ops = 0x8190180 <__compound_literal.8>
np = 0x10002bc0
prev = 
#12 0x08049803 in procfs_dir_lookup (hook=0x10001950, name=0x2811efc "mounts", 
np=0x2811d98) at ../../procfs/procfs_dir.c:88
dir = 0x10001950
ent = 0x812eb40 
#13 0x08048f30 in procfs_lookup (np=0x10001980, name=0x2811efc "mounts", 
npp=0x2811d98) at ../../procfs/procfs.c:185
err = 
#14 0x0804b605 in dircat_lookup (hook=0x10001a90, name=0x2811efc "mounts", 
np=0x2811d98) at ../../procfs/dircat.c:76
dcn = 0x10001a90
err = 
i = 1
#15 0x08048f30 in procfs_lookup (np=0x10001ac0, name=0x2811efc "mounts", 
npp=0x2811d98) at ../../procfs/procfs.c:185
err = 
#16 0x0804948f in netfs_attempt_lookup (user=0x102170, dir=0x10001ac0, 
name=0x2811efc "mounts", np=0x2811d98) at ../../procfs/netfs.c:212
err = 
#17 0x0805906a in netfs_S_dir_lookup (dircred=, 
filename=0x2811efc "mounts", flags=, mode=, 
do_retry=, retry_name=, retry_port=, retry_port_type=) at ../../libnetfs/dir-lookup.c:175
create = 
excl = 
mustbedir = 
lastcomp = 
newnode = 
nsymlinks = 
dnp = 0x10001ac0

Re: procfs crashing on shudown/reboot

2021-04-17 Thread Diego Corrales
Hello my friend how are you? I want to help, but I don't have much
knowledge of programming and English, I want to help and to be helped to
learn. I am studying algorithmic programming, and English in openenglish. I
want to help make GNU / Hurd the best operating system in the world.

El vie., 16 abr. 2021 08:51, Samuel Thibault 
escribió:

> João Pedro Malhado, le ven. 16 avril 2021 12:42:36 +0200, a ecrit:
> > How I need to compile a statically linked version to provide a backtrace?
>
> You can build the hurd package with dpkg-buildpackage, and once built,
>
> cd build-deb/procfs
> make procfs.static
>
> That will build a procfs.static that you can settrans -a by hand.
>
> Samuel
>
>


Re: procfs crashing on shudown/reboot

2021-04-17 Thread Diego Corrales
Hello my friend how are you?  I want to help, but I don't have much
knowledge of programming and English, I want to help and to be helped to
learn.  I am studying algorithmic programming, and English in openenglish.
I want to help make GNU / Hurd the best operating system in the world.

El vie., 16 abr. 2021 08:51, Samuel Thibault 
escribió:

> João Pedro Malhado, le ven. 16 avril 2021 12:42:36 +0200, a ecrit:
> > How I need to compile a statically linked version to provide a backtrace?
>
> You can build the hurd package with dpkg-buildpackage, and once built,
>
> cd build-deb/procfs
> make procfs.static
>
> That will build a procfs.static that you can settrans -a by hand.
>
> Samuel
>
>