SymbiSoft / mosync

Automatically exported from code.google.com/p/mosync
0 stars 0 forks source link

Pipe-tool crashes on long command line #678

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write a long pipe-tool command line - I used something like this: 
c:\development\tools\MoSync\bin\pipe-tool.exe -appcode=GKPS -stabs=stabs.tab 
-sld=sld.tab 
-sc:\development\tools\MoSync\lib\pipe -s..\TestLib\Output\Release -
sC:\development\workspaces\runtime-com.mobilesorcery.sdk.product\TestLib\Output\
Release 
-B C:\development\workspaces\runtime-
com.mobilesorcery.sdk.product\TestApp\Output\Release\program 
C:\development\workspaces\runtime-
com.mobilesorcery.sdk.product\TestApp\Output\Release\main.s 
C:\development\workspaces\runtime-
com.mobilesorcery.sdk.product\TestApp\Output\Release\csdcfhsajkdhfkjashfkjashdfk
jadhfkjash
dkfhasdkjfhaskdjhfkjasdhfkjsadhfkjashdfkjashdkfjashdkfj.s 
C:\development\workspaces\runtime-
com.mobilesorcery.sdk.product\TestApp\Output\Release\bsdcfhsajkdhfkjashfkjashdfk
jadhfkjash
dkfhasdkjfhaskdjhfkjasdhfkjsadhfkjashdfkjashdkfjashdkfj.s 
C:\development\workspaces\runtime-
com.mobilesorcery.sdk.product\TestApp\Output\Release\asdcfhsajkdhfkjashfkjashdfk
jadhfkjash
dkfhasdkjfhaskdjhfkjasdhfkjsadhfkjashdfkjashdkfjashdkfj.s MAStd.lib TestLib.lib

2.
3.

What is the expected output? What do you see instead?
I'd like pipe-tool to generate a program file, but instead it crashes. (In the 
IDE, there is a check 
that the command line does not exceed 162 characters, but I can imagine 
projects that will need 
longer command lines.) If there is a workaround, please post that workaround 
here so I can 
implement it in the IDE.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mattias....@gtempaccount.com on 25 May 2010 at 6:01

GoogleCodeExporter commented 8 years ago
Reproduced the bug, this is a limitation in the IDE (in 
com.mobilesorcery.sdk.core/src/com/mobilesorcery/sdk/internal/PipeTool.java on 
line 
267). I've verified this and reached the conclusion that there isn't any such 
limitation in pipe-tool. You can go ahead and remove the limitation in 
PipeTool.java.

Original comment by ali.mosa...@mobilesorcery.com on 25 May 2010 at 1:31

GoogleCodeExporter commented 8 years ago
Oh, but I run the above line in a shell, not in the IDE...?

Original comment by mattias....@gmail.com on 25 May 2010 at 8:22

GoogleCodeExporter commented 8 years ago
I can still reproduce it every time - however please let me clarify: only if 
any one single argument is long enough 
will pipetool crash. The total command line length is unlimited.

Original comment by mattias....@gmail.com on 31 May 2010 at 7:11

GoogleCodeExporter commented 8 years ago
Don't know if this is the same problem - import the project into your 
workspace. If the files with loooong file names are excluded from the build it 
will done in a few seconds. If they're not, pipe-tool.exe keeps on working, 
working, working and consuming hundreds of MBs. Can you reproduce this?

Original comment by mattias....@gtempaccount.com on 22 Jun 2010 at 1:53

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by miles.mi...@gtempaccount.com on 23 Jun 2010 at 12:43