You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "lidavidm (via GitHub)" <gi...@apache.org> on 2023/05/09 15:02:28 UTC

[GitHub] [arrow-adbc] lidavidm opened a new issue, #667: c/driver/snowflake: ASan heap-buffer-overflow in MetadataGetObjectsTablesTypes

lidavidm opened a new issue, #667:
URL: https://github.com/apache/arrow-adbc/issues/667

   ```
   [ RUN      ] SnowflakeConnectionTest.MetadataGetObjectsTablesTypes
   =================================================================
   ==4401==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6110000030c0 at pc 0x55ccc4d6f220 bp 0x7ffedecf4f00 sp 0x7ffedecf4ef8
   READ of size 4 at 0x6110000030c0 thread T0
       #0 0x55ccc4d6f21f in adbc_validation::ArrowArrayViewGetOffsetUnsafe(ArrowArrayView*, long) /home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation_util.cc:73
       #1 0x55ccc4c8e6ed in adbc_validation::ConnectionTest::TestMetadataGetObjectsTablesTypes() /home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation.cc:684
       #2 0x7fcb072fdb5d in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x59b5d)
       #3 0x7fcb072fde30 in testing::Test::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x59e30)
       #4 0x7fcb072fe1fe in testing::TestInfo::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a1fe)
       #5 0x7fcb072fe553 in testing::TestSuite::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a553)
       #6 0x7fcb07306fda in testing::internal::UnitTestImpl::RunAllTests() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x62fda)
       #7 0x7fcb072fe765 in testing::UnitTest::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a765)
       #8 0x7fcb090d706e in main (/usr/share/miniconda3/envs/test/lib/libgtest_main.so.1.13.0+0x106e)
       #9 0x7fcb06571d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
       #10 0x7fcb06571e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f)
       #11 0x55ccc4b2b3e0  (/home/runner/work/arrow-adbc/arrow-adbc/build/driver/snowflake/adbc-driver-snowflake-test+0x27d3e0)
   
   0x6110000030c0 is located 0 bytes to the right of 256-byte region [0x611000002fc0,0x6110000030c0)
   allocated by thread T0 here:
       #0 0x7fcb0916d3bb in __interceptor_realloc ../../../../libsanitizer/asan/asan_malloc_linux.cpp:164
       #1 0x7fcb083ef2f8 in realloc_and_initialize /home/runner/go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.0-20230421000340-388f3a88c647/arrow/memory/mallocator/mallocator.go:24
       #2 0x7fcb083ef3ee in _cgo_9d28762a85a6_C2func_realloc_and_initialize /tmp/go-build/cgo-gcc-prolog:79
       #3 0x7fcb076de720 in runtime.asmcgocall /opt/hostedtoolcache/go/1.18.6/x64/src/runtime/asm_amd64.s:821
   
   SUMMARY: AddressSanitizer: heap-buffer-overflow /home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation_util.cc:73 in adbc_validation::ArrowArrayViewGetOffsetUnsafe(ArrowArrayView*, long)
   Shadow bytes around the buggy address:
     0x0c227fff85c0: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
     0x0c227fff85d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
     0x0c227fff85e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
     0x0c227fff85f0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
     0x0c227fff8600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   =>0x0c227fff8610: 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
     0x0c227fff8620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     0x0c227fff8630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     0x0c227fff8640: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
     0x0c227fff8650: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
     0x0c227fff8660: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
   Shadow byte legend (one shadow byte represents 8 application bytes):
     Addressable:           00
     Partially addressable: 01 02 03 04 05 06 07 
     Heap left redzone:       fa
     Freed heap region:       fd
     Stack left redzone:      f1
     Stack mid redzone:       f2
     Stack right redzone:     f3
     Stack after return:      f5
     Stack use after scope:   f8
     Global redzone:          f9
     Global init order:       f6
     Poisoned by user:        f7
     Container overflow:      fc
     Array cookie:            ac
     Intra object redzone:    bb
     ASan internal:           fe
     Left alloca redzone:     ca
     Right alloca redzone:    cb
     Shadow gap:              cc
   ==4401==ABORTING
   ```


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-adbc] lidavidm closed issue #667: c/driver/snowflake: ASan heap-buffer-overflow in MetadataGetObjectsTablesTypes

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm closed issue #667: c/driver/snowflake: ASan heap-buffer-overflow in MetadataGetObjectsTablesTypes
URL: https://github.com/apache/arrow-adbc/issues/667


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-adbc] zeroshade commented on issue #667: c/driver/snowflake: ASan heap-buffer-overflow in MetadataGetObjectsTablesTypes

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #667:
URL: https://github.com/apache/arrow-adbc/issues/667#issuecomment-1540658885

   @lidavidm what version of Go was used to build this one?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-adbc] zeroshade commented on issue #667: c/driver/snowflake: ASan heap-buffer-overflow in MetadataGetObjectsTablesTypes

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #667:
URL: https://github.com/apache/arrow-adbc/issues/667#issuecomment-1540666820

   If it was Go1.20+ then try bumping the go.mod arrow version to `go get -u github.com/apache/arrow/go/v12@06d49ee` which committed a fix for ASAN issues identified in Go1.20


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-adbc] lidavidm commented on issue #667: c/driver/snowflake: ASan heap-buffer-overflow in MetadataGetObjectsTablesTypes

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #667:
URL: https://github.com/apache/arrow-adbc/issues/667#issuecomment-1540672669

   Observed in CI so 1.18. But I think this is a problem with the test code anyways


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org