aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/psm-disable-memory-stats.patch
blob: 52cd88a4e1f644ec16fba5da1a76b10bfa604532 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
The memory statistics code leads to segfaults during initialization (on
machines with InfiniPath networking):

  (gdb) bt full
  #0  ips_ptl_init (ep=0x1fc6af8, ptl=0x1fc6f88, ctl=0x1fc6d78) at ptl.c:224
	  err = PSM_OK
	  num_of_send_bufs = 1024
	  num_of_send_desc = 4096
	  imm_size = 128
	  context = 0x1fc6b70
	  user_info = 0x1fc6b90
	  enable_shcontexts = 0
	  current_count = <optimized out>
  #1  0x00007fb2aa672abf in __psm_ep_open_internal (
      unique_job_key=unique_job_key@entry=0x7ffed1ee5800 "<\207\020#5\271\267\200\354x\242e8\364zo", 
      devid_enabled=devid_enabled@entry=0x7ffed1ee5724, opts_i=opts_i@entry=0x7ffed1ee5810, mq=<optimized out>, 
      epo=epo@entry=0x7ffed1ee5710, epido=epido@entry=0x7ffed1ee5708) at psm_ep.c:929
	  ep = 0x1fc6af8
	  num_units = 1
	  len = <optimized out>
	  err = <optimized out>
	  epaddr = 0x1e9dd78
	  buf = "miriel044:2.0.", '\000' <repeats 113 times>
	  p = <optimized out>
	  e = <optimized out>
	  old_cpuaff = 0x0
	  old_unit = 0x0
	  yield_cnt = {e_void = 0xfa, e_str = 0xfa <error: Cannot access memory at address 0xfa>, e_int = 250, 
	    e_uint = 250, e_long = 250, e_ulong = 250, e_ulonglong = 250}
	  no_cpuaff = {e_void = 0x0, e_str = 0x0, e_int = 0, e_uint = 0, e_long = 0, e_ulong = 0, e_ulonglong = 0}
	  env_unit_id = {e_void = 0xffffffffffffffff, 
	    e_str = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff>, e_int = -1, 
	    e_uint = 4294967295, e_long = -1, e_ulong = 18446744073709551615, e_ulonglong = 18446744073709551615}
	  env_port_id = {e_void = 0x0, e_str = 0x0, e_int = 0, e_uint = 0, e_long = 0, e_ulong = 0, e_ulonglong = 0}
	  env_sl = {e_void = 0x0, e_str = 0x0, e_int = 0, e_uint = 0, e_long = 0, e_ulong = 0, e_ulonglong = 0}
	  ptl_sizes = <optimized out>
	  default_cpuaff = <optimized out>
	  opts = {timeout = 180000000000, unit = -1, affinity = 0, shm_mbytes = 10, sendbufs_num = 1024, 
	    network_pkey = 65535, port = 0, outsl = 0, service_id = 1152940698815692800, 
	    path_res_type = PSM_PATH_RES_NONE, senddesc_num = 4096, imm_size = 128}
	  amsh_ptl = 0x1fc6e48
	  ips_ptl = 0x1fc6f88
	  self_ptl = 0x1fc99c8
	  i = 3

It looks like ptl.c:24 is writing past the region that was malloc'd.

Turning stats off solves the problem.

diff --git a/psm_utils.c b/psm_utils.c
index c8651fe..5514921 100644
--- a/psm_utils.c
+++ b/psm_utils.c
@@ -1058,7 +1058,7 @@ psmi_log_memstats(psmi_memtype_t type, int64_t nbytes)
     return;
 }
 
-#define psmi_stats_mask PSMI_STATSTYPE_MEMORY
+#define psmi_stats_mask 0
 
 #ifdef malloc
 #undef malloc
s/patches/xf86-video-mach64-bool-to-boolean.patch, gnu/packages/patches/xf86-video-mach64-glibc-2.20.patch: Remove files. * gnu/local.mk (dist_patch_DATA): Remove them. Efraim Flashner 2022-06-12Merge branch 'master' into stagingLudovic Courtès 2022-06-08Merge branch 'master' into stagingLudovic Courtès 2022-06-06gnu: uim: Build reproducibly....* gnu/packages/xorg.scm (uim)[arguments]: Disable parallel build. Vagrant Cascadian 2022-06-10gnu: mkfontscale: Update to 1.2.2....* gnu/packages/xorg.scm (mkfontscale): Update to 1.2.2. Efraim Flashner 2022-06-10gnu: xauth: Update to 1.1.2....* gnu/packages/xorg.scm (xauth): Update to 1.1.2. Efraim Flashner 2022-06-10gnu: xcalc: Update to 1.1.1....* gnu/packages/xorg.scm (xcalc): Update to 1.1.1. Efraim Flashner 2022-06-10gnu: xdpyinfo: Update to 1.3.3....* gnu/packages/xorg.scm (xdpyinfo): Update to 1.3.3. Efraim Flashner 2022-06-10gnu: xf86-input-libinput: Update to 1.2.1....* gnu/packages/xorg.scm (xf86-input-libinput): Update to 1.2.1. Efraim Flashner 2022-06-10gnu: xf86-video-amdgpu: Update to 22.0.0....* gnu/packages/xorg.scm (xf86-video-amdgpu): Update to 22.0.0. Efraim Flashner 2022-06-10gnu: xf86-video-dummy: Update to 0.4.0....* gnu/packages/xorg.scm (xf86-video-dummy): Update to 0.4.0. Efraim Flashner 2022-06-10gnu: xlsfonts: Update to 1.0.7....* gnu/packages/xorg.scm (xlsfonts): Update to 1.0.7. Efraim Flashner 2022-06-10gnu: xorg-sgml-doctools: Update to 1.12....* gnu/packages/xorg.scm (xorg-sgml-doctools): Update to 1.12. Efraim Flashner 2022-06-10gnu: twm: Update to 1.0.12....* gnu/packages/xorg.scm (twm): Update to 1.0.12. Efraim Flashner 2022-06-09Revert "gnu: uim: Build reproducibly."...The fix was ineffective. This reverts commit da115f9f7a7131143fe15f4aa7cdf435c10bfe46. Vagrant Cascadian 2022-06-02gnu: setroot: Depend on imlib2@1.7....* gnu/packages/xorg.scm (setroot)[inputs]: Use IMLIB2-1.7 instead of IMLIB2. Ludovic Courtès 2022-05-26Merge branch 'master' into stagingLudovic Courtès 2022-05-22gnu: editres: Update to 1.0.8....* gnu/packages/xorg.scm (editres): Update to 1.0.8. Tobias Geerinckx-Rice 2022-05-16Merge branch 'master' into stagingEfraim Flashner 2022-05-08gnu: iceauth: Update to 1.0.9....* gnu/packages/xorg.scm (iceauth): Update to 1.0.9. Tobias Geerinckx-Rice 2022-04-28Merge branch 'master' into stagingLudovic Courtès 2022-04-03gnu: xterm: Make big cursors work....* gnu/packages/patches/xterm-370-explicit-xcursor.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/xorg.scm (xterm)[source]: Add it. [arguments]<#:configure-flags>: Add "-lXcursor". Danny Milosavljevic 2022-03-21Merge branch 'master' into staging.Maxim Cournoyer 2022-03-07gnu: libxrender: Fix cross compiling to riscv64-linux....* gnu/packages/xorg.scm (libxrender)[arguments]: When cross compiling to riscv64-linux replace config.sub and config.guess with newer versions. [native-inputs]: When cross compiling to riscv64-linux add config. Efraim Flashner