|
From: Javier C. <jca...@sb...> - 2005-10-13 01:02:41
|
Hello
The code repository page mentions the 3.0 line is not ready for ppc32
yet but the posting dated June 2005. It's been three months since then,
so what is the status of the ppc support?
I am trying on an amcc 440gp machine running a 2.6.10 kernel but getting
a segmentation fault as shown below:
root@10.70.0.222:/valgrind# valgrind --tool=memcheck /bin/ls -l
==12263== Memcheck, a memory error detector.
==12263== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et
al.
==12263== Segmentation fault
root@10.70.0.222:/valgrind # uname -a
Linux 10.70.0.222 2.6.10_dev-440gp_eval #5 Mon Oct 10 13:41:03 CDT
2005 ppc GNU/
Linux
root@10.70.0.222:/valgrind-2.3.0.CVS-ppc.new/valgrind#
Thanks
|
|
From: Julian S. <js...@ac...> - 2005-10-13 01:20:33
|
> The code repository page mentions the 3.0 line is not ready for ppc32 > yet but the posting dated June 2005. It's been three months since then, > so what is the status of the ppc support? Improving and under active development. The main shortcoming is that Altivec is not really usable yet. There are also performance issues. Both of these are being worked on. Apart from that all the tools work (cachegrind, massif, memcheck) and work well enough to be usable. It gets worked on regularly on a G5 and on a Mac Mini, both running YDL4, and it also works on an old iMac running SuSE 10.0. > I am trying on an amcc 440gp machine running a 2.6.10 kernel but getting > a segmentation fault as shown below: Hmm. Can you send the result of valgrind --tool=none -d -d -v -v /bin/ls -l J |
|
From: Javier C. <jca...@sb...> - 2005-10-14 12:21:56
|
Here it is. Thanks root@10.70.0.222:/valgrind# valgrind --tool=none -d -d -v -v /bin/ls -l --12266:1:debuglog DebugLog system started by Stage 1, level 2 logging requested --12266:1:launcher tool 'none' requested --12266:1:launcher launching /usr/local/lib/valgrind/none --12266:1:debuglog DebugLog system started by Stage 2 (main), level 2 logging re quested --12266:1:main Welcome to Valgrind version 3.1.SVN debug logging --12266:1:main Checking current stack is plausible --12266:1:main Checking initial stack was noted --12266:1:main Starting the address space manager --12266:2:aspacem sp_at_startup = 0x007FFFFD40 (supplied) --12266:2:aspacem minAddr = 0x0004000000 (computed) --12266:2:aspacem maxAddr = 0x007FFFEFFF (computed) --12266:2:aspacem cStart = 0x0004000000 (computed) --12266:2:aspacem vStart = 0x0042000000 (computed) --12266:2:aspacem suggested_clstack_top = 0x007EFFFFFF (computed) --12266:2:aspacem <<< SHOW_SEGMENTS: Initial layout (5 segments, 0 segnames) --12266:2:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed --12266:2:aspacem 1: 0004000000-0041FFFFFF 992m --12266:2:aspacem 2: RSVN 0042000000-0042000FFF 4096 ----- SmFixed --12266:2:aspacem 3: 0042001000-007FFFEFFF 991m --12266:2:aspacem 4: RSVN 007FFFF000-00FFFFFFFF 2048m ----- SmFixed --12266:2:aspacem >>> --12266:2:aspacem Reading /proc/self/maps --12266:2:aspacem <<< SHOW_SEGMENTS: With contents of /proc/self/maps (11 seg ments, 1 segnames) --12266:2:aspacem ( 0) /usr/local/lib/valgrind/none --12266:2:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed --12266:2:aspacem 1: 0004000000-0041FFFFFF 992m --12266:2:aspacem 2: RSVN 0042000000-0042000FFF 4096 ----- SmFixed --12266:2:aspacem 3: 0042001000-006FFFFFFF 735m --12266:2:aspacem 4: FILE 0070000000-0070138FFF 1282048 r-x-- d=0x00A i=125 02998 o=0 (0) --12266:2:aspacem 5: 0070139000-0070148FFF 65536 --12266:2:aspacem 6: FILE 0070149000-0070149FFF 4096 rwx-- d=0x00A i=125 02998 o=1282048 (0) --12266:2:aspacem 7: ANON 007014A000-007079AFFF 6623232 rwx-- --12266:2:aspacem 8: 007079B000-007FFEAFFF 248m --12266:2:aspacem 9: ANON 007FFEB000-007FFFFFFF 86016 rw--- --12266:2:aspacem 10: RSVN 0080000000-00FFFFFFFF 2048m ----- SmFixed --12266:2:aspacem >>> --12266:1:main Address space manager is running --12266:1:main Starting the dynamic memory manager --12266:1:mallocfr newSuperblock at 0x42001000 (pszB 1048560) owner VALGRIND/too l --12266:1:main Dynamic memory manager is running --12266:1:main Getting stage1's name --12266:1:main Split up command line --12266:1:main Preprocess command line opts --12266:1:main Loading client --12266:1:main Setup client env --12266:2:main preload_string: --12266:2:main "/usr/local/lib/valgrind/vgpreload_core.so" --12266:1:main Setup client stack --12266:2:main PPC32 cache line size 32 (type 19) --12266:2:main PPC32 cache line size 32 (type 20) --12266:2:main PPC32 hwcaps: 0x84000000 --12266:2:main PPC32 AltiVec support: 0 --12266:2:main Client info: initial_IP=0x4010984 initial_SP=0x7EFFFD80 brk _base=0x1002A000 --12266:1:main Setup client data (brk) segment --12266:1:main Setup file descriptors --12266:1:main Create fake /proc/<pid>/cmdline --12266:1:main Initialise the tool part 1 (pre_clo_init) --12266:1:main Print help and quit, if requested --12266:1:main Process Valgrind's command line options, setup logging --12266:1:main Print the preamble... ==12266== Nulgrind, a binary JIT-compiler. ==12266== Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote. ==12266== Segmentation fault root@10.70.0.222:/valgrind# -----Original Message----- From: val...@li... [mailto:val...@li...] On Behalf Of Julian Seward Sent: Wednesday, October 12, 2005 8:18 PM To: val...@li... Subject: Re: [Valgrind-users] Valgrind 3.0 repository on ppc32 > The code repository page mentions the 3.0 line is not ready for ppc32 > yet but the posting dated June 2005. It's been three months since then, > so what is the status of the ppc support? Improving and under active development. The main shortcoming is that Altivec is not really usable yet. There are also performance issues. Both of these are being worked on. Apart from that all the tools work (cachegrind, massif, memcheck) and work well enough to be usable. It gets worked on regularly on a G5 and on a Mac Mini, both running YDL4, and it also works on an old iMac running SuSE 10.0. > I am trying on an amcc 440gp machine running a 2.6.10 kernel but getting > a segmentation fault as shown below: Hmm. Can you send the result of valgrind --tool=none -d -d -v -v /bin/ls -l J ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
From: Julian S. <js...@ac...> - 2005-10-14 12:31:34
|
> --12266:1:main Print the preamble... > ==12266== Nulgrind, a binary JIT-compiler. > ==12266== Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas > Nethercote. ==12266== Segmentation fault > root@10.70.0.222:/valgrind# Did you fake up the contents of VEX/priv/main/vex_svnversion.h with a NULL string? If yes, try this. Then maybe you will advance to 'illegal instruction'. J sewardj@imac:~/VgTRUNK/trunk$ cat VEX/priv/main/vex_svnversion.h "1419" sewardj@imac:~/VgTRUNK/trunk$ |
|
From: Javier C. <jca...@sb...> - 2005-10-21 00:57:12
|
Hello Julian,
Sorry for the delay. With your workaround now I get to the "Illegal
instruction" like you expected.
Thanks
Javier
root@10.70.0.222:/valgrind# valgrind --tool=none -d -
d -v -v ls -l
--5194:1:debuglog DebugLog system started by Stage 1, level 2 logging
requested --5194:1:launcher tool 'none' requested --5194:1:launcher
launching /usr/local/lib/valgrind/none --5194:1:debuglog DebugLog system
started by Stage 2 (main), level 2 logging req uested
--5194:1:main Welcome to Valgrind version 3.1.SVN debug logging
--5194:1:main Checking current stack is plausible
--5194:1:main Checking initial stack was noted
--5194:1:main Starting the address space manager
--5194:2:aspacem sp_at_startup = 0x007FFFFD40 (supplied)
--5194:2:aspacem minAddr = 0x0004000000 (computed)
--5194:2:aspacem maxAddr = 0x007FFFEFFF (computed)
--5194:2:aspacem cStart = 0x0004000000 (computed)
--5194:2:aspacem vStart = 0x0042000000 (computed)
--5194:2:aspacem suggested_clstack_top = 0x007EFFFFFF (computed)
--5194:2:aspacem <<< SHOW_SEGMENTS: Initial layout (5 segments, 0
segnames)
--5194:2:aspacem 0: RSVN 0000000000-0003FFFFFF 64m -----
SmFixed
--5194:2:aspacem 1: 0004000000-0041FFFFFF 992m
--5194:2:aspacem 2: RSVN 0042000000-0042000FFF 4096 -----
SmFixed
--5194:2:aspacem 3: 0042001000-007FFFEFFF 991m
--5194:2:aspacem 4: RSVN 007FFFF000-00FFFFFFFF 2048m -----
SmFixed
--5194:2:aspacem >>>
--5194:2:aspacem Reading /proc/self/maps
--5194:2:aspacem <<< SHOW_SEGMENTS: With contents of /proc/self/maps
(11 segm
ents, 1 segnames)
--5194:2:aspacem ( 0) /usr/local/lib/valgrind/none
--5194:2:aspacem 0: RSVN 0000000000-0003FFFFFF 64m -----
SmFixed
--5194:2:aspacem 1: 0004000000-0041FFFFFF 992m
--5194:2:aspacem 2: RSVN 0042000000-0042000FFF 4096 -----
SmFixed
--5194:2:aspacem 3: 0042001000-006FFFFFFF 735m
--5194:2:aspacem 4: FILE 0070000000-0070138FFF 1282048 r-x--
d=0x00A i=1250
2998 o=0 (0)
--5194:2:aspacem 5: 0070139000-0070148FFF 65536
--5194:2:aspacem 6: FILE 0070149000-0070149FFF 4096 rwx--
d=0x00A i=1250
2998 o=1282048 (0)
--5194:2:aspacem 7: ANON 007014A000-007079AFFF 6623232 rwx--
--5194:2:aspacem 8: 007079B000-007FFEAFFF 248m
--5194:2:aspacem 9: ANON 007FFEB000-007FFFFFFF 86016 rw---
--5194:2:aspacem 10: RSVN 0080000000-00FFFFFFFF 2048m -----
SmFixed
--5194:2:aspacem >>>
--5194:1:main Address space manager is running
--5194:1:main Starting the dynamic memory manager
--5194:1:mallocfr newSuperblock at 0x42001000 (pszB 1048560) owner
VALGRIND/tool
--5194:1:main Dynamic memory manager is running
--5194:1:main Getting stage1's name
--5194:1:main Split up command line
--5194:1:main Preprocess command line opts
--5194:1:main Loading client
--5194:1:main Setup client env
--5194:2:main preload_string:
--5194:2:main "/usr/local/lib/valgrind/vgpreload_core.so"
--5194:1:main Setup client stack
--5194:2:main PPC32 cache line size 32 (type 19)
--5194:2:main PPC32 cache line size 32 (type 20)
--5194:2:main PPC32 hwcaps: 0x84000000
--5194:2:main PPC32 AltiVec support: 0
--5194:2:main Client info: initial_IP=0x4010984
initial_SP=0x7EFFFD90 brk_
base=0x1002A000
--5194:1:main Setup client data (brk) segment
--5194:1:main Setup file descriptors
--5194:1:main Create fake /proc/<pid>/cmdline
--5194:1:main Initialise the tool part 1 (pre_clo_init)
--5194:1:main Print help and quit, if requested
--5194:1:main Process Valgrind's command line options, setup logging
--5194:1:main Print the preamble...
==5194== Nulgrind, a binary JIT-compiler.
==5194== Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote.
==5194== Using LibVEX rev 1419, a library for dynamic binary
translation. ==5194== Copyright (C) 2004-2005, and GNU GPL'd, by
OpenWorks LLP. ==5194== Using valgrind-3.1.SVN, a dynamic binary
instrumentation framework. ==5194== Copyright (C) 2000-2005, and GNU
GPL'd, by Julian Seward et al. ==5194==
--5194-- Valgrind library directory: /usr/local/lib/valgrind
--5194-- Command line
--5194-- ls
--5194-- -l
--5194-- Startup, with flags:
--5194-- --tool=none
--5194-- -d
--5194-- -d
--5194-- -v
--5194-- -v
--5194-- Contents of /proc/version:
--5194-- Linux version 2.6.10_dev-440gp_eval (root@jc-1) (gcc version
3.4.3 (M
ontaVista 3.4.3-25.0.30.0501131 2005-07-23)) #6 Thu Oct 13 10:47:21 CDT
2005
--5194:1:main ...finished the preamble
--5194:1:main Initialise the tool part 2 (post_clo_init)
--5194:1:main Initialise TT/TC
--5194-- TT/TC: VG_(init_tt_tc) (startup of code management)
--5194-- TT/TC: cache: 8 sectors of 5915056 bytes each = 47320448 total
--5194-- TT/TC: table: 640168 total entries, max occupancy 422504 (66%)
--5194:2:transtab cache: 8 sectors of 5915056 bytes each = 47320448
total
--5194:2:transtab table: 640168 total entries, max occupancy 422504
(66%)
--5194:1:main Initialise redirects
--5194:1:mallocfr newSuperblock at 0x42101000 (pszB 1048560) owner
VALGRIND/symt ab
--5194:1:main Load initial debug info
--5194-- Reading syms from /lib/ld-2.3.3.so (0x4000000)
--5194-- Reading syms from /bin/ls (0x10000000)
--5194-- Reading debug info from /usr/lib/debug/bin/ls.debug...
--5194-- object doesn't have a symbol table
--5194-- Reading syms from /usr/local/lib/valgrind/none (0x70000000)
--5194-- object doesn't have a dynamic symbol table
--5194:1:mallocfr newSuperblock at 0x42201000 (pszB 1048560) owner
VALGRIND/symt ab --5194:1:mallocfr newSuperblock at 0x42301000 (pszB
1048560) owner VALGRIND/symt ab
--5194:1:redir transfer ownership V -> C of 0x7000F000 .. 0x7000FFFF
--5194:1:main Tell tool about initial permissions
--5194:2:main tell tool about 0004000000-0004017FFF r-x
--5194:2:main tell tool about 0004027000-0004028FFF rwx
--5194:2:main tell tool about 0010000000-0010018FFF r-x
--5194:2:main tell tool about 0010029000-0010029FFF rwx
--5194:2:main tell tool about 001002A000-001002AFFF rwx
--5194:2:main tell tool about 007000F000-007000FFFF r-x
--5194:2:main tell tool about 007EFFF000-007EFFFFFF rwx
--5194:2:main mark stack inaccessible 007EFFF000-007EFFFD8F
--5194:1:main Initialise scheduler
--5194:1:main Initialise thread 1's state
--5194:1:main Initialise signal management
--5194:1:mallocfr newSuperblock at 0x42401000 (pszB 1048560) owner
VALGRIND/core
--5194:1:main
--5194:1:main
--5194:1:aspacem <<< SHOW_SEGMENTS: Memory layout at client startup (26
segment s, 4 segnames) --5194:1:aspacem ( 0)
/usr/local/lib/valgrind/none --5194:1:aspacem ( 1) /bin/ls
--5194:1:aspacem ( 2) /lib/ld-2.3.3.so
--5194:1:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed
--5194:1:aspacem 1: file 0004000000-0004017FFF 98304 r-x-- d=0x00A
i=999699
1 o=0 (2)
--5194:1:aspacem 2: 0004018000-0004026FFF 61440
--5194:1:aspacem 3: file 0004027000-0004028FFF 8192 rwx-- d=0x00A
i=999699
1 o=94208 (2)
--5194:1:aspacem 4: 0004029000-000FFFFFFF 191m
--5194:1:aspacem 5: file 0010000000-0010018FFF 102400 r-x-- d=0x00A
i=999772
3 o=0 (1)
--5194:1:aspacem 6: 0010019000-0010028FFF 65536
--5194:1:aspacem 7: file 0010029000-0010029FFF 4096 rwx-- d=0x00A
i=999772
3 o=102400 (1)
--5194:1:aspacem 8: anon 001002A000-001002AFFF 4096 rwx--
--5194:1:aspacem 9: RSVN 001002B000-0010829FFF 8384512 ----- SmLower
--5194:1:aspacem 10: 001082A000-0041FFFFFF 791m
--5194:1:aspacem 11: RSVN 0042000000-0042000FFF 4096 ----- SmFixed
--5194:1:aspacem 12: ANON 0042001000-0042500FFF 5242880 rwx--
--5194:1:aspacem 13: 0042501000-006FFFFFFF 730m
--5194:1:aspacem 14: FILE 0070000000-007000EFFF 61440 r-x-- d=0x00A
i=125029
98 o=0 (0)
--5194:1:aspacem 15: file 007000F000-007000FFFF 4096 r-x-- d=0x00A
i=125029
98 o=61440 (0)
--5194:1:aspacem 16: FILE 0070010000-0070138FFF 1216512 r-x-- d=0x00A
i=125029
98 o=65536 (0)
--5194:1:aspacem 17: 0070139000-0070148FFF 65536
--5194:1:aspacem 18: FILE 0070149000-0070149FFF 4096 rwx-- d=0x00A
i=125029
98 o=1282048 (0)
--5194:1:aspacem 19: ANON 007014A000-007079AFFF 6623232 rwx--
--5194:1:aspacem 20: 007079B000-007E7FFFFF 224m
--5194:1:aspacem 21: RSVN 007E800000-007EFFEFFF 8384512 ----- SmUpper
--5194:1:aspacem 22: anon 007EFFF000-007EFFFFFF 4096 rwx--
--5194:1:aspacem 23: 007F000000-007FFEAFFF 15m
--5194:1:aspacem 24: ANON 007FFEB000-007FFFFFFF 86016 rw---
--5194:1:aspacem 25: RSVN 0080000000-00FFFFFFFF 2048m ----- SmFixed
--5194:1:aspacem >>>
--5194:1:main
--5194:1:main
--5194:1:main Running thread 1
--5194:1:syswrap- entering VG_(main_thread_wrapper_NORETURN)
--5194:1:aspacem allocated thread stack at 0x42501000 size 81920
--5194:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper)
called --5194:1:core_os ML_(thread_wrapper)(tid=1): entry ==5194==
==5194== Process terminating with default action of signal 4 (SIGILL)
==5194== Illegal opcode at address 0x700512B8
==5194== at 0x4010984: _start (dl-start.S:33)
--5194:1:core_os ML_(thread_wrapper)(tid=1): done
--5194:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) done
--5194:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing
--5194:1:main entering VG_(shutdown_actions_NORETURN)
==5194==
--5194-- tt/tc: 0 tt lookups requiring 0 probes
--5194-- tt/tc: 0 fast-cache updates, 1 flushes
--5194-- translate: new 0 (0 -> 0; ratio 0:10) [0 scs]
--5194-- translate: dumped 0 (0 -> ??)
--5194-- translate: discarded 0 (0 -> ??)
--5194-- scheduler: 0 jumps (bb entries).
--5194-- scheduler: 0/1 major/minor sched events.
--5194-- sanity: 1 cheap, 1 expensive checks.
--5194-- exectx: 30,011 lists, 0 contexts (avg 0 per list)
--5194-- exectx: 0 searches, 0 full compares (0 per 1000)
--5194-- exectx: 0 cmp2, 0 cmp4, 0 cmpAll
--5194--
--5194-- ------ Valgrind's internal memory use stats follow ------
--5194-- core : 1 sbs, 2 bs, 1/1 free bs, 1048576 mmap,
16 loan
--5194-- tool : 1 sbs, 6 bs, 3/3 free bs, 1048576 mmap,
144 loan
--5194-- symtab : 3 sbs, 34 bs, 8/8 free bs, 3145728 mmap,
1501112 loan
--5194-- (null) : 0 sbs, 0 bs, 0/0 free bs, 0 mmap,
0 loan
--5194-- demangle: 0 sbs, 0 bs, 0/0 free bs, 0 mmap,
0 loan
--5194-- exectxt : 0 sbs, 0 bs, 0/0 free bs, 0 mmap,
0 loan
--5194-- errors : 0 sbs, 0 bs, 0/0 free bs, 0 mmap,
0 loan
--5194-- ------
--5194-- core : 1048576 mmap'd, 16/ 16 max/curr
--5194-- tool : 1048576 mmap'd, 12352/ 144 max/curr
--5194-- symtab : 3145728 mmap'd, 2013240/ 1501112 max/curr
--5194-- (null) : 0 mmap'd, 0/ 0 max/curr
--5194-- demangle: 0 mmap'd, 0/ 0 max/curr
--5194-- exectxt : 0 mmap'd, 0/ 0 max/curr
--5194-- errors : 0 mmap'd, 0/ 0 max/curr
--5194--
--5194:1:core_os VG_(terminate_NORETURN)(tid=1)
Illegal instruction
root@10.70.0.222:/valgrind
-----Original Message-----
From: val...@li...
[mailto:val...@li...] On Behalf Of Julian
Seward
Sent: Friday, October 14, 2005 7:28 AM
To: Javier Campos
Cc: val...@li...
Subject: Re: [Valgrind-users] Valgrind 3.0 repository on ppc32
> --12266:1:main Print the preamble...
> ==12266== Nulgrind, a binary JIT-compiler.
> ==12266== Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas
> Nethercote. ==12266== Segmentation fault
> root@10.70.0.222:/valgrind#
Did you fake up the contents of VEX/priv/main/vex_svnversion.h
with a NULL string?
If yes, try this. Then maybe you will advance to 'illegal instruction'.
J
sewardj@imac:~/VgTRUNK/trunk$ cat VEX/priv/main/vex_svnversion.h
"1419"
sewardj@imac:~/VgTRUNK/trunk$
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Valgrind-users mailing list
Val...@li...
https://lists.sourceforge.net/lists/listinfo/valgrind-users
|
|
From: Julian S. <js...@ac...> - 2005-10-26 12:08:04
|
On Friday 21 October 2005 01:56, Javier Campos wrote:
> Hello Julian,
>
> Sorry for the delay. With your workaround now I get to the "Illegal
> instruction" like you expected.
Find these lines in coregrind/m_dispatch/dispatch-ppc32-linux.S
and comment them out; then try again.
J
/* set host FPU control word to the default mode expected
by VEX-generated code. See comments in libvex.h for
more info. */
fsub 3,3,3 /* generate zero */
mtfsf 0xFF,3
|