rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

sham, tup -> crash #807

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
OS version: Win7   SP1   x86
ConEmu version: 121101

sham (http://sham.sourceforge.net) or tup (http://gittup.org/tup) are make 
utilities. These utilities executes external programs (like cl.exe) and 
monitors started program's openfile(), etc. to collect dependencies. sham 
remember this dependency and not executes a program if not need to execute. 
sham is very cool tool :)

So, both programs crashes under ConEmu _if_ starts an external program. If You 
use these programs in a makefile (I using Borland's) then no crash.

*Steps to reproduction*
1. copy this to a file named "main.cpp":

  int main (int prm_n, char** prm_t)
  {
    return 0;
  }

2. execute "sham cl main.cpp" using ConEmu
3. Now press "Close program" :(
4. do previous steps not using ConEmu: things will work

Note: I did opened this issue only to inform. In practice I using these 
utilities from makefile, so personally I don't care if ConEmu crash with these 
utilities.

Original issue reported on code.google.com by nanofo...@gmail.com on 8 Nov 2012 at 8:46

GoogleCodeExporter commented 9 years ago
where (exactly) you execute execute "sham cl main.cpp"?

On my system I get following error, but no "Close program"
sham: DetourCreateProcessWithDll failed: 0x00000006
Yep, detours... Thought sham hooks clashes with ConEmu hooks :)

ATM the solution is:

sham cl main.cpp -cur_console:i

Original comment by ConEmu.Maximus5 on 8 Nov 2012 at 9:22

GoogleCodeExporter commented 9 years ago
I started sham from FAR but start from default CMD.EXE is the same. My crash 
reports seems not so informative:

Problem signature:
  Problem Event Name:   BEX
  Application Name: main.exe
  Application Version:  0.0.0.0
  Application Timestamp:    509cd8ab
  Fault Module Name:    StackHash_b4ee
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp:   00000000
  Exception Offset: 73c99f00
  Exception Code:   c0000005
  Exception Data:   00000008
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:    1033
  Additional Information 1: b4ee
  Additional Information 2: b4ee5de6a2322745523997a782b35692
  Additional Information 3: 277e
  Additional Information 4: 277e19c30fbd5f6bb531ec9e027c37c3

or:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: make.exe
  Application Version:  0.0.0.0
  Application Timestamp:    00000000
  Fault Module Name:    StackHash_b4ee
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp:   00000000
  Exception Code:   c0000005
  Exception Offset: 73c99f00
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:    1033
  Additional Information 1: b4ee
  Additional Information 2: b4ee5de6a2322745523997a782b35692
  Additional Information 3: 277e
  Additional Information 4: 277e19c30fbd5f6bb531ec9e027c37c3

If You use a Borland makefile like this:

main.exe: main.cpp
      sham cl main.cpp

...and then start make.exe then no crash.

-cur_console:i also works well :)

Original comment by nanofo...@gmail.com on 9 Nov 2012 at 10:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Aha! I did not used "Inject ConEmuHK". If I using it then I get same error as 
You:

sham: DetourCreateProcessWithDll failed: 0x00000006

or:

tup error: failed to inject dll: No such file or directory

Moreover, if "Inject ConEmuHK" is on and I call these programs from makefile, 
then they gives therse errors. Without "Inject ConEmuHK" and called from 
makefile they works well.

Again, I just did opened this issue to inform You - seems to be a very low 
priority problem :)

Original comment by nanofo...@gmail.com on 9 Nov 2012 at 11:55

GoogleCodeExporter commented 9 years ago
Just for the history. The problem described in the ConEmuHk wiki, workaround 
described there too.

Original comment by ConEmu.Maximus5 on 2 Dec 2013 at 10:17