|
From: Prashant V. <pra...@ya...> - 2003-06-09 08:04:10
|
Hi, I was trying to run valgrind with wine. As an example app I used Acrobat Reader.exe The following command gives a stack overflow problem: valgrind --trace-children=yes --skin=cachegrind wine ./Acrobat.exe The error I get is: ==21778== Error: STACK OVERFLOW: thread 2: stack used 33628844, available 33554416 ==21778== Terminating Valgrind. If thread(s) really need more stack, increase ==21778== VG_PTHREAD_STACK_SIZE in vg_include.h and recompile. I have increased the stack size as the above error message shows, from the original (1<<20). If I run wine without valgrind, there is no problem, i.e. the following: wine ./Acrobat.exe runs fine. Any suggestions on what could be going wrong and how to fix it? -Prashant __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
|
From: Nicholas N. <nj...@ca...> - 2003-06-09 08:24:02
|
On Mon, 9 Jun 2003, Prashant Verma wrote: > Hi, > I was trying to run valgrind with wine. As an example > app I used Acrobat Reader.exe The following command > gives a stack overflow problem: > valgrind --trace-children=yes --skin=cachegrind wine > ./Acrobat.exe > The error I get is: > ==21778== Error: STACK OVERFLOW: thread 2: stack used 33628844, available 33554416 > ==21778== Terminating Valgrind. If thread(s) really need more stack, increase > ==21778== VG_PTHREAD_STACK_SIZE in vg_include.h and recompile. > > I have increased the stack size as the above error > message shows, from the original (1<<20). Looks like you've increased it to (1<<25), but that still wasn't big enough... have you tried (1<<26) or (1<<27)? Either way, that seems like a very big stack. Do you have the same problems with other apps? Do you have the same problems with other skins, or only Cachegrind? N |
|
From: Prashant V. <pra...@ya...> - 2003-06-09 09:55:14
|
I just reran valgrind 1.9.6-wine with the following command line (without cachegrind): valgrind --trace-children=yes wine ./Acrobat.exe And this time it stopped with : disInstr: unhandled opcode 0x94 then 0x8B valgrind: the `impossible' happened: unhandled x86 opcode Basic block ctr is approximately 91650000 This is followed by some lines of sched status. For the stack size previously running cachegrind, I've tried 32<<20 (thats 1<<25).I'll try with 1<<27, but I wonder if this could point to a bug. -Prashant --- Nicholas Nethercote <nj...@ca...> wrote: > On Mon, 9 Jun 2003, Prashant Verma wrote: > > > Hi, > > I was trying to run valgrind with wine. As an > example > > app I used Acrobat Reader.exe The following > command > > gives a stack overflow problem: > > valgrind --trace-children=yes --skin=cachegrind > wine > > ./Acrobat.exe > > The error I get is: > > ==21778== Error: STACK OVERFLOW: thread 2: stack > used 33628844, available 33554416 > > ==21778== Terminating Valgrind. If thread(s) > really need more stack, increase > > ==21778== VG_PTHREAD_STACK_SIZE in vg_include.h > and recompile. > > > > I have increased the stack size as the above error > > message shows, from the original (1<<20). > > Looks like you've increased it to (1<<25), but that > still wasn't big > enough... have you tried (1<<26) or (1<<27)? > > Either way, that seems like a very big stack. Do > you have the same > problems with other apps? Do you have the same > problems with other skins, > or only Cachegrind? > > N > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
|
From: John R.
|
Prashant Verma wrote: > I just reran valgrind 1.9.6-wine with the following > command line (without cachegrind): > valgrind --trace-children=yes wine ./Acrobat.exe > And this time it stopped with : > disInstr: unhandled opcode 0x94 then 0x8B 0x94 is "xchg %eax,%esp", which is switching stacks: some form of threads that is specific to the application. |
|
From: Julian S. <js...@ac...> - 2003-06-11 22:05:13
|
On Tuesday 10 June 2003 14:39, John Reiser wrote: > Prashant Verma wrote: > > I just reran valgrind 1.9.6-wine with the following > > command line (without cachegrind): > > valgrind --trace-children=yes wine ./Acrobat.exe > > And this time it stopped with : > > disInstr: unhandled opcode 0x94 then 0x8B > > 0x94 is "xchg %eax,%esp", which is switching stacks: some form of threads > that is specific to the application. In which case, the fix is ultra-trivial. Find the following line in vg_to_ucode.c: case 0x91: /* XCHG eAX,eCX */ and do the obvious thing. If you verify this works, please let us know (and send the resulting patch). J |
|
From: Prashant V. <pra...@ya...> - 2003-06-12 15:40:18
|
Julian, --- Julian Seward <js...@ac...> wrote: > On Tuesday 10 June 2003 14:39, John Reiser wrote: > > Prashant Verma wrote: ... > > > disInstr: unhandled opcode 0x94 then 0x8B > > > > 0x94 is "xchg %eax,%esp", which is switching > stacks: some form of threads > > that is specific to the application. > > In which case, the fix is ultra-trivial. Find the > following line > in vg_to_ucode.c: > > case 0x91: /* XCHG eAX,eCX */ > I added 0x94 case to the switch statement, and valgrind no longer displays the error message. There are other problems however, but certainly not related to this issue. The fix seems to work fine. -Prashant __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
|
From: Jeremy F. <je...@go...> - 2003-06-09 16:42:40
|
On Mon, 2003-06-09 at 01:04, Prashant Verma wrote: > I was trying to run valgrind with wine. As an example > app I used Acrobat Reader.exe The following command > gives a stack overflow problem: Does the same thing happen with the Linux native version of acroread? I would guess that the core code is the same for the two versions, and it might indicate whether acroread really needs a huge stack, or its some artifact of the wine+acroread combination. J |
|
From: Prashant V. <pra...@ya...> - 2003-06-10 07:29:54
|
--- Jeremy Fitzhardinge <je...@go...> wrote: > On Mon, 2003-06-09 at 01:04, Prashant Verma wrote: > > I was trying to run valgrind with wine. As an > example > > app I used Acrobat Reader.exe The following > command > > gives a stack overflow problem: > > Does the same thing happen with the Linux native > version of acroread? I > would guess that the core code is the same for the > two versions, and it > might indicate whether acroread really needs a huge > stack, or its some > artifact of the wine+acroread combination. It doesn't happen with the native version of acroread, so I think it indicates the latter point that you state i.e. some problem with wine + acroread(windows)+cachegrind combination. Note that wine + acroread(windows) runs fine. Prashant __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |