• netdde translator crashing

    From Samuel Thibault@21:1/5 to All on Mon Apr 12 18:40:01 2021
    João Pedro Malhado, le lun. 12 avril 2021 17:57:52 +0200, a ecrit:
    I have installed the hurd recently, and while installation with the latest iso
    images worked great, the network is not working now with the current sid versions
    of the hurd (1:0.9.git20210404-2) and netdde (0.0.20200330-8).

    When trying to get the device up I'm getting the error:

    /hurd/crash: /hurd/netdde(919) crashed, signal {no:11, code:2, error:2}, exception {1, code:2, subcode:12}, PCs: {0x10a269c, 0x10a269c, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10a269c, 0x1042194}, writing core
    file.

    Also, when you have a core file, do use gdb to print a backtrace from
    it, that gives crazily useful information.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to All on Mon Apr 12 18:30:01 2021
    Hello everyone,

    I have installed the hurd recently, and while installation with the latest iso images worked great, the network is not working now with the current sid versions
    of the hurd (1:0.9.git20210404-2) and netdde (0.0.20200330-8).

    When trying to get the device up I'm getting the error:

    /hurd/crash: /hurd/netdde(919) crashed, signal {no:11, code:2, error:2}, exception {1, code:2, subcode:12}, PCs: {0x10a269c, 0x10a269c, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10a269c, 0x1042194}, writing core file.


    The end of the output of

    # settrans -fga /dev/netdde /hurd/netdde

    is

    l4dde26_register_rx_callback: New rx callback @ 0x1041630
    settrans: /dev/netdde: (os/kern) invalid right

    (if needed I can get more of the output, but with no network it is a bit of a hassle to get it on an email)


    The network card as output by lspci is

    01:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller Mobile (rev 03)


    Is anyone getting similar errors?
    Any ideas on how to fix it?

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Mon Apr 12 19:50:01 2021
    Hello Samuel,

    On Mon, Apr 12, 2021 at 06:29:44PM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le lun. 12 avril 2021 17:57:52 +0200, a ecrit:
    /hurd/crash: /hurd/netdde(919) crashed, signal {no:11, code:2, error:2},
    exception {1, code:2, subcode:12}, PCs: {0x10a269c, 0x10a269c, 0x10c6e14,
    0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10a269c, 0x1042194}, writing
    core
    file.


    The end of the output of

    # settrans -fga /dev/netdde /hurd/netdde

    is

    l4dde26_register_rx_callback: New rx callback @ 0x1041630
    settrans: /dev/netdde: (os/kern) invalid right

    Did you also upgrade libpciaccess0 to version 0.16-1+hurd.7 ?

    Yes, I confirm that is the version of libpciaccess0 that is installed.

    As for the core file, I did see it there are some point, but I unfortunately deleted it. While trying to recreate it, I reproduce the error above but I can see no core file (which makes me wonder if the core file I saw was generated by that event or something else).

    Typing in a full backtrace is a bit of a chore. I'm assuming one cannot yet mount a USB stick?
    I could try booting form a live CD to get that backtrace to you (once there is a
    core file).

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Mon Apr 12 19:50:01 2021
    João Pedro Malhado, le lun. 12 avril 2021 19:25:30 +0200, a ecrit:
    Hello Samuel,

    On Mon, Apr 12, 2021 at 06:29:44PM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le lun. 12 avril 2021 17:57:52 +0200, a ecrit:
    /hurd/crash: /hurd/netdde(919) crashed, signal {no:11, code:2, error:2},
    exception {1, code:2, subcode:12}, PCs: {0x10a269c, 0x10a269c, 0x10c6e14,
    0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10c6e14, 0x10a269c, 0x1042194}, writing
    core
    file.


    The end of the output of

    # settrans -fga /dev/netdde /hurd/netdde

    is

    l4dde26_register_rx_callback: New rx callback @ 0x1041630
    settrans: /dev/netdde: (os/kern) invalid right

    Did you also upgrade libpciaccess0 to version 0.16-1+hurd.7 ?

    Yes, I confirm that is the version of libpciaccess0 that is installed.

    As for the core file, I did see it there are some point, but I unfortunately deleted it. While trying to recreate it, I reproduce the error above but I can
    see no core file (which makes me wonder if the core file I saw was generated by
    that event or something else).

    The core file would be produced in the directory from which you ran
    settrans -a

    Typing in a full backtrace is a bit of a chore.

    Did you type the message above by hand? Do you have no way to mount the
    disk from a linux system?

    I'm assuming one cannot yet mount a USB stick?

    USB is not supported yet, no.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Tue Apr 13 17:40:02 2021
    João Pedro Malhado, le mar. 13 avril 2021 16:04:49 +0100, a ecrit:
    with the core file. Any way to make this useful?

    #0 0x010a269c in ?? ()
    [Current thread is 1 (process 672)]
    #0 0x010a269c in ?? ()

    You also need the debugging symbols for a core file to be of any use.

    I.e. the hurd-dbgsym, hurd-libs0.3-dbgsym, libc0.3-dbgsym, libpciaccess0-dbgsym, libcrypt1-dbgsym packages.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Tue Apr 13 23:00:01 2021
    João Pedro Malhado, le mar. 13 avril 2021 22:13:43 +0200, a ecrit:
    So after installing the debug symbols packages you indicated, I'm getting exactly the same output from gdb as before.

    Ok, so you have

    warning: core file may not match specified executable file.

    ?

    That means it's probably not the proper core file. Make sure that you
    remove the previous core file, then use settrans -a, then see the
    resulting core file.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to All on Tue Apr 13 22:40:01 2021
    Hello Samuel,

    So after installing the debug symbols packages you indicated, I'm getting exactly the same output from gdb as before.

    Running in gdb

    info sharedlibrary

    gives "No shared libraries loaded at this time."

    The output of

    ldd /hurd/netdde

    is

    libmachdevdde.so.0.3 => /lib/i386-gnu/libmachdevdde.so.0.3 (0x08039000) libmachdev.so.0.3 => /lib/i386-gnu/libmachdev.so.0.3 (0x01006000) libpciaccess.so.0 => /usr/lib/i386-gnu/libpciaccess.so.0 (0x01010000) libpthread.so.0.3 => /lib/i386-gnu/libpthread.so.0.3 (0x0101b000) libshouldbeinlibc.so.0.3 => /lib/i386-gnu/libshouldbeinlibc.so.0.3 (0x0102d000) libhurd-slab.so.0.3 => /lib/i386-gnu/libhurd-slab.so.0.3 (0x08040000) libc.so.0.3 => /lib/i386-gnu/libc.so.0.3 (0x0103d000)
    libmachuser.so.1 => /lib/i386-gnu/libmachuser.so.1 (0x01288000)
    libbpf.so.0.3 => /lib/i386-gnu/libbpf.so.0.3 (0x012a1000)
    /lib/ld.so => /lib/ld.so.1 (0x08000000)
    libports.so.0.3 => /lib/i386-gnu/libports.so.0.3 (0x012a7000)
    libtrivfs.so.0.3 => /lib/i386-gnu/libtrivfs.so.0.3 (0x012b3000) libhurduser.so.0.3 => /lib/i386-gnu/libhurduser.so.0.3 (0x012d0000)
    libz.so.1 => /lib/i386-gnu/libz.so.1 (0x01309000)
    libcrypt.so.1 => /usr/lib/i386-gnu/libcrypt.so.1 (0x01325000)
    libihash.so.0.3 => /lib/i386-gnu/libihash.so.0.3 (0x01365000)
    libfshelp.so.0.3 => /lib/i386-gnu/libfshelp.so.0.3 (0x01369000) libiohelp.so.0.3 => /lib/i386-gnu/libiohelp.so.0.3 (0x01373000)

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Tue Apr 13 23:40:01 2021
    On Tue, Apr 13, 2021 at 10:59:20PM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le mar. 13 avril 2021 22:13:43 +0200, a ecrit:
    So after installing the debug symbols packages you indicated, I'm getting exactly the same output from gdb as before.

    Ok, so you have

    warning: core file may not match specified executable file.

    ?

    Yes, but a few lines bellow we also have

    Core was generated by `/hurd/netdde'.


    That means it's probably not the proper core file. Make sure that you
    remove the previous core file, then use settrans -a, then see the
    resulting core file.

    In any case I have regenerated the core file, and still getting the same output only with a different pid.

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Tue Apr 13 23:50:01 2021
    On Tue, Apr 13, 2021 at 10:59:20PM +0200, Samuel Thibault wrote:
    Make sure that you
    remove the previous core file, then use settrans -a, then see the
    resulting core file.

    To avoid confusion, and in case it is relevant, /hurd/netdde crashes not when the settrans -a command is issued, but when bringing up the network card with ifup.

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Wed Apr 14 00:10:02 2021
    João Pedro Malhado, le mar. 13 avril 2021 23:17:29 +0200, a ecrit:
    On Tue, Apr 13, 2021 at 10:59:20PM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le mar. 13 avril 2021 22:13:43 +0200, a ecrit:
    So after installing the debug symbols packages you indicated, I'm getting exactly the same output from gdb as before.

    Ok, so you have

    warning: core file may not match specified executable file.

    ?

    Yes, but a few lines bellow we also have

    Core was generated by `/hurd/netdde'.

    Right.

    What does

    info files

    say?

    That means it's probably not the proper core file. Make sure that you remove the previous core file, then use settrans -a, then see the
    resulting core file.

    In any case I have regenerated the core file, and still getting the same output
    only with a different pid.

    Ok, and I guess it matches the netdde process pid?

    To avoid confusion, and in case it is relevant, /hurd/netdde crashes not when the settrans -a command is issued, but when bringing up the network card with ifup.

    Which configuration do you use? static or dhcp?

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Wed Apr 14 16:00:03 2021
    On Wed, Apr 14, 2021 at 12:01:01AM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le mar. 13 avril 2021 23:17:29 +0200, a ecrit:
    Core was generated by `/hurd/netdde'.

    Right.

    What does

    info files

    say?

    Ok, this is attached.

    In any case I have regenerated the core file, and still getting the same output
    only with a different pid.

    Ok, and I guess it matches the netdde process pid?

    Precisely.

    To avoid confusion, and in case it is relevant, /hurd/netdde crashes not when
    the settrans -a command is issued, but when bringing up the network card with
    ifup.

    Which configuration do you use? static or dhcp?

    The crash happens when dhcp is configured.
    Trying a static configuration there is no crash and I get

    inetutils-ifconfig: SIOCSIFADDR failed: No such device

    The output of

    showtrans /dev/eth0

    is

    /hurd/devnode -M /dev/net eth0

    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 <http://gnu.org/licenses/gpl.html> 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: <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from /hurd/netdde...
    Reading symbols from /usr/lib/debug/.build-id/75/1a5c6946ab4fcb323c6f29189856a02d2f9880.debug...

    warning: core file may not match specified executable file.
    [New process 709]
    [New process 1]
    [New process 2]
    [New process 3]
    [New process 4]
    [New process 5]
    [New process 6]
    [New process 7]

    warning: Unexpected size of section `.reg2/709' in core file.
    Core was generated by `/hurd/netdde'.
    Program terminated with signal SIGSEGV, Segmentation fault.

    warning: Unexpected size of section `.reg2/709' in core file.
    #0 0x010a269c in ?? ()
    [Current thread is 1 (process 709)]
    Symbols from "/hurd/netdde".
    Local core dump file:
    `/root/core', file type elf32-i386.
    0x00001000 - 0x0002f000 is load1
    0x0002f000 - 0x00030000 is load2
    0x00030000 - 0x00031000 is load3
    0x00031000 - 0x00032000 is load4
    0x01033000 - 0x01037000 is load5
    0x01037000 - 0x0103d000 is load6
    0x0103d000 - 0x0103f000 is load7
    0x0103f000 - 0x01044000 is load8
    0x01044000 - 0x01045000 is load9
    0x01045000 - 0x01046000 is load10
    0x01046000 - 0x0104e000 is load11
    0x0104e000 - 0x0104f000 is load12
    0x0104f000 - 0x01050000 is load13
    0x01050000 - 0x01059000 is load14
    0x01059000 - 0x0105a000 is load15
    0x0105a000 - 0x0105b000 is load16
    0x0105b000 - 0x0106b000 is load17
    0x0106b000 - 0x0106c000 is load18
    0x0106c000 - 0x0106d000 is load19
    0x0106d000 - 0x0107b000 is load20
    0x0107b000 - 0x0107c000 is load21
    0x0107c000 - 0x0107d000 is load22
    0x0107d000 - 0x0107f000 is load23
    0x0107f000 - 0x01080000 is load24
    0x01080000 - 0x01081000 is load25
    0x01081000 - 0x012c3000 is load26
    0x012c4000 - 0x012c6000 is load27
    0x012c6000 - 0x012cc000 is load28
    0x012cc000 - 0x012e3000 is load29
    0x012e3000 - 0x012e4000 is load30
    0x012e4000 - 0x012e5000 is load31
    0x012e5000 - 0x012e8000 is load32
    0x012e8000 - 0x012e9000 is load33
    0x012e9000 - 0x012eb000 is load34
    0x012eb000 - 0x012f5000 is load35
    0x012f5000 - 0x012f6000 is load36
    0x012f6000 - 0x012f7000 is load37
    0x012f7000 - 0x01311000 is load38
    0x01312000 - 0x01313000 is load39
    0x01313000 - 0x01316000 is load40
    0x01316000 - 0x0134d000 is load41
    0x0134d000 - 0x0134e000 is load42
    0x0134e000 - 0x0134f000 is load43
    0x0134f000 - 0x01369000 is load44
    0x01369000 - 0x0136a000 is load45
    0x0136a000 - 0x0136b000 is load46
    0x0136b000 - 0x013a1000 is load47
    0x013a1000 - 0x013a2000 is load48
    0x013a2000 - 0x013ab000 is load49
    0x013ab000 - 0x013ad000 is load50
    0x013ad000 - 0x013ae000 is load51
    0x013ae000 - 0x013af000 is load52
    0x013af000 - 0x013b7000 is load53
    0x013b7000 - 0x013b8000 is load54
    0x013b8000 - 0x013b9000 is load55
    0x013b9000 - 0x013bc000 is load56
    0x013bc000 - 0x013bd000 is load57
    0x013bd000 - 0x013cf000 is load58
    0x013cf000 - 0x013d0000 is load59
    0x013d0000 - 0x01421000 is load60
    0x01500000 - 0x01521000 is load61
    0x01600000 - 0x016f6000 is load62
    0x01804000 - 0x02004000 is load63
    0x02005000 - 0x02805000 is load64
    0x02806000 - 0x03006000 is load65
    0x03007000 - 0x03807000 is load66
    0x03808000 - 0x04008000 is load67
    0x04009000 - 0x04809000 is load68
    0x0480a000 - 0x0500a000 is load69
    0x0500b000 - 0x0580b000 is load70
    0x0580c000 - 0x0600c000 is load71
    0x08048000 - 0x0832e000 is load72
    0x0832e000 - 0x08334000 is load73
    0x08334000 - 0x0835c000 is load74
    0x10000000 - 0x10022000 is load75
    While running this, GDB does not access memory from...
    Local exec file:
    `/hurd/netdde', file type elf32-i386.
    Entry point: 0x8055af0
    0x08048174 - 0x0804817f is .interp
    0x08048180 - 0x080481a4 is .note.gnu.build-id
    0x080481a4 - 0x080481c4 is .note.ABI-tag
    0x080481c4 - 0x0804831c is .gnu.hash
    0x0804831c - 0x08048bbc is .dynsym
    0x08048bbc - 0x08049459 is .dynstr
    0x0804945a - 0x0804956e is .gnu.version
    0x08049570 - 0x080495f0 is .gnu.version_r
    0x080495f0 - 0x08055190 is .rel.dyn
    0x08055190 - 0x080554a0 is .rel.plt
    0x080554a0 - 0x080554c0 is .init
    0x080554c0 - 0x08055af0 is .plt
    0x08055af0 - 0x0824aae4 is .text
    0x0824aae4 - 0x0827e2dc is .devinit.text
    0x0827e2dc - 0x0827e49e is .spinlock.text
    0x0827e49e - 0x0827e4de is .exit.text
    0x0827e4de - 0x0827e597 is .devexit.text
    0x0827e5a0 - 0x0827f885 is .sched.text
    0x0827f885 - 0x0827fc5a is .cpuinit.text
    0x0827fc60 - 0x08280cf1 is .ref.text
    0x08280cf4 - 0x08280d08 is .fini
    0x08280d80 - 0x082b77e1 is .rodata
    0x082b7800 - 0x082b82fb is .devinit.rodata
    0x082b8300 - 0x082b837f is .init.rodata
    0x082b8380 - 0x082b83e7 is __tracepoints_strings
    0x082b83e8 - 0x082cca3c is .eh_frame_hdr
    0x082cca3c - 0x0832d700 is .eh_frame
    0x0832e7d0 - 0x0832e7d4 is .tbss
    0x0832e7d0 - 0x0832e7d4 is .init_array
    0x0832e7d4 - 0x0832e7d8 is .fini_array
    0x0832e7d8 - 0x0832e960 is .ctors
    0x0832e960 - 0x08333e94 is .data.rel.ro
    0x08333e94 - 0x08333fcc is .dynamic
    0x08333fcc - 0x08333fe4 is .got
    0x08333ff4 - 0x08334188 is .got.plt
    0x08334200 - 0x08351808 is .data
    0x08351820 - 0x08353a78 is .devinit.data
    0x08353a80 - 0x083540c0 is .init.data
    0x083540c0 - 0x08354160 is __tracepoints
    0x08354180 - 0x0835b454 is .bss

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Thu Apr 15 00:10:02 2021
    João Pedro Malhado, le mer. 14 avril 2021 15:35:05 +0200, a ecrit:
    On Wed, Apr 14, 2021 at 12:01:01AM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le mar. 13 avril 2021 23:17:29 +0200, a ecrit:
    Core was generated by `/hurd/netdde'.

    Right.

    What does

    info files

    say?

    Ok, this is attached.

    Ok, I have no idea why it can't load the shared libraries symbols, since
    that just works for simple use cases.

    Alternatively, you can try to use a static version, that gdb should be
    fine with:

    https://dept-info.labri.fr/~thibault/tmp/netdde.static

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Thu Apr 15 10:20:02 2021
    On Thu, Apr 15, 2021 at 12:08:40AM +0200, Samuel Thibault wrote:
    Ok, I have no idea why it can't load the shared libraries symbols, since
    that just works for simple use cases.

    Alternatively, you can try to use a static version, that gdb should be
    fine with:

    Ok, thanks. Follows the backtrace of the core file dumped by this static version.


    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 <http://gnu.org/licenses/gpl.html> 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: <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

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

    warning: core file may not match specified executable file.
    [New process 684]
    [New process 1]
    [New process 2]
    [New process 3]
    [New process 4]
    [New process 5]
    [New process 6]
    [New process 7]

    warning: Unexpected size of section `.reg2/684' in core file.
    Core was generated by `/root/netdde.static'.
    Program terminated with signal SIGSEGV, Segmentation fault.

    warning: Unexpected size of section `.reg2/684' in core file.
    #0 0x081e285c in mach_msg_trap ()
    [Current thread is 1 (process 684)]
    #0 0x081e285c in mach_msg_trap ()
    #1 0x081a53f6 in mach_msg ()
    #2 0x0824f46e in crash_dump_task ()
    #3 0x081ae528 in post_signal ()
    #4 0x081aeff5 in _hurd_internal_post_signal ()
    #5 0x0825d03c in _S_catch_exception_raise ()
    #6 0x0824b9b6 in _Xexception_raise ()
    #7 0x0824ba41 in _S_exc_server ()
    #8 0x081e3fa4 in msgport_server ()
    #9 0x081a5720 in mach_msg_server_timeout ()
    #10 0x081a5848 in mach_msg_server ()
    #11 0x081e402e in _hurd_msgport_receive ()
    #12 0x0819a96f in entry_point (self=<optimized out>,
    start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    #13 0x00000000 in ?? ()

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Thu Apr 15 10:20:02 2021
    João Pedro Malhado, le jeu. 15 avril 2021 09:56:06 +0200, a ecrit:
    On Thu, Apr 15, 2021 at 12:08:40AM +0200, Samuel Thibault wrote:
    Ok, I have no idea why it can't load the shared libraries symbols, since that just works for simple use cases.

    Alternatively, you can try to use a static version, that gdb should be
    fine with:

    Ok, thanks. Follows the backtrace of the core file dumped by this static version.

    Please use

    thread apply all bt full

    so we have all information available.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to Samuel Thibault on Thu Apr 15 11:10:02 2021
    On Thu, Apr 15, 2021 at 10:15:30AM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le jeu. 15 avril 2021 09:56:06 +0200, a ecrit:
    On Thu, Apr 15, 2021 at 12:08:40AM +0200, Samuel Thibault wrote:
    Alternatively, you can try to use a static version, that gdb should be fine with:

    Ok, thanks. Follows the backtrace of the core file dumped by this static version.

    Please use

    thread apply all bt full

    so we have all information available.

    OK, here it goes.

    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 <http://gnu.org/licenses/gpl.html> 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: <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

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

    warning: core file may not match specified executable file.
    [New process 684]
    [New process 1]
    [New process 2]
    [New process 3]
    [New process 4]
    [New process 5]
    [New process 6]
    [New process 7]

    warning: Unexpected size of section `.reg2/684' in core file.
    Core was generated by `/root/netdde.static'.
    Program terminated with signal SIGSEGV, Segmentation fault.

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

    Thread 8 (process 7):
    warning: Unexpected size of section `.reg2/7' in core file.
    #0 0x08187f26 in ddekit_thread_get_my_data () at ../../libddekit/thread.c:148 No locals.
    #1 0x0816a998 in current_thread_info () at ./libdde-linux26/lib/src/arch/l4/process.c:22
    cur = <optimized out>
    #2 0x0808390c in e100_hw_init (nic=nic@entry=0x704a0) at ./dde/e100.c:1500
    err = <optimized out>
    __func__ = "e100_hw_init"
    #3 0x080850c7 in e100_up (nic=nic@entry=0x704a0) at ./dde/e100.c:2201
    err = 0
    #4 0x080856af in e100_up (nic=0x704a0) at ./dde/e100.c:2695
    err = 0
    err_rx_clean_list = <optimized out>
    err_clean_cbs = <optimized out>
    err_no_irq = <optimized out>
    err = <optimized out>
    err_rx_clean_list = <optimized out>
    err_clean_cbs = <optimized out>
    err_no_irq = <optimized out>
    #5 e100_open (netdev=0x70020) at ./dde/e100.c:2692
    nic = 0x704a0
    err = 0
    __func__ = "e100_open"
    #6 0x0817f2ba in dev_open (dev=0x70020) at ./libdde-linux26/lib/src/net/core/dev.c:1085
    ops = 0x8388760 <e100_netdev_ops>
    ret = <optimized out>
    #7 0x08166a0d in device_open ()
    No symbol table info available.
    #8 0x0816723f in ds_device_open ()
    No symbol table info available.
    #9 0x0816847a in _Xdevice_open ()
    No symbol table info available.
    #10 0x0816765a in demuxer ()
    No symbol table info available.
    #11 0x0819fde3 in internal_demuxer ()
    No symbol table info available.
    #12 0x081a5720 in mach_msg_server_timeout ()
    No symbol table info available.
    #13 0x0819feb5 in ports_manage_port_operations_one_thread ()
    No symbol table info available.
    #14 0x08168205 in machdev_trivfs_loop ()
    No symbol table info available.
    #15 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #16 0x00000000 in ?? ()
    No symbol table info available.

    Thread 7 (process 6):
    warning: Unexpected size of section `.reg2/6' in core file.
    #0 0x081e285c in mach_msg_trap ()
    No symbol table info available.
    #1 0x081a53f6 in mach_msg ()
    No symbol table info available.
    #2 0x081a5709 in mach_msg_server_timeout ()
    No symbol table info available.
    #3 0x0819feb5 in ports_manage_port_operations_one_thread ()
    No symbol table info available.
    #4 0x0816761d in machdev_server ()
    No symbol table info available.
    #5 0x080483b8 in machdev_run1 (arg=0x0) at ./machdev.c:16
    No locals.
    #6 0x08187df3 in _priv_fun (arg=0x1000d4f0) at ../../libddekit/thread.c:101
    priv_arg = 0x1000d4f0
    #7 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #8 0x00000000 in ?? ()
    No symbol table info available.

    Thread 6 (process 5):
    warning: Unexpected size of section `.reg2/5' in core file.
    #0 0x081b0f64 in _hurd_intr_rpc_mach_msg ()
    No symbol table info available.
    #1 0x08256ce2 in gsync_wait_intr ()
    No symbol table info available.
    #2 0x0819d879 in __sem_timedwait_internal (sem=0x102210, clock_id=0, timeout=0x0) at ../sysdeps/htl/sem-timedwait.c:138
    __handlers = 0x1014ac
    __handler = {__handler = 0x819d740 <__sem_wait_cleanup>, __arg = 0x102210, __next = 0x0}
    isem = 0x102210
    err = <optimized out>
    ret = 0
    flags = <optimized out>
    cancel_oldtype = 0
    v = <optimized out>
    #3 0x0819d96c in __sem_wait (sem=0x102210) at ../sysdeps/htl/sem-wait.c:29
    No locals.
    #4 0x081881f6 in _sem_timedwait_internal (timeout=0, sem=0x102210) at ../../libddekit/thread.c:248
    ret = <optimized out>
    ts = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
    #5 ddekit_sem_down (sem=0x102210) at ../../libddekit/thread.c:268
    No locals.
    #6 0x0816b1ba in schedule () at ./libdde-linux26/lib/src/arch/l4/sched.c:30
    t = 0x101cc0
    #7 0x0816edd5 in worker_thread (__cwq=0x11c04) at ./libdde-linux26/lib/src/kernel/workqueue.c:339
    cwq = 0x11c04
    wait = {flags = 0, private = 0x101d40, func = 0x816e970 <autoremove_wake_function>, task_list = {next = 0x11c1c, prev = 0x11c1c}}
    #8 0x0816ce69 in kthread (_create=0x2003d40) at ./libdde-linux26/contrib/kernel/kthread.c:83
    create = 0x2003d40
    threadfn = 0x816ecf0 <worker_thread>
    data = 0x11c04
    ret = -4
    #9 0x0816adba in __kthread_helper (arg=0x101370) at ./libdde-linux26/lib/src/arch/l4/process.c:169
    k = 0x101370
    _fn = 0x816ce20 <kthread>
    _arg = 0x2003d40
    #10 0x08187df3 in _priv_fun (arg=0x101420) at ../../libddekit/thread.c:101
    priv_arg = 0x101420
    #11 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #12 0x00000000 in ?? ()
    No symbol table info available.

    Thread 5 (process 4):
    warning: Unexpected size of section `.reg2/4' in core file.
    #0 0x081b0f64 in _hurd_intr_rpc_mach_msg ()
    No symbol table info available.
    #1 0x08256ce2 in gsync_wait_intr ()
    No symbol table info available.
    #2 0x0819d879 in __sem_timedwait_internal (sem=0x11012d0, clock_id=0, timeout=0x0) at ../sysdeps/htl/sem-timedwait.c:138
    __handlers = 0x100cec
    __handler = {__handler = 0x819d740 <__sem_wait_cleanup>, __arg = 0x11012d0, __next = 0x0}
    isem = 0x11012d0
    err = <optimized out>
    ret = 0
    flags = <optimized out>
    cancel_oldtype = 0
    v = <optimized out>
    #3 0x0819d96c in __sem_wait (sem=0x11012d0) at ../sysdeps/htl/sem-wait.c:29
    No locals.
    #4 0x081881f6 in _sem_timedwait_internal (timeout=0, sem=0x11012d0) at ../../libddekit/thread.c:248
    ret = <optimized out>
    ts = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
    #5 ddekit_sem_down (sem=0x11012d0) at ../../libddekit/thread.c:268
    No locals.
    #6 0x0816b1ba in schedule () at ./libdde-linux26/lib/src/arch/l4/sched.c:30
    t = 0x1100d80
    #7 0x0816edd5 in worker_thread (__cwq=0x11d44) at ./libdde-linux26/lib/src/kernel/workqueue.c:339
    cwq = 0x11d44
    wait = {flags = 0, private = 0x1100e00, func = 0x816e970 <autoremove_wake_function>, task_list = {next = 0x11d5c, prev = 0x11d5c}}
    #8 0x0816ce69 in kthread (_create=0x2003d40) at ./libdde-linux26/contrib/kernel/kthread.c:83
    create = 0x2003d40
    threadfn = 0x816ecf0 <worker_thread>
    data = 0x11d44
    ret = -4
    #9 0x0816adba in __kthread_helper (arg=0x100bb0) at ./libdde-linux26/lib/src/arch/l4/process.c:169
    k = 0x100bb0
    _fn = 0x816ce20 <kthread>
    _arg = 0x2003d40
    #10 0x08187df3 in _priv_fun (arg=0x100c60) at ../../libddekit/thread.c:101
    priv_arg = 0x100c60
    #11 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #12 0x00000000 in ?? ()
    No symbol table info available.

    Thread 4 (process 3):
    warning: Unexpected size of section `.reg2/3' in core file.
    #0 0x081b0f64 in _hurd_intr_rpc_mach_msg ()
    No symbol table info available.
    #1 0x08256ce2 in gsync_wait_intr ()
    No symbol table info available.
    #2 0x0819d879 in __sem_timedwait_internal (sem=0x10004a70, clock_id=0, timeout=0x0) at ../sysdeps/htl/sem-timedwait.c:138
    __handlers = 0x10003cbc
    __handler = {__handler = 0x819d740 <__sem_wait_cleanup>, __arg = 0x10004a70, __next = 0x0}
    isem = 0x10004a70
    err = <optimized out>
    ret = 0
    flags = <optimized out>
    cancel_oldtype = 0
    v = <optimized out>
    #3 0x0819d96c in __sem_wait (sem=0x10004a70) at ../sysdeps/htl/sem-wait.c:29 No locals.
    #4 0x081881f6 in _sem_timedwait_internal (timeout=0, sem=0x10004a70) at ../../libddekit/thread.c:248
    ret = <optimized out>
    ts = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
    #5 ddekit_sem_down (sem=0x10004a70) at ../../libddekit/thread.c:268
    No locals.
    #6 0x081887b1 in __timer_sleep (to=4294967295) at ../../libddekit/timer.c:259
    err = 0
    err = <optimized out>
    #7 ddekit_timer_thread (arg=0x0) at ../../libddekit/timer.c:301
    timer = <optimized out>
    to = 4294967295
    #8 0x08187df3 in _priv_fun (arg=0x10003c30) at ../../libddekit/thread.c:101
    priv_arg = 0x10003c30
    #9 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #10 0x00000000 in ?? ()
    No symbol table info available.

    Thread 3 (process 2):
    warning: Unexpected size of section `.reg2/2' in core file.
    #0 0x081b0f64 in _hurd_intr_rpc_mach_msg ()
    No symbol table info available.
    #1 0x08256ce2 in gsync_wait_intr ()
    No symbol table info available.
    #2 0x0819d879 in __sem_timedwait_internal (sem=0x10003270, clock_id=0, timeout=0x0) at ../sysdeps/htl/sem-timedwait.c:138
    __handlers = 0x100033ac
    __handler = {__handler = 0x819d740 <__sem_wait_cleanup>, __arg = 0x10003270, __next = 0x0}
    isem = 0x10003270
    err = <optimized out>
    ret = 0
    flags = <optimized out>
    cancel_oldtype = 0
    v = <optimized out>
    #3 0x0819d96c in __sem_wait (sem=0x10003270) at ../sysdeps/htl/sem-wait.c:29 No locals.
    #4 0x081881f6 in _sem_timedwait_internal (timeout=0, sem=0x10003270) at ../../libddekit/thread.c:248
    ret = <optimized out>
    ts = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
    #5 ddekit_sem_down (sem=0x10003270) at ../../libddekit/thread.c:268
    No locals.
    #6 0x0816b8b6 in l4dde26_softirq_thread (arg=0x0) at ./libdde-linux26/lib/src/arch/l4/softirq.c:253
    No locals.
    #7 0x08187df3 in _priv_fun (arg=0x10003320) at ../../libddekit/thread.c:101
    priv_arg = 0x10003320
    #8 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #9 0x00000000 in ?? ()
    No symbol table info available.

    Thread 2 (process 1):
    warning: Unexpected size of section `.reg2/1' in core file.
    #0 0x081b0f64 in _hurd_intr_rpc_mach_msg ()
    No symbol table info available.
    #1 0x08256ce2 in gsync_wait_intr ()
    No symbol table info available.
    #2 0x0819d879 in __sem_timedwait_internal (sem=0x100b60, clock_id=0, timeout=0x0) at ../sysdeps/htl/sem-timedwait.c:138
    __handlers = 0x1000267c
    __handler = {__handler = 0x819d740 <__sem_wait_cleanup>, __arg = 0x100b60, __next = 0x0}
    isem = 0x100b60
    err = <optimized out>
    ret = 0
    flags = <optimized out>
    cancel_oldtype = 0
    v = <optimized out>
    #3 0x0819d96c in __sem_wait (sem=0x100b60) at ../sysdeps/htl/sem-wait.c:29
    No locals.
    #4 0x081881f6 in _sem_timedwait_internal (timeout=0, sem=0x100b60) at ../../libddekit/thread.c:248
    ret = <optimized out>
    ts = {tv_sec = <optimized out>, tv_nsec = <optimized out>}
    #5 ddekit_sem_down (sem=0x100b60) at ../../libddekit/thread.c:268
    No locals.
    #6 0x0816b1ba in schedule () at ./libdde-linux26/lib/src/arch/l4/sched.c:30
    t = 0x100610
    #7 0x0816d3bd in kthreadd (unused=0x0) at ./libdde-linux26/contrib/kernel/kthread.c:250
    tsk = <optimized out>
    #8 0x0816adba in __kthread_helper (arg=0x10002510) at ./libdde-linux26/lib/src/arch/l4/process.c:169
    k = 0x10002510
    _fn = 0x816d150 <kthreadd>
    _arg = 0x0
    #9 0x08187df3 in _priv_fun (arg=0x100025f0) at ../../libddekit/thread.c:101
    priv_arg = 0x100025f0
    #10 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #11 0x00000000 in ?? ()
    No symbol table info available.

    Thread 1 (process 684):
    #0 0x081e285c in mach_msg_trap ()
    No symbol table info available.
    #1 0x081a53f6 in mach_msg ()
    No symbol table info available.
    #2 0x0824f46e in crash_dump_task ()
    No symbol table info available.
    #3 0x081ae528 in post_signal ()
    No symbol table info available.
    #4 0x081aeff5 in _hurd_internal_post_signal ()
    No symbol table info available.
    #5 0x0825d03c in _S_catch_exception_raise ()
    No symbol table info available.
    #6 0x0824b9b6 in _Xexception_raise ()
    No symbol table info available.
    #7 0x0824ba41 in _S_exc_server ()
    No symbol table info available.
    #8 0x081e3fa4 in msgport_server ()
    No symbol table info available.
    #9 0x081a5720 in mach_msg_server_timeout ()
    No symbol table info available.
    #10 0x081a5848 in mach_msg_server ()
    No symbol table info available.
    #11 0x081e402e in _hurd_msgport_receive ()
    No symbol table info available.
    #12 0x0819a96f in entry_point (self=<optimized out>, start_routine=<optimized out>, arg=<optimized out>) at pt-create.c:62
    No locals.
    #13 0x00000000 in ?? ()
    No symbol table info available.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Thu Apr 15 21:20:01 2021
    João Pedro Malhado, le jeu. 15 avril 2021 10:44:02 +0200, a ecrit:
    OK, here it goes.

    Thread 8 (process 7):
    warning: Unexpected size of section `.reg2/7' in core file.
    #0 0x08187f26 in ddekit_thread_get_my_data () at ../../libddekit/thread.c:148
    No locals.

    Ok, that's much clearer :)

    So in the end it wasn't a good idea to run machdev_trivfs_server
    in a separate thread, that completely confuses the dde stack about
    thread-local variables. I'll upload a fixed hurd-libs0.3 package version 1:0.9.git20210404-7

    #2 0x0808390c in e100_hw_init (nic=nic@entry=0x704a0) at ./dde/e100.c:1500
    err = <optimized out>
    __func__ = "e100_hw_init"

    that I have now tested with the e100 driver, then.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joooo Pedro Malhado@21:1/5 to Samuel Thibault on Fri Apr 16 12:20:01 2021
    Hello Samuel,

    On Thu, Apr 15, 2021 at 09:12:52PM +0200, Samuel Thibault wrote:
    João Pedro Malhado, le jeu. 15 avril 2021 10:44:02 +0200, a ecrit:
    So in the end it wasn't a good idea to run machdev_trivfs_server
    in a separate thread, that completely confuses the dde stack about thread-local variables. I'll upload a fixed hurd-libs0.3 package version 1:0.9.git20210404-7

    that I have now tested with the e100 driver, then.

    I confirm that this now works!
    Many thanks for your work on this.

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)