amoeba commented on PR #49585:
URL: https://github.com/apache/arrow/pull/49585#issuecomment-5873010753
I can reproduce the crash locally so that's good. It looks like teardown is
triggering the normal unload of `arrow_flight_sql_odbc.dll` but there are three
threads still running and pointing into it? The segfault is:
```
(6534.5140): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
<Unloaded_arrow_flight_sql_odbc.dll>+0x661f80:
00007fff`92851f80 ?? ???
```
Three active threads are still inside the DLL:
```
0x9360 0x18 <Unloaded_arrow_flight_sql_odbc.dll>+0x661f80
(00007fff`92851f80)
0x5140 0x2a <Unloaded_arrow_flight_sql_odbc.dll>+0x661f80
(00007fff`92851f80)
0x6004 0x2c <Unloaded_arrow_flight_sql_odbc.dll>+0x661f80
(00007fff`92851f80)
```
<details>
<summary>Thread details</summary>
```
24 Id: 6534.9360 Suspend: 1 Teb: 00000088`4062c000 Unfrozen
# RetAddr : Args to Child
: Call Site
00 00007ff8`4df1c1ab : 00000088`41fff5e0 00007fff`9285191a
00000088`00000000 00000088`41fff4c0 : ntdll!NtWaitForAlertByThreadId+0x14
01 00007ff8`4b803f18 : 00000000`00000000 00000088`41fff620
00007fff`93f796f8 00000001`230c2b00 : ntdll!RtlSleepConditionVariableCS+0x14b
02 00007fff`92850691 : 00007fff`93f796c0 00007fff`93f796f8
00000088`41fff5e0 ffffffff`ff676980 : KERNELBASE!SleepConditionVariableCS+0x38
03 00007fff`93f796c0 : 00007fff`93f796f8 00000088`41fff5e0
ffffffff`ff676980 7fffffff`ffffffff :
<Unloaded_arrow_flight_sql_odbc.dll>+0x660691
04 00007fff`93f796f8 : 00000088`41fff5e0 ffffffff`ff676980
7fffffff`ffffffff 00000000`00000000 :
<Unloaded_arrow_flight_sql_odbc.dll>+0x1d896c0
05 00000088`41fff5e0 : ffffffff`ff676980 7fffffff`ffffffff
00000000`00000000 00000000`00000007 :
<Unloaded_arrow_flight_sql_odbc.dll>+0x1d896f8
06 ffffffff`ff676980 : 7fffffff`ffffffff 00000000`00000000
00000000`00000007 00000000`01036640 : 0x00000088`41fff5e0
07 7fffffff`ffffffff : 00000000`00000000 00000000`00000007
00000000`01036640 00000000`6aba7a43 : 0xffffffff`ff676980
08 00000000`00000000 : 00000000`00000007 00000000`01036640
00000000`6aba7a43 00000001`230c2b00 : 0x7fffffff`ffffffff
# 42 Id: 6534.5140 Suspend: 1 Teb: 00000088`4074e000 Unfrozen
# RetAddr : Args to Child
: Call Site
00 00007ff8`4ce7e957 : 00000000`00000000 00000000`00000000
00000000`00000000 00000000`00000000 :
<Unloaded_arrow_flight_sql_odbc.dll>+0x661f80
01 00007ff8`4df87c1c : 00000000`00000000 00000000`00000000
000004f0`fffffb30 000004d0`fffffb30 : KERNEL32!BaseThreadInitThunk+0x17
02 00000000`00000000 : 00000000`00000000 00000000`00000000
00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x2c
44 Id: 6534.6004 Suspend: 1 Teb: 00000088`40750000 Unfrozen
# RetAddr : Args to Child
: Call Site
00 00007ff8`4b832cdc : 00000000`00000098 00000000`00000024
00000000`00000001 00000000`00000000 : ntdll!NtDeviceIoControlFile+0x14
01 00007ff8`4b832596 : 00000000`00000001 00000000`00000002
00000000`00000000 000001aa`a8e102c8 : KERNELBASE!GetConsoleLangId+0xe8
02 00007ff8`4b7e522d : 00000000`00000002 00000000`00000000
00000000`00000000 00000000`400c0060 :
KERNELBASE!_KernelBaseBaseDllInitialize+0xd6
03 00007ff8`4e05dd5a : 00000000`00000000 00000000`00000030
000001aa`a8e10000 00000000`00000003 : KERNELBASE!KernelBaseDllInitialize+0xd
04 00007ff8`4df1ba53 : 000001aa`a8e10000 00000000`400c0062
00000000`00000024 00000000`00000030 : ntdll!LdrpCallInitRoutineInternal+0x22
05 00007ff8`4df1b7d7 : 000001aa`a8e17f50 00000088`407f8000
00000088`407f8000 00000000`00000000 : ntdll!LdrpCallInitRoutine+0x93
06 00007ff8`4df8b98b : 00000000`00000000 00000000`00000000
00000088`407f8000 00000000`00000000 : ntdll!LdrpInitializeThread+0x297
07 00007ff8`4df8b83a : 00000000`00000000 00007ff8`4df00000
00000088`407f8000 00000088`40750000 : ntdll!LdrpInitialize+0xa7
08 00007ff8`4df0854e : 00000088`433ff8f0 00000000`00000000
00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeInternal+0x5a
09 00000000`00000000 : 00000000`00000000 00000000`00000000
00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0xe
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]