I'm trying to build valgrind 3.4.x (both the official release and the 
svn repository) on a PPC 7447A running a 2.6 kernel.  The compile goes 
fine, but any attempts at running valgrind itself blow up with a 
segmentaiton fault.  I've attached a verbose debug output of an 
example.  I'd really appreciate it if someone would point out what's 
going wrong.  Thanks.

Matt

=======

r...@dataproc6:~# cat valgrind.debug
--15861:1:debuglog DebugLog system started by Stage 1, level 2 logging 
requested
--15861:1:launcher tool 'none' requested
--15861:1:launcher selected platform 'ppc32-linux'
--15861:1:launcher launching /usr/local/lib/valgrind/ppc32-linux/none
--15861:1:debuglog DebugLog system started by Stage 2 (main), level 2 
logging requested
--15861:1:main     Welcome to Valgrind version 3.5.0.SVN debug logging
--15861:1:main     Checking current stack is plausible
--15861:1:main     Checking initial stack was noted
--15861:1:main     Starting the address space manager
--15861:2:aspacem            sp_at_startup = 0x007fb8ac00 (supplied)
--15861:2:aspacem                  minAddr = 0x0004000000 (computed)
--15861:2:aspacem                  maxAddr = 0x007fb89fff (computed)
--15861:2:aspacem                   cStart = 0x0004000000 (computed)
--15861:2:aspacem                   vStart = 0x0041dc5000 (computed)
--15861:2:aspacem    suggested_clstack_top = 0x007eb8afff (computed)
--15861:2:aspacem    <<< SHOW_SEGMENTS: Initial layout (5 segments, 0 
segnames)
--15861:2:aspacem      0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--15861:2:aspacem      1:      0004000000-0041dc4fff    989m
--15861:2:aspacem      2: RSVN 0041dc5000-0041dc5fff    4096 ----- SmFixed
--15861:2:aspacem      3:      0041dc6000-007fb89fff    989m
--15861:2:aspacem      4: RSVN 007fb8a000-00ffffffff   2052m ----- SmFixed
--15861:2:aspacem    >>>
--15861:2:aspacem    Reading /proc/self/maps
--15861:2:aspacem    <<< SHOW_SEGMENTS: With contents of /proc/self/maps 
(11 segments, 1 segnames)
--15861:2:aspacem    ( 0) /usr/local/lib/valgrind/ppc32-linux/none
--15861:2:aspacem      0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--15861:2:aspacem      1:      0004000000-0037ffffff    832m
--15861:2:aspacem      2: FILE 0038000000-00381a3fff 1720320 r-x-- 
d=0x00c i=4567528 o=0       (0)
--15861:2:aspacem      3:      00381a4000-00381b3fff   65536
--15861:2:aspacem      4: FILE 00381b4000-00381b4fff    4096 rw--- 
d=0x00c i=4567528 o=1720320 (0)
--15861:2:aspacem      5: ANON 00381b5000-003896bfff 8089600 rwx--
--15861:2:aspacem      6:      003896c000-0041dc4fff    148m
--15861:2:aspacem      7: RSVN 0041dc5000-0041dc5fff    4096 ----- SmFixed
--15861:2:aspacem      8:      0041dc6000-007fb75fff    989m
--15861:2:aspacem      9: ANON 007fb76000-007fb8afff   86016 rw---
--15861:2:aspacem     10: RSVN 007fb8b000-00ffffffff   2052m ----- SmFixed
--15861:2:aspacem    >>>
--15861:1:main     Address space manager is running
--15861:1:main     Starting the dynamic memory manager
--15861:1:mallocfr newSuperblock at 0x41DC6000 (pszB 4194288) owner 
VALGRIND/tool
--15861:1:main     Dynamic memory manager is running
--15861:1:main     Initialise m_debuginfo
--15861:1:main     Getting stage1's name
--15861:1:main     Get hardware capabilities ...
--15861:1:main     ... arch = PPC32, hwcaps = ppc32-int-flt-vmx-GX
--15861:1:main     Getting the working directory at startup
--15861:1:main     ... /root
--15861:1:main     Split up command line
--15861:1:main     (early_) Process Valgrind's command line options
--15861:1:main     Create initial image
--15861:1:initimg  Loading client
--15861:1:initimg  Setup client env
--15861:2:initimg    preload_string:
--15861:2:initimg      
"/usr/local/lib/valgrind/ppc32-linux/vgpreload_core.so"
--15861:1:initimg  Setup client stack: size will be 8388608
--15861:2:initimg    PPC32 cache line size 32 (type 19)
--15861:2:initimg    PPC32 cache line size 32 (type 20)
--15861:2:initimg    Client info: initial_IP=0xFFE01A0 initial_TOC=0x0 
brk_base=0x1002A000
--15861:2:initimg    Client info: initial_SP=0x7EB8AC40 
max_stack_size=8388608
--15861:1:initimg  Setup client data (brk) segment
--15861:1:main     Setup file descriptors
--15861:1:main     Create fake /proc/<pid>/cmdline
--15861:1:main     Initialise the tool part 1 (pre_clo_init)
--15861:1:main     Print help and quit, if requested
--15861:1:main     (main_) Process Valgrind's command line options, 
setup logging
--15861:1:main     Print the preamble...
==15861== Nulgrind, a binary JIT-compiler.
==15861== Copyright (C) 2002-2008, and GNU GPL'd, by Nicholas Nethercote.
==15861== Using LibVEX rev 1880, a library for dynamic binary translation.
==15861== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==15861== Using valgrind-3.5.0.SVN, a dynamic binary instrumentation 
framework.
==15861== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==15861==
--15861-- Command line
--15861--    /bin/ls
--15861--    -l
--15861-- Startup, with flags:
--15861--    --tool=none
--15861--    -d
--15861--    -d
--15861--    -v
--15861--    -v
--15861-- Contents of /proc/version:
--15861--   Linux version 2.6.14.7-wr_ea3_oprofile (mcl...@hsspd) (gcc 
version 3.4.4 (Wind River Linux)) #8 KWRITEBACK PREEMPT Wed Dec 10 
11:01:26 EST 2008
--15861-- Arch and hwcaps: PPC32, ppc32-int-flt-vmx-GX
--15861-- Page sizes: currently 4096, max supported 65536
--15861-- Valgrind library directory: /usr/local/lib/valgrind
--15861:1:main     ...finished the preamble
--15861:1:main     Initialise the tool part 2 (post_clo_init)
--15861:1:main     Initialise TT/TC
--15861-- TT/TC: VG_(init_tt_tc) (startup of code management)
--15861-- TT/TC: cache: 8 sectors of 9644544 bytes each = 77156352 total
--15861-- TT/TC: table: 524168 total entries, max occupancy 419328 (80%)
--15861:2:transtab   cache: 8 sectors of 9644544 bytes each = 77156352 
total
--15861:2:transtab   table: 524168 total entries, max occupancy 419328 
(80%)
--15861:1:main     Initialise redirects
--15861:1:mallocfr newSuperblock at 0x42241000 (pszB 1048560) owner 
VALGRIND/dinfo
--15861:1:main     Load initial debug info
--15861-- Reading syms from /usr/local/lib/valgrind/ppc32-linux/none 
(0x38000000)
--15861--    svma 0x0038000094, avma 0x0038000094
--15861--    object doesn't have a dynamic symbol table
--15861:1:mallocfr newSuperblock at 0x42341000 (pszB 1048560) owner 
VALGRIND/dinfo
--15861:1:mallocfr newSuperblock at 0x42441000 (pszB 1048560) owner 
VALGRIND/dinfo
--15861:1:mallocfr newSuperblock at 0x42541000 (pszB 2052080) owner 
VALGRIND/dinfo
--15861:1:redir    transfer ownership V -> C of 0x38011000 .. 0x38011fff
--15861:1:main     Initialise scheduler (phase 1)
--15861:1:sched    sched_init_phase1
--15861:1:main     Tell tool about initial permissions
--15861:2:main       tell tool about 000ffd0000-000ffe6fff r-x
--15861:2:main       tell tool about 000fff6000-000fff7fff rwx
--15861:2:main       tell tool about 0010000000-0010017fff r-x
--15861:2:main       tell tool about 0010028000-0010029fff rwx
--15861:2:main       tell tool about 001002a000-001002afff rwx
--15861:2:main       tell tool about 0038011000-0038011fff r-x
--15861:2:main       tell tool about 007eb8a000-007eb8afff rwx
--15861:2:main       mark stack inaccessible 007eb8a000-007eb8ac3f
--15861:1:main     Initialise scheduler (phase 2)
--15861:1:sched    sched_init_phase2: tid_main=1, cls_end=0x7eb8afff, 
cls_sz=8388608
--15861:1:main     Finalise initial image
--15861:1:main     Initialise signal management
--15861:1:mallocfr newSuperblock at 0x42736000 (pszB 1048560) owner 
VALGRIND/core
--15861:2:stacks     register 0x7EB8A000-0x7EB8AFFF as stack 0
--15861:1:main     --15861:1:main     --15861:1:aspacem  <<< 
SHOW_SEGMENTS: Memory layout at client startup (27 segments, 3 segnames)
--15861:1:aspacem  ( 0) /usr/local/lib/valgrind/ppc32-linux/none
--15861:1:aspacem  ( 1) /bin/ls
--15861:1:aspacem  ( 2) /lib/ld-2.3.6.so
--15861:1:aspacem    0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--15861:1:aspacem    1:      0004000000-000ffcffff    191m
--15861:1:aspacem    2: file 000ffd0000-000ffe6fff   94208 r-x-- d=0x00c 
i=905370  o=0       (2)
--15861:1:aspacem    3:      000ffe7000-000fff5fff   61440
--15861:1:aspacem    4: file 000fff6000-000fff7fff    8192 rwx-- d=0x00c 
i=905370  o=90112   (2)
--15861:1:aspacem    5:      000fff8000-000fffffff   32768
--15861:1:aspacem    6: file 0010000000-0010017fff   98304 r-x-- d=0x00c 
i=904559  o=0       (1)
--15861:1:aspacem    7:      0010018000-0010027fff   65536
--15861:1:aspacem    8: file 0010028000-0010029fff    8192 rwx-- d=0x00c 
i=904559  o=98304   (1)
--15861:1:aspacem    9: anon 001002a000-001002afff    4096 rwx--
--15861:1:aspacem   10: RSVN 001002b000-0010829fff 8384512 ----- SmLower
--15861:1:aspacem   11:      001082a000-0037ffffff    631m
--15861:1:aspacem   12: FILE 0038000000-0038010fff   69632 r-x-- d=0x00c 
i=4567528 o=0       (0)
--15861:1:aspacem   13: file 0038011000-0038011fff    4096 r-x-- d=0x00c 
i=4567528 o=69632   (0)
--15861:1:aspacem   14: FILE 0038012000-00381a3fff 1646592 r-x-- d=0x00c 
i=4567528 o=73728   (0)
--15861:1:aspacem   15:      00381a4000-00381b3fff   65536
--15861:1:aspacem   16: FILE 00381b4000-00381b4fff    4096 rw--- d=0x00c 
i=4567528 o=1720320 (0)
--15861:1:aspacem   17: ANON 00381b5000-003896bfff 8089600 rwx--
--15861:1:aspacem   18:      003896c000-0041dc4fff    148m
--15861:1:aspacem   19: RSVN 0041dc5000-0041dc5fff    4096 ----- SmFixed
--15861:1:aspacem   20: ANON 0041dc6000-0042835fff     10m rwx--
--15861:1:aspacem   21:      0042836000-007e38afff    955m
--15861:1:aspacem   22: RSVN 007e38b000-007eb89fff 8384512 ----- SmUpper
--15861:1:aspacem   23: anon 007eb8a000-007eb8afff    4096 rwx--
--15861:1:aspacem   24:      007eb8b000-007fb75fff     15m
--15861:1:aspacem   25: ANON 007fb76000-007fb8afff   86016 rw---
--15861:1:aspacem   26: RSVN 007fb8b000-00ffffffff   2052m ----- SmFixed
--15861:1:aspacem  >>>
--15861:1:main     --15861:1:main     --15861:1:main     Running thread 1
--15861:1:syswrap- entering VG_(main_thread_wrapper_NORETURN)
--15861:1:aspacem  allocated thread stack at 0x42836000 size 262144
--15861:1:syswrap- run_a_thread_NORETURN(tid=1): pre-thread_wrapper
--15861:1:syswrap- thread_wrapper(tid=1): entry
--15861:1:transtab allocate sector 0
--15861-- TT/TC: initialise sector 0
--15861:1:mallocfr newSuperblock at 0x436A9000 (pszB   65520) owner 
VALGRIND/ttaux
--15861:1:signals  extending a stack base 0x7eb8a000 down by 4096
--15861:2:stacks     change stack 0 from 0x7EB8A000-0x7EB8AFFF to 
0x7EB89000-0x7EB8AFFF
==15861==
==15861== Process terminating with default action of signal 11 (SIGSEGV)
==15861==  Bad permissions for mapped region at address 0x38162EA8
--15861:1:mallocfr newSuperblock at 0x436B9000 (pszB 1048560) owner 
VALGRIND/exectxt
==15861==    at 0xFFD587C: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFD724B: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFD1D37: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFDB51F: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFD1E6B: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFD4023: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFDEF43: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFD2387: (within /lib/ld-2.3.6.so)
==15861==    by 0xFFE01B3: (within /lib/ld-2.3.6.so)
--15861:1:syswrap- thread_wrapper(tid=1): exit
--15861:1:syswrap- run_a_thread_NORETURN(tid=1): post-thread_wrapper
--15861:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing
--15861:1:main     entering VG_(shutdown_actions_NORETURN)
--15861:1:aspacem  <<< SHOW_SEGMENTS: Memory layout at client shutdown 
(32 segments, 3 segnames)
--15861:1:aspacem  ( 0) /usr/local/lib/valgrind/ppc32-linux/none
--15861:1:aspacem  ( 1) /bin/ls
--15861:1:aspacem  ( 2) /lib/ld-2.3.6.so
--15861:1:aspacem    0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--15861:1:aspacem    1: anon 0004000000-0004000fff    4096 rw---
--15861:1:aspacem    2:      0004001000-000ffcffff    191m
--15861:1:aspacem    3: file 000ffd0000-000ffe6fff   94208 r-xT- d=0x00c 
i=905370  o=0       (2)
--15861:1:aspacem    4:      000ffe7000-000fff5fff   61440
--15861:1:aspacem    5: file 000fff6000-000fff7fff    8192 rwxT- d=0x00c 
i=905370  o=90112   (2)
--15861:1:aspacem    6:      000fff8000-000fffffff   32768
--15861:1:aspacem    7: file 0010000000-0010017fff   98304 r-x-- d=0x00c 
i=904559  o=0       (1)
--15861:1:aspacem    8:      0010018000-0010027fff   65536
--15861:1:aspacem    9: file 0010028000-0010029fff    8192 rwx-- d=0x00c 
i=904559  o=98304   (1)
--15861:1:aspacem   10: anon 001002a000-001002afff    4096 rwx--
--15861:1:aspacem   11: RSVN 001002b000-0010829fff 8384512 ----- SmLower
--15861:1:aspacem   12:      001082a000-0037ffffff    631m
--15861:1:aspacem   13: FILE 0038000000-0038010fff   69632 r-x-- d=0x00c 
i=4567528 o=0       (0)
--15861:1:aspacem   14: file 0038011000-0038011fff    4096 r-x-- d=0x00c 
i=4567528 o=69632   (0)
--15861:1:aspacem   15: FILE 0038012000-00381a3fff 1646592 r-x-- d=0x00c 
i=4567528 o=73728   (0)
--15861:1:aspacem   16:      00381a4000-00381b3fff   65536
--15861:1:aspacem   17: FILE 00381b4000-00381b4fff    4096 rw--- d=0x00c 
i=4567528 o=1720320 (0)
--15861:1:aspacem   18: ANON 00381b5000-003896bfff 8089600 rwx--
--15861:1:aspacem   19:      003896c000-0041dc4fff    148m
--15861:1:aspacem   20: RSVN 0041dc5000-0041dc5fff    4096 ----- SmFixed
--15861:1:aspacem   21: ANON 0041dc6000-0042835fff     10m rwx--
--15861:1:aspacem   22: ANON 0042836000-0042845fff   65536 -----
--15861:1:aspacem   23: ANON 0042846000-0042865fff  131072 rwx--
--15861:1:aspacem   24: ANON 0042866000-0042875fff   65536 -----
--15861:1:aspacem   25: ANON 0042876000-00437b8fff     15m rwx--
--15861:1:aspacem   26:      00437b9000-007e38afff    939m
--15861:1:aspacem   27: RSVN 007e38b000-007eb88fff 8380416 ----- SmUpper
--15861:1:aspacem   28: anon 007eb89000-007eb8afff    8192 rwx--
--15861:1:aspacem   29:      007eb8b000-007fb75fff     15m
--15861:1:aspacem   30: ANON 007fb76000-007fb8afff   86016 rw---
--15861:1:aspacem   31: RSVN 007fb8b000-00ffffffff   2052m ----- SmFixed
--15861:1:aspacem  >>>
==15861==
--15861-- translate:            fast SP updates identified: 0 (   --%)
--15861-- translate:   generic_known SP updates identified: 0 (   --%)
--15861-- translate: generic_unknown SP updates identified: 0 (   --%)
--15861--     tt/tc: 676 tt lookups requiring 675 probes
--15861--     tt/tc: 676 fast-cache updates, 2 flushes
--15861--  transtab: new        338 (9,380 -> 55,544; ratio 59:10) [0 scs]
--15861--  transtab: dumped     0 (0 -> ??)
--15861--  transtab: discarded  0 (0 -> ??)
--15861-- scheduler: 1,070 jumps (bb entries).
--15861-- scheduler: 0/344 major/minor sched events.
--15861--    sanity: 1 cheap, 1 expensive checks.
--15861--    exectx: 769 lists, 1 contexts (avg 0 per list)
--15861--    exectx: 1 searches, 0 full compares (0 per 1000)
--15861--    exectx: 0 cmp2, 0 cmp4, 0 cmpAll
--15861--  errormgr: 0 supplist searches, 0 comparisons during search
--15861--  errormgr: 0 errlist searches, 0 comparisons during search
--15861--
--15861-- ------ Valgrind's internal memory use stats follow ------
--15861-- core    :  1 sbs,     2 bs,  1/1  free bs, 1048576 mmap,      
16 loan
--15861-- tool    :  1 sbs,     9 bs,  4/4  free bs, 4194304 mmap,     
240 loan
--15861-- dinfo   :  4 sbs,    17 bs,  5/5  free bs, 5197824 mmap, 
2340288 loan
--15861-- demangle:  0 sbs,     0 bs,  0/0  free bs,       0 mmap,       
0 loan
--15861-- exectxt :  1 sbs,     3 bs,  1/1  free bs, 1048576 mmap,    
3128 loan
--15861-- errors  :  0 sbs,     0 bs,  0/0  free bs,       0 mmap,       
0 loan
--15861-- ttaux   :  1 sbs,    34 bs,  6/6  free bs,   65536 mmap,    
1184 loan
--15861-- ------
--15861-- core    :  1048576 mmap'd,       16/      16 max/curr
--15861-- tool    :  4194304 mmap'd,    12352/     240 max/curr
--15861-- dinfo   :  5197824 mmap'd,  3364432/ 2340288 max/curr
--15861-- (null)  :        0 mmap'd,        0/       0 max/curr
--15861-- demangle:        0 mmap'd,        0/       0 max/curr
--15861-- exectxt :  1048576 mmap'd,     3128/    3128 max/curr
--15861-- errors  :        0 mmap'd,        0/       0 max/curr
--15861-- ttaux   :    65536 mmap'd,     1200/    1184 max/curr
--15861--
--15861:1:core_os  VG_(terminate_NORETURN)(tid=1)

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to