CurtHagenlocher commented on issue #1804:
URL: https://github.com/apache/arrow-adbc/issues/1804#issuecomment-2091943922

   Ah, I forgot I could get the stack trace by running the test from the 
command line. I guess it's true that IDEs rot your brain ;).
   
   ```
   Snowflake driver panicked, stack traces:
   goroutine 17 [running, locked to thread]:
   main.poison(0xc0005a9820?, {0x7ffcc6357137, 0x19}, {0x7ffcc626a2c0, 
0xc000820a80})
           D:/src/GitHub/arrow-adbc-2/go/adbc/pkg/snowflake/driver.go:164 +0x85
   main.SnowflakeStatementExecuteQuery.func1()
           D:/src/GitHub/arrow-adbc-2/go/adbc/pkg/snowflake/driver.go:1516 +0x4b
   panic({0x7ffcc626a2c0?, 0xc000820a80?})
           C:/Program Files/Go/src/runtime/panic.go:914 +0x21f
   
github.com/apache/arrow-adbc/go/adbc/driver/snowflake.newRecordReader({0x7ffcc65f14a8,
 0xc00017c5a0}, {0x7ffcc65e77f0?, 0xc0001ca718}, {0x7ffcc65f7b20, 
0xc000817560}, 0xc8, 0x0?, 0x60?)
           
D:/src/GitHub/arrow-adbc-2/go/adbc/driver/snowflake/record_reader.go:574 +0xcef
   
github.com/apache/arrow-adbc/go/adbc/driver/snowflake.(*statement).ExecuteQuery(0xc000816240,
 {0x7ffcc65f14a8, 0xc00017c5a0})
           D:/src/GitHub/arrow-adbc-2/go/adbc/driver/snowflake/statement.go:477 
+0x171
   main.SnowflakeStatementExecuteQuery(0x7ffcc443af72?, 0x15554a7c000, 
0x3ca6fbc268, 0x3ca6fbc280)
           D:/src/GitHub/arrow-adbc-2/go/adbc/pkg/snowflake/driver.go:1534 +0xd0
   
   goroutine 43 [IO wait]:
   internal/poll.runtime_pollWait(0x1557a548160, 0x72)
           C:/Program Files/Go/src/runtime/netpoll.go:343 +0x85
   internal/poll.(*pollDesc).wait(0x8bc1a34935e7908?, 0xc0008676b0?, 0x0)
           C:/Program Files/Go/src/internal/poll/fd_poll_runtime.go:84 +0x27
   internal/poll.execIO(0xc0006d0018, 0x7ffcc63e2608)
           C:/Program Files/Go/src/internal/poll/fd_windows.go:175 +0xe6
   internal/poll.(*FD).Read(0xc0006d0000, {0xc000700000, 0x1800, 0x1800})
           C:/Program Files/Go/src/internal/poll/fd_windows.go:436 +0x2b1
   net.(*netFD).Read(0xc0006d0000, {0xc000700000?, 0xc00070000d?, 0x5fe?})
           C:/Program Files/Go/src/net/fd_posix.go:55 +0x25
   net.(*conn).Read(0xc00086c000, {0xc000700000?, 0x17f3?, 0xc000700005?})
           C:/Program Files/Go/src/net/net.go:179 +0x45
   crypto/tls.(*atLeastReader).Read(0xc000827c38, {0xc000700000?, 
0xc000827c38?, 0x0?})
           C:/Program Files/Go/src/crypto/tls/conn.go:805 +0x3b
   bytes.(*Buffer).ReadFrom(0xc0005de628, {0x7ffcc65d78c0, 0xc000827c38})
           C:/Program Files/Go/src/bytes/buffer.go:211 +0x98
   crypto/tls.(*Conn).readFromUntil(0xc0005de380, {0x1557a67cb58?, 
0xc00086c000}, 0x1800?)
           C:/Program Files/Go/src/crypto/tls/conn.go:827 +0xde
   crypto/tls.(*Conn).readRecordOrCCS(0xc0005de380, 0x0)
           C:/Program Files/Go/src/crypto/tls/conn.go:625 +0x250
   crypto/tls.(*Conn).readRecord(...)
           C:/Program Files/Go/src/crypto/tls/conn.go:587
   crypto/tls.(*Conn).Read(0xc0005de380, {0xc000714000, 0x1000, 0x22?})
           C:/Program Files/Go/src/crypto/tls/conn.go:1369 +0x158
   net/http.(*persistConn).Read(0xc0001d3d40, {0xc000714000?, 0xc000106d20?, 
0xc000867d38?})
           C:/Program Files/Go/src/net/http/transport.go:1954 +0x4a
   bufio.(*Reader).fill(0xc0000b8240)
           C:/Program Files/Go/src/bufio/bufio.go:113 +0x103
   bufio.(*Reader).Peek(0xc0000b8240, 0x1)
           C:/Program Files/Go/src/bufio/bufio.go:151 +0x53
   net/http.(*persistConn).readLoop(0xc0001d3d40)
           C:/Program Files/Go/src/net/http/transport.go:2118 +0x1b9
   created by net/http.(*Transport).dialConn in goroutine 15
           C:/Program Files/Go/src/net/http/transport.go:1776 +0x169f
   
   goroutine 44 [select]:
   net/http.(*persistConn).writeLoop(0xc0001d3d40)
           C:/Program Files/Go/src/net/http/transport.go:2421 +0xe5
   created by net/http.(*Transport).dialConn in goroutine 15
           C:/Program Files/Go/src/net/http/transport.go:1777 +0x16f1
   
   goroutine 67 [select]:
   database/sql.(*DB).connectionOpener(0xc000806410, {0x7ffcc65f14a8, 
0xc00017c550})
           C:/Program Files/Go/src/database/sql/sql.go:1218 +0x87
   created by database/sql.OpenDB in goroutine 17
           C:/Program Files/Go/src/database/sql/sql.go:791 +0x165
   [xUnit.net 00:00:02.95]     
Apache.Arrow.Adbc.Tests.Drivers.Interop.Snowflake.ClientTests.CanClientExecuteQueryWithNoResults
 [FAIL]
   [xUnit.net 00:00:02.95]       Apache.Arrow.Adbc.AdbcException : [Snowflake] 
AdbcConnectionRelease: Go panicked, driver is in unknown state
   [xUnit.net 00:00:02.95]       Stack Trace:
   [xUnit.net 00:00:02.95]         
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs(1143,0):
 at 
Apache.Arrow.Adbc.C.CAdbcDriverImporter.CallHelper.TranslateCode(AdbcStatusCode 
statusCode)
   [xUnit.net 00:00:02.95]         
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs(994,0):
 at Apache.Arrow.Adbc.C.CAdbcDriverImporter.CallHelper.Call(IntPtr fn, 
CAdbcConnection& nativeConnection)
   [xUnit.net 00:00:02.95]         
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs(531,0):
 at 
Apache.Arrow.Adbc.C.CAdbcDriverImporter.ImportedAdbcConnection.Dispose(Boolean 
disposing)
   [xUnit.net 00:00:02.95]         
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs(515,0):
 at Apache.Arrow.Adbc.C.CAdbcDriverImporter.ImportedAdbcConnection.Dispose()
   [xUnit.net 00:00:02.95]         
D:\src\GitHub\arrow-adbc-2\csharp\src\Client\AdbcConnection.cs(164,0): at 
Apache.Arrow.Adbc.Client.AdbcConnection.Dispose(Boolean disposing)
   [xUnit.net 00:00:02.95]            at 
System.ComponentModel.Component.Dispose()
   [xUnit.net 00:00:02.95]         
D:\src\GitHub\arrow-adbc-2\csharp\test\Drivers\Interop\Snowflake\ClientTests.cs(142,0):
 at 
Apache.Arrow.Adbc.Tests.Drivers.Interop.Snowflake.ClientTests.CanClientExecuteQueryWithNoResults()
   [xUnit.net 00:00:02.96]   Finished:    
Apache.Arrow.Adbc.Tests.Drivers.Interop.Snowflake
   
   Unhandled Exception: System.ObjectDisposedException: Cannot access a 
disposed object.
   Object name: 'ImportedAdbcDriver'.
      at 
Apache.Arrow.Adbc.C.CAdbcDriverImporter.ImportedAdbcDriver.get_Driver() in 
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs:line
 131
      at 
Apache.Arrow.Adbc.C.CAdbcDriverImporter.ImportedAdbcDatabase.Dispose(Boolean 
disposing) in 
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs:line
 285
      at 
Apache.Arrow.Adbc.C.CAdbcDriverImporter.ImportedAdbcDatabase.Finalize() in 
D:\src\GitHub\arrow-adbc-2\csharp\src\Apache.Arrow.Adbc\C\CAdbcDriverImporter.cs:line
 233
   
   ```


-- 
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]

Reply via email to