Bug 69208 - Other: transex3.exe causes an exception when using Parallel Build.
Summary: Other: transex3.exe causes an exception when using Parallel Build.
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
4.2.0.0.alpha0+ Master
Hardware: Other Windows (All)
: medium normal
Assignee: Andras Timar
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-11 08:05 UTC by Tomofumi Yagi
Modified: 2013-09-12 10:31 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
stacktrace (1.32 KB, text/plain)
2013-09-11 08:05 UTC, Tomofumi Yagi
Details
The Source code that caused an exception(screenshot of visual studio) (66.55 KB, image/png)
2013-09-11 08:18 UTC, Tomofumi Yagi
Details
proposed patch for bug 69208 (850 bytes, patch)
2013-09-11 08:32 UTC, Tomofumi Yagi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomofumi Yagi 2013-09-11 08:05:26 UTC
Created attachment 85607 [details]
stacktrace

Problem description: 

Sometimes transex3.exe causes an exception in l10ntools module when using Parallel Build.
I'm using Visual Studio 2012 and Windows 8.
I attach a stacktrace.

Steps to reproduce:
1. ./autogen.sh with "--with-parallelism=12" switch.
2. /opt/lo/bin/make 

Build will fail with the following message.

-------------------------------------------------
/opt/lo/bin/make -j 12 -rs -f F:/lo4mas/core/Makefile.gbuild
[build DEP] LNK:Executable/reg2unoidl.exe
[build DEP] LNK:Library/iunoidl.lib
[build DEP] LNK:Executable/uno-skeletonmaker.exe
[build DEP] LNK:Library/ishlxthdl_x64.lib
[build DEP] LNK:Library/ishlxthdl.lib
[build DEP] LNK:Executable/regcompare.exe
[build DEP] LNK:Executable/regview.exe
[build DEP] LNK:Executable/regmerge.exe
[build DEP] LNK:Executable/idlc.exe
[build DEP] LNK:Library/idict_zh.lib
[build DEP] LNK:Library/idict_ja.lib
[build DEP] LNK:Executable/cppumaker.exe
[build DEP] LNK:Executable/javamaker.exe
[build DEP] LNK:Library/iunoidl.lib
[build LNK] Library/iunoidl.lib
[build DEP] LNK:Executable/idlc.exe
[build LNK] Executable/idlc.exe
[build DEP] LNK:Executable/regmerge.exe
   ライブラリ F:/lo4mas/core/workdir/wntmsci14/LinkTarget/Library/iunoidl.lib とオブジェクト F:/lo4mas/core/workdir/wntmsci14/LinkTarget/Library/iunoidl.exp を作成中
[build LNK] Executable/regmerge.exe
   ライブラリ F:/lo4mas/core/workdir/wntmsci14/LinkTarget/Executable/idlc.lib とオブジェクト F:/lo4mas/core/workdir/wntmsci14/LinkTarget/Executable/idlc.exp を作成中
[build DEP] LNK:Executable/regcompare.exe
[build LNK] Executable/regcompare.exe
[build PRJ] xslt
[build PKG] xslt
[build SRS] accessibility/source/helper/accessiblestrings.src
[build SRS] vcl/source/src/btntext.src
[build SRS] vcl/source/src/helptext.src
[build SRS] vcl/source/src/menu.src
[build SRS] vcl/source/src/print.src
[build SRS] vcl/source/src/stdtext.src
[build SRS] vcl/source/src/throbber.src
[build SRS] vcl/source/src/units.src
[build SRS] vcl/source/src/fpicker.src
[build SRS] vcl/source/edit/textundo.src
[build SRS] svtools/source/contnr/fileview.src
[build SRS] svtools/source/contnr/svcontnr.src
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/units.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/units.src'
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/svtools/source/contnr/fileview.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/svtools/source/contnr/fileview.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/edit/textundo.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/edit/textundo.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/fpicker.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/fpicker.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/stdtext.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/stdtext.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/print.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/print.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/menu.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/menu.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/helptext.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/helptext.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/btntext.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/vcl/source/src/btntext.src'
make[1]: *** [F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/accessibility/source/helper/accessiblestrings.src] Error 255
make[1]: *** Deleting file `F:/lo4mas/core/workdir/wntmsci14/SrsPartMergeTarget/accessibility/source/helper/accessiblestrings.src'
make: *** [build] Error 2
-------------------------------------------------


Operating System: Windows (other)
Version: 4.2.0.0.alpha0+ Master
Comment 1 Tomofumi Yagi 2013-09-11 08:18:55 UTC
Created attachment 85610 [details]
The Source code that caused an exception(screenshot of visual studio)

I attach an information about the cause of an exception.

The Source code that caused an exception is shown.
Comment 2 Tomofumi Yagi 2013-09-11 08:32:18 UTC
Created attachment 85611 [details]
proposed patch for bug 69208

Avoidance of bugs transex3 stall at exception in parallel build(getenv() function causes an exception). 
It does not support multi-threaded getenv() function is. 
By placing the getenv() function out of the loop, we reduce the risk of an exception.
Comment 3 Andras Timar 2013-09-12 07:28:40 UTC
Thanks for the patch. Could you please send a licence statement, as described at: https://wiki.documentfoundation.org/Development/Developers#Developers_and_Contributors_list
Comment 4 Andras Timar 2013-09-12 08:56:24 UTC
(In reply to comment #3)
> Thanks for the patch. Could you please send a licence statement, as
> described at:
> https://wiki.documentfoundation.org/Development/
> Developers#Developers_and_Contributors_list

Sorry, you have already done that.
Comment 5 Tomofumi Yagi 2013-09-12 10:31:43 UTC
(In reply to comment #4)

Thank you for your committing the patch!

http://cgit.freedesktop.org/libreoffice/core/commit/?id=e457724d5ef1aaac98b6ff84ce1b054adda72abe