Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdma apps segfaulting #87

Closed
fwmiller opened this issue Jul 25, 2018 · 3 comments
Closed

rdma apps segfaulting #87

fwmiller opened this issue Jul 25, 2018 · 3 comments

Comments

@fwmiller
Copy link

I've got rdma-core building successfully into the yocto build now and it configures correctly. However, when I run any of several test apps that ping between the Arria10 board and a PC, I'm getting nasty segfault errors. The issue appears to be with registration of memory regions. Here's an example when I'm running the server side of a udaddy ping pong test:

root@arria10:~# udaddy -s 10.0.1.16
udaddy: starting client
[ 1883.526301] rdma_rxe: null vaddr
udaddy: connecting
failed to reg MR
udaddy: failed to create messages: -1
test complete
Segmentation fault

I'm running kernel 4.17 and the most recent (v18) version of rdma-core

Thanks,
FM

@fwmiller
Copy link
Author

An update:

I have a build of rdma-core in kernel 4.17 using yocto for an Altera Arria10 with a dual-core A53 ARM processor. The system is build and rxe configures correctly, i.e. I can rxe_cfg start, rxe_cfg add eth0 and ibv_devices looks good:

root@arria10:~# rxe_cfg status

Name Link Driver Speed NMTU IPv4_addr RDEV RMTU

eth0 yes st_gmac 1500 10.0.1.28 rxe0 1024 (3)

root@arria10:~# ibv_devices

device                 node GUID

------              ----------------

rxe0                085697fffec1059b

root@arria10:~# ibv_devinfo rxe0

hca_id: rxe0

    transport:                      InfiniBand (0)

    fw_ver:                         0.0.0

    node_guid:                      0856:97ff:fec1:059b

    sys_image_guid:                 0000:0000:0000:0000

    vendor_id:                      0x0000

    vendor_part_id:                 0

    hw_ver:                         0x0

    phys_port_cnt:                  1

            port:   1

                    state:                  PORT_ACTIVE (4)

                    max_mtu:                4096 (5)

                    active_mtu:             1024 (3)

                    sm_lid:                 0

                    port_lid:               0

                    port_lmc:               0x00

                    link_layer:             Ethernet

This all looks good. However, when I try to ping this machine against a PC running rdma-core, I'm getting some strange errors including a segfault when the Arria10 acts as server for udaddy.

root@arria10:~# udaddy -s 10.0.1.16

udaddy: starting client

[ 1883.526301] rdma_rxe: null vaddr

udaddy: connecting

failed to reg MR

udaddy: failed to create messages: -1

test complete

Segmentation faultrxe_mem_init_user

I traced the first error, rdma_rxe: null vaddr to rxe_mem_init_user() in /drivers/infiniband/sw/rxe/rxe_mr.c It appears that a page address, perhaps from a virtual to physical translation is failing. Any thoughts on how to solve this?

@kraj
Copy link
Contributor

kraj commented Dec 22, 2018

@fwmiller have you gotten past this error ? if not can you reproduce it on master and see if we can make some progress

@fwmiller
Copy link
Author

Yessir. At this time I was trying to put together pieces from disparate places. Once the code bases were unified this problem went away. Thanks!

@kraj kraj closed this as completed Dec 25, 2018
schnitzeltony added a commit to schnitzeltony/meta-openembedded that referenced this issue May 18, 2021
* add PACKAGECONFIG for gspell - disabled by default

Release notes for 0.5.5
=======================
- New Features:
  - Add a `.desktop` file to make Mousepad appear in Xfce settings
    (!94)
  - Add a command line option to open the prefs dialog (!94)
  - Plugin support (!92)
  - Add gspell plugin (openembedded#1, !92)
  - Disable and wipe recent history if recent-menu-items is set to 0
    (openembedded#112, !89)
  - Support -ve line and column values for "Go to" location
    (openembedded#113, !84)

- Appearance Changes:
  - Switch to client-side decorations (!97)

- Code Refactoring:
  - Remove Xfconf dependency (openembedded#60, openembedded#122, !98)
  - A general review of sanity checks
  - A review of window lifetime management
  - A review of document lifetime management
  - Automate and sanitize memory management of sources
  - A small review of GSettings use
  - Do not use `== (TRUE|FALSE)` for boolean conditions

- Bug Fixes:
  - Fix actions to show/hide bars in fullscreen mode (openembedded#129)
  - Fix broken "Revert" action
  - Fix and extend "Move Lines" action (openembedded#87, openembedded#116, !96)
  - Support for drag and drop of tabs when search is active
  - Do a silent search when changing tabs with the search bar enabled
  - Use get/set_real_line_offset () functions for "Paste as Column"
    (openembedded#114, !91)
  - Restore cursor position after transpose (openembedded#115, !88)
  - Fix "Delete Line" action (openembedded#117, !86)
  - Fix recent_sort function (!90)
  - Reset line and column number if not given on command line
    (openembedded#121, !87)
  - menu: "Spaces to Tabs" converter converts leading spaces
    (openembedded#118, !85)
  - Make window require attention when opening new tabs (2) (openembedded#119)

- Translation Updates

Signed-off-by: Andreas Müller <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue May 18, 2021
* add PACKAGECONFIG for gspell - disabled by default

Release notes for 0.5.5
=======================
- New Features:
  - Add a `.desktop` file to make Mousepad appear in Xfce settings
    (!94)
  - Add a command line option to open the prefs dialog (!94)
  - Plugin support (!92)
  - Add gspell plugin (openembedded#1, !92)
  - Disable and wipe recent history if recent-menu-items is set to 0
    (openembedded#112, !89)
  - Support -ve line and column values for "Go to" location
    (openembedded#113, !84)

- Appearance Changes:
  - Switch to client-side decorations (!97)

- Code Refactoring:
  - Remove Xfconf dependency (openembedded#60, openembedded#122, !98)
  - A general review of sanity checks
  - A review of window lifetime management
  - A review of document lifetime management
  - Automate and sanitize memory management of sources
  - A small review of GSettings use
  - Do not use `== (TRUE|FALSE)` for boolean conditions

- Bug Fixes:
  - Fix actions to show/hide bars in fullscreen mode (openembedded#129)
  - Fix broken "Revert" action
  - Fix and extend "Move Lines" action (openembedded#87, openembedded#116, !96)
  - Support for drag and drop of tabs when search is active
  - Do a silent search when changing tabs with the search bar enabled
  - Use get/set_real_line_offset () functions for "Paste as Column"
    (openembedded#114, !91)
  - Restore cursor position after transpose (openembedded#115, !88)
  - Fix "Delete Line" action (openembedded#117, !86)
  - Fix recent_sort function (!90)
  - Reset line and column number if not given on command line
    (openembedded#121, !87)
  - menu: "Spaces to Tabs" converter converts leading spaces
    (openembedded#118, !85)
  - Make window require attention when opening new tabs (2) (openembedded#119)

- Translation Updates

Signed-off-by: Andreas Müller <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
halstead pushed a commit that referenced this issue May 19, 2021
* add PACKAGECONFIG for gspell - disabled by default

Release notes for 0.5.5
=======================
- New Features:
  - Add a `.desktop` file to make Mousepad appear in Xfce settings
    (!94)
  - Add a command line option to open the prefs dialog (!94)
  - Plugin support (!92)
  - Add gspell plugin (#1, !92)
  - Disable and wipe recent history if recent-menu-items is set to 0
    (#112, !89)
  - Support -ve line and column values for "Go to" location
    (#113, !84)

- Appearance Changes:
  - Switch to client-side decorations (!97)

- Code Refactoring:
  - Remove Xfconf dependency (#60, #122, !98)
  - A general review of sanity checks
  - A review of window lifetime management
  - A review of document lifetime management
  - Automate and sanitize memory management of sources
  - A small review of GSettings use
  - Do not use `== (TRUE|FALSE)` for boolean conditions

- Bug Fixes:
  - Fix actions to show/hide bars in fullscreen mode (#129)
  - Fix broken "Revert" action
  - Fix and extend "Move Lines" action (#87, #116, !96)
  - Support for drag and drop of tabs when search is active
  - Do a silent search when changing tabs with the search bar enabled
  - Use get/set_real_line_offset () functions for "Paste as Column"
    (#114, !91)
  - Restore cursor position after transpose (#115, !88)
  - Fix "Delete Line" action (#117, !86)
  - Fix recent_sort function (!90)
  - Reset line and column number if not given on command line
    (#121, !87)
  - menu: "Spaces to Tabs" converter converts leading spaces
    (#118, !85)
  - Make window require attention when opening new tabs (2) (#119)

- Translation Updates

Signed-off-by: Andreas Müller <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Feb 13, 2023
Changelog:
=========
    Fix potential buffer overflow in ec_glob (openembedded#87)
    Add simple installation steps for Fedora (openembedded#79)
    Update property key, value length limits per spec change (16d1d92)

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Feb 27, 2023
Changelog:
===========
 Better handling of empty strings passed as input.
 Fix the shift safe number issue from 0.9.12
 More minor pylint / etc fixes / cleanups (general code quality)
 separate .parse from openembedded#115
 Allow setting up completely empty {} operators / functions ( openembedded#75 via openembedded#123 )
 Add extra bit-ops from openembedded#87
 Add @daxamin to contributors ?
 Version bump stuff.
 other readme tweaks
 star expressions, eg x = {"a": 1, "b": 2, **c}

no-build.patch
removed since it's included in 0.9.13

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants