> The error message observed is actually what check_mmap() in
> coregrind/m_ume/elf.c reports.
> I suspect that we run into issue with VG_(am_get_advisory)() but I want
> to be
> sure.
> 
> Please could you grab Valgrind source, apply the attached patch to it
> and build it as per https://urldefense.proofpoint.com/v2/url?u=http-
> 3A__valgrind.org_downloads_repository.html&d=DwIBaQ&c=cxWN2QSDopt5SklNfb
> jIjg&r=kFgLKUA0sRpjkz87cv1MIbzoNFQTvL7qNSsQc4Al5Ps&m=vg7yTij7uoBqsisvbrE
> Rr4wliD4LHT21JAvwKSjFdX8&s=8L1bxPA6b3GXxRmVjJZC5dI-
> MCdSzDCqthYxICjT_vw&e=.
> This should create additional debug output which would point at the
> culprit.

I'm not sure it worked (I was already using Valgrind that I built, so I 
patched, ran make and make install):

--92903:1:debuglog DebugLog system started by Stage 1, level 3 logging requested
--92903:1:launcher no tool requested, defaulting to 'memcheck'
--92903:2:launcher   selecting platform for 
'/u/wh/rel/ifaplrel/pw_fwp_engine.eab'
--92903:2:launcher   selecting platform for 
'/u/wh/rel/ifaplrel/pw_fwp_engine.eab'
--92903:2:launcher   opened '/u/wh/rel/ifaplrel/pw_fwp_engine.eab'
--92903:2:launcher   read 4096 bytes from '/u/wh/rel/ifaplrel/pw_fwp_engine.eab'
--92903:2:launcher   selected platform 'amd64-linux'
--92903:1:launcher selected platform 'amd64-linux'
--92903:1:launcher launching 
/home/AltranUK/jsilva.fs/lib/valgrind/memcheck-amd64-linux
--92903:1:debuglog DebugLog system started by Stage 2 (main), level 3 logging 
requested
--92903:1:    main Welcome to Valgrind version 3.13.0 debug logging
--92903:1:    main Checking current stack is plausible
--92903:1:    main Checking initial stack was noted
--92903:1:    main Starting the address space manager
--92903:2: aspacem           sp_at_startup = 0x7ffc6d909130 (supplied)
--92903:2: aspacem                 minAddr = 0x0004000000 (computed)
--92903:2: aspacem                 maxAddr = 0x1fffffffff (computed)
--92903:2: aspacem                  cStart = 0x0004000000 (computed)
--92903:2: aspacem                  vStart = 0x1002000000 (computed)
--92903:2: aspacem   suggested_clstack_end = 0x1fff000fff (computed)
--92903:2: aspacem   <<< SHOW_SEGMENTS: Initial layout (5 segments)
--92903:2: aspacem   0 segment names in 0 slots
--92903:2: aspacem   freelist is empty
--92903:2: aspacem     0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--92903:2: aspacem     1:      0004000000-1001ffffff  65504m
--92903:2: aspacem     2: RSVN 1002000000-1002000fff    4096 ----- SmFixed
--92903:2: aspacem     3:      1002001000-1fffffffff  65503m
--92903:2: aspacem     4: RSVN 2000000000-ffffffffffffffff  16383e ----- SmFixed
--92903:2: aspacem   >>>
--92903:2: aspacem   Reading /proc/self/maps
--92903:2: aspacem   <<< SHOW_SEGMENTS: With contents of /proc/self/maps (16 
segments)
--92903:2: aspacem   1 segment names in 1 slots
--92903:2: aspacem   freelist is empty
--92903:2: aspacem   (0,4,3) 
/home/AltranUK/jsilva.fs/lib/valgrind/memcheck-amd64-linux
--92903:2: aspacem     0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--92903:2: aspacem     1:      0004000000-0057ffffff   1344m
--92903:2: aspacem     2: FILE 0058000000-0058235fff 2318336 r-x-- d=0xfd02 
i=2635334 o=0       (0,4)
--92903:2: aspacem     3:      0058236000-0058434fff 2093056
--92903:2: aspacem     4: FILE 0058435000-0058437fff   12288 rw--- d=0xfd02 
i=2635334 o=2314240 (0,4)
--92903:2: aspacem     5: ANON 0058438000-0059e39fff     26m rw---
--92903:2: aspacem     6:      0059e3a000-1001ffffff  64129m
--92903:2: aspacem     7: RSVN 1002000000-1002000fff    4096 ----- SmFixed
--92903:2: aspacem     8:      1002001000-1fffffffff  65503m
--92903:2: aspacem     9: RSVN 2000000000-7ffc6d8e8fff 130929g ----- SmFixed
--92903:2: aspacem    10: ANON 7ffc6d8e9000-7ffc6d90afff  139264 rw---
--92903:2: aspacem    11: RSVN 7ffc6d90b000-7ffc6d972fff  425984 ----- SmFixed
--92903:2: aspacem    12: ANON 7ffc6d973000-7ffc6d974fff    8192 r-x--
--92903:2: aspacem    13: RSVN 7ffc6d975000-ffffffffff5fffff  16383e ----- 
SmFixed
--92903:2: aspacem    14: ANON ffffffffff600000-ffffffffff600fff    4096 r-x--
--92903:2: aspacem    15: RSVN ffffffffff601000-ffffffffffffffff      9m ----- 
SmFixed
--92903:2: aspacem   >>>
--92903:1:    main Address space manager is running
--92903:1:    main Starting the dynamic memory manager
--92903:1:mallocfr newSuperblock at 0x1002001000 (pszB 4194272)  owner 
VALGRIND/core
--92903:1:mallocfr deferred_reclaimSuperblock at 0x1002001000 (pszB 4194272)  
(prev 0x0) owner VALGRIND/core
--92903:1:    main Dynamic memory manager is running
--92903:1:    main Initialise m_debuginfo
--92903:1:    main VG_(libdir) = /home/AltranUK/jsilva.fs/lib/valgrind
--92903:1:    main Getting launcher's name ...
--92903:1:    main ... /home/AltranUK/jsilva.fs/bin/valgrind
--92903:1:    main Get hardware capabilities ...
--92903:1:   cache warning: Unknown Intel cache config value (0x63), ignoring
--92903:1:   cache Autodetected cache info is sensible
--92903:1:   cache Cache info:
--92903:1:   cache   #levels = 3
--92903:1:   cache   #caches = 4
--92903:1:   cache      cache #0:
--92903:1:   cache         kind = data
--92903:1:   cache         level = 1
--92903:1:   cache         size = 32768 bytes
--92903:1:   cache         linesize = 64 bytes
--92903:1:   cache         assoc = 8
--92903:1:   cache      cache #1:
--92903:1:   cache         kind = insn
--92903:1:   cache         level = 1
--92903:1:   cache         size = 32768 bytes
--92903:1:   cache         linesize = 64 bytes
--92903:1:   cache         assoc = 8
--92903:1:   cache      cache #2:
--92903:1:   cache         kind = unified
--92903:1:   cache         level = 2
--92903:1:   cache         size = 262144 bytes
--92903:1:   cache         linesize = 64 bytes
--92903:1:   cache         assoc = 8
--92903:1:   cache      cache #3:
--92903:1:   cache         kind = unified
--92903:1:   cache         level = 3
--92903:1:   cache         size = 36700160 bytes
--92903:1:   cache         linesize = 64 bytes
--92903:1:   cache         assoc = 20
--92903:1:    main ... arch = AMD64, hwcaps = 
amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--92903:1:    main Getting the working directory at startup
--92903:1:    main ... /home/AltranUK/jsilva.fs/SVN/wip_58
--92903:1:    main Split up command line
--92903:1:    main (early_) Process Valgrind's command line options
--92903:1:    main Create initial image
--92903:1: initimg Loading client
--92903:0:     ume mmap_file_fixed_client #1
--92903:0: aspacem <<< SHOW_SEGMENTS: after #1 (19 segments)
--92903:0: aspacem 2 segment names in 2 slots
--92903:0: aspacem freelist is empty
--92903:0: aspacem (0,4,3) 
/home/AltranUK/jsilva.fs/lib/valgrind/memcheck-amd64-linux
--92903:0: aspacem (1,67,1) /u/wh/rel/ifaplrel/pw_fwp_engine.eab
--92903:0: aspacem   0: RSVN 0000000000-00003fffff 4194304 ----- SmFixed
--92903:0: aspacem   1: file 0000400000-000085efff 4583424 r-x-- d=0xfd00 
i=712737  o=0       (1,67)
--92903:0: aspacem   2: RSVN 000085f000-0003ffffff     55m ----- SmFixed
--92903:0: aspacem   3:      0004000000-0057ffffff   1344m
--92903:0: aspacem   4: FILE 0058000000-0058235fff 2318336 r-x-- d=0xfd02 
i=2635334 o=0       (0,4)
--92903:0: aspacem   5:      0058236000-0058434fff 2093056
--92903:0: aspacem   6: FILE 0058435000-0058437fff   12288 rw--- d=0xfd02 
i=2635334 o=2314240 (0,4)
--92903:0: aspacem   7: ANON 0058438000-0059e39fff     26m rw---
--92903:0: aspacem   8:      0059e3a000-1001ffffff  64129m
--92903:0: aspacem   9: RSVN 1002000000-1002000fff    4096 ----- SmFixed
--92903:0: aspacem  10: ANON 1002001000-1002400fff 4194304 rwx--
--92903:0: aspacem  11:      1002401000-1fffffffff  65499m
--92903:0: aspacem  12: RSVN 2000000000-7ffc6d8e8fff 130929g ----- SmFixed
--92903:0: aspacem  13: ANON 7ffc6d8e9000-7ffc6d90afff  139264 rw---
--92903:0: aspacem  14: RSVN 7ffc6d90b000-7ffc6d972fff  425984 ----- SmFixed
--92903:0: aspacem  15: ANON 7ffc6d973000-7ffc6d974fff    8192 r-x--
--92903:0: aspacem  16: RSVN 7ffc6d975000-ffffffffff5fffff  16383e ----- SmFixed
--92903:0: aspacem  17: ANON ffffffffff600000-ffffffffff600fff    4096 r-x--
--92903:0: aspacem  18: RSVN ffffffffff601000-ffffffffffffffff      9m ----- 
SmFixed
--92903:0: aspacem >>>
--92903:0:     ume mmap_file_fixed_client #1
--92903:0: aspacem <<< SHOW_SEGMENTS: after #1 (21 segments)
--92903:0: aspacem 2 segment names in 2 slots
--92903:0: aspacem freelist is empty
--92903:0: aspacem (0,4,3) 
/home/AltranUK/jsilva.fs/lib/valgrind/memcheck-amd64-linux
--92903:0: aspacem (1,67,3) /u/wh/rel/ifaplrel/pw_fwp_engine.eab
--92903:0: aspacem   0: RSVN 0000000000-00003fffff 4194304 ----- SmFixed
--92903:0: aspacem   1: file 0000400000-000085efff 4583424 r-x-- d=0xfd00 
i=712737  o=0       (1,67)
--92903:0: aspacem   2: RSVN 000085f000-0000a5dfff 2093056 ----- SmFixed
--92903:0: aspacem   3: file 0000a5e000-0000a63fff   24576 rw--- d=0xfd00 
i=712737  o=4579328 (1,67)
--92903:0: aspacem   4: RSVN 0000a64000-0003ffffff     53m ----- SmFixed
--92903:0: aspacem   5:      0004000000-0057ffffff   1344m
--92903:0: aspacem   6: FILE 0058000000-0058235fff 2318336 r-x-- d=0xfd02 
i=2635334 o=0       (0,4)
--92903:0: aspacem   7:      0058236000-0058434fff 2093056
--92903:0: aspacem   8: FILE 0058435000-0058437fff   12288 rw--- d=0xfd02 
i=2635334 o=2314240 (0,4)
--92903:0: aspacem   9: ANON 0058438000-0059e39fff     26m rw---
--92903:0: aspacem  10:      0059e3a000-1001ffffff  64129m
--92903:0: aspacem  11: RSVN 1002000000-1002000fff    4096 ----- SmFixed
--92903:0: aspacem  12: ANON 1002001000-1002400fff 4194304 rwx--
--92903:0: aspacem  13:      1002401000-1fffffffff  65499m
--92903:0: aspacem  14: RSVN 2000000000-7ffc6d8e8fff 130929g ----- SmFixed
--92903:0: aspacem  15: ANON 7ffc6d8e9000-7ffc6d90afff  139264 rw---
--92903:0: aspacem  16: RSVN 7ffc6d90b000-7ffc6d972fff  425984 ----- SmFixed
--92903:0: aspacem  17: ANON 7ffc6d973000-7ffc6d974fff    8192 r-x--
--92903:0: aspacem  18: RSVN 7ffc6d975000-ffffffffff5fffff  16383e ----- SmFixed
--92903:0: aspacem  19: ANON ffffffffff600000-ffffffffff600fff    4096 r-x--
--92903:0: aspacem  20: RSVN ffffffffff601000-ffffffffffffffff      9m ----- 
SmFixed
--92903:0: aspacem >>>
--92903:0:     ume mmap_anon_fixed_client #2
--92903:0: aspacem <<< SHOW_SEGMENTS: after #2 (21 segments)
--92903:0: aspacem 2 segment names in 2 slots
--92903:0: aspacem freelist is empty
--92903:0: aspacem (0,4,3) 
/home/AltranUK/jsilva.fs/lib/valgrind/memcheck-amd64-linux
--92903:0: aspacem (1,67,3) /u/wh/rel/ifaplrel/pw_fwp_engine.eab
--92903:0: aspacem   0: RSVN 0000000000-00003fffff 4194304 ----- SmFixed
--92903:0: aspacem   1: file 0000400000-000085efff 4583424 r-x-- d=0xfd00 
i=712737  o=0       (1,67)
--92903:0: aspacem   2: RSVN 000085f000-0000a5dfff 2093056 ----- SmFixed
--92903:0: aspacem   3: file 0000a5e000-0000a63fff   24576 rw--- d=0xfd00 
i=712737  o=4579328 (1,67)
--92903:0: aspacem   4: RSVN 0000a64000-0003ffffff     53m ----- SmFixed
--92903:0: aspacem   5:      0004000000-0057ffffff   1344m
--92903:0: aspacem   6: FILE 0058000000-0058235fff 2318336 r-x-- d=0xfd02 
i=2635334 o=0       (0,4)
--92903:0: aspacem   7:      0058236000-0058434fff 2093056
--92903:0: aspacem   8: FILE 0058435000-0058437fff   12288 rw--- d=0xfd02 
i=2635334 o=2314240 (0,4)
--92903:0: aspacem   9: ANON 0058438000-0059e39fff     26m rw---
--92903:0: aspacem  10:      0059e3a000-1001ffffff  64129m
--92903:0: aspacem  11: RSVN 1002000000-1002000fff    4096 ----- SmFixed
--92903:0: aspacem  12: ANON 1002001000-1002400fff 4194304 rwx--
--92903:0: aspacem  13:      1002401000-1fffffffff  65499m
--92903:0: aspacem  14: RSVN 2000000000-7ffc6d8e8fff 130929g ----- SmFixed
--92903:0: aspacem  15: ANON 7ffc6d8e9000-7ffc6d90afff  139264 rw---
--92903:0: aspacem  16: RSVN 7ffc6d90b000-7ffc6d972fff  425984 ----- SmFixed
--92903:0: aspacem  17: ANON 7ffc6d973000-7ffc6d974fff    8192 r-x--
--92903:0: aspacem  18: RSVN 7ffc6d975000-ffffffffff5fffff  16383e ----- SmFixed
--92903:0: aspacem  19: ANON ffffffffff600000-ffffffffff600fff    4096 r-x--
--92903:0: aspacem  20: RSVN ffffffffff601000-ffffffffffffffff      9m ----- 
SmFixed
--92903:0: aspacem >>>
valgrind: mmap(0xa64000, 1793339392) failed in UME with error 22 (Invalid 
argument).
valgrind: this can be caused by executables with very large text, data or bss 
segments.

The difference seems to be the SHOW_SEGMENTS?

João M. S. Silva
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to