[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-07-25 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16892502#comment-16892502 ] Tham commented on ARROW-5700: - This issue has the same root cause as ARROW-5410 (`oflag` has unexpected value

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-28 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874773#comment-16874773 ] Tham commented on ARROW-5700: -   > Can you double-check by calling SetLastError(0) before _wsopen_s?

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-28 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874724#comment-16874724 ] Antoine Pitrou commented on ARROW-5700: --- Error code 80 is ERROR_FILE_EXISTS. It's a bit weird,

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874697#comment-16874697 ] Tham commented on ARROW-5700: - Otherwise, I've tried to build arrow with  |ARROW_USE_STATIC_CRT_OPTION=ON|

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874694#comment-16874694 ] Tham commented on ARROW-5700: - > Have you checked the value of {{file_name.ToNative().c_str()}} ? > Another

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874420#comment-16874420 ] Antoine Pitrou commented on ARROW-5700: --- Right :-) > [C++] Failed to open local file: Bad file

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Wes McKinney (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874412#comment-16874412 ] Wes McKinney commented on ARROW-5700: - The PR didn't actually resolve the problem, just gives better

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16874232#comment-16874232 ] Antoine Pitrou commented on ARROW-5700: --- By the way, I've submitted

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16873948#comment-16873948 ] Antoine Pitrou commented on ARROW-5700: --- Another question still: what does {{GetLastError()}}

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16873945#comment-16873945 ] Antoine Pitrou commented on ARROW-5700: --- Also, what happens if you replace {{_wsopen_s}} with the

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-27 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16873925#comment-16873925 ] Antoine Pitrou commented on ARROW-5700: --- Have you checked the value of

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-26 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16873826#comment-16873826 ] Tham commented on ARROW-5700: - [~pitrou] I can reproduce this issue on this Windows version. Here is the

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-25 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16872195#comment-16872195 ] Antoine Pitrou commented on ARROW-5700: --- > Is there any chances that open() is called instead of

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-25 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16872194#comment-16872194 ] Tham commented on ARROW-5700: - bq. I took a look at the CRT source code, and it's mysterious how EBADF

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-25 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16872189#comment-16872189 ] Tham commented on ARROW-5700: - {quote}Does it happen with any output file? {quote} I'm not sure. We receive

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-25 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16872159#comment-16872159 ] Antoine Pitrou commented on ARROW-5700: --- I took a look at the CRT source code, and it's mysterious

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-25 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16872147#comment-16872147 ] Antoine Pitrou commented on ARROW-5700: --- Does it happen with any output file? > [C++] Failed to

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-24 Thread Tham (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871962#comment-16871962 ] Tham commented on ARROW-5700: - [~pitrou] Yes, I build arrow from source myself at this commit:

[jira] [Commented] (ARROW-5700) [C++] Failed to open local file: Bad file descriptor

2019-06-24 Thread Antoine Pitrou (JIRA)
[ https://issues.apache.org/jira/browse/ARROW-5700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871252#comment-16871252 ] Antoine Pitrou commented on ARROW-5700: --- To start with, which version of Arrow are you using and