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/04 11:30:15 UTC

[GitHub] [arrow-adbc] lidavidm opened a new issue, #647: c/driver/snowflake: ASan error in Snowflake tests

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

   ```
   [ RUN      ] SnowflakeConnectionTest.MetadataGetObjectsTables
   =================================================================
   ==3243==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x611000002444 at pc 0x558ba6f7d260 bp 0x7ffcbfecb990 sp 0x7ffcbfecb988
   READ of size 4 at 0x611000002444 thread T0
       #0 0x558ba6f7d25f in adbc_validation::ArrowArrayViewGetOffsetUnsafe(ArrowArrayView*, long) /home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation_util.cc:73
       #1 0x558ba6e94a8e in adbc_validation::ConnectionTest::TestMetadataGetObjectsTables() /home/runner/work/arrow-adbc/arrow-adbc/c/validation/adbc_validation.cc:610
       #2 0x7fdc0d147b5d 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 0x7fdc0d147e30 in testing::Test::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x59e30)
       #4 0x7fdc0d1481fe in testing::TestInfo::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a1fe)
       #5 0x7fdc0d148553 in testing::TestSuite::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a553)
       #6 0x7fdc0d150fda in testing::internal::UnitTestImpl::RunAllTests() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x62fda)
       #7 0x7fdc0d148765 in testing::UnitTest::Run() (/usr/share/miniconda3/envs/test/lib/libgtest.so.1.13.0+0x5a765)
       #8 0x7fdc0ef1e06e in main (/usr/share/miniconda3/envs/test/lib/libgtest_main.so.1.13.0+0x106e)
       #9 0x7fdc0c3b9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
       #10 0x7fdc0c3b9e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f)
       #11 0x558ba6d393e0  (/home/runner/work/arrow-adbc/arrow-adbc/build/driver/snowflake/adbc-driver-snowflake-test+0x27d3e0)
   
   0x611000002444 is located 4 bytes to the right of 256-byte region [0x611000002340,0x611000002440)
   allocated by thread T0 here:
       #0 0x7fdc0efb43bb in __interceptor_realloc ../../../../libsanitizer/asan/asan_malloc_linux.cpp:164
       #1 0x7fdc0e2372f8 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 0x7fdc0e2373ee in _cgo_9d28762a85a6_C2func_realloc_and_initialize /tmp/go-build/cgo-gcc-prolog:79
       #3 0x7fdc0d526720 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:
     0x0c227fff8430: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa
     0x0c227fff8440: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
     0x0c227fff8450: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
     0x0c227fff8460: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
     0x0c227fff8470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   =>0x0c227fff8480: 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
     0x0c227fff8490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     0x0c227fff84a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     0x0c227fff84b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
     0x0c227fff84c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
     0x0c227fff84d0: 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
   ==3243==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 #647: c/driver/snowflake: ASan error in Snowflake tests

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm closed issue #647: c/driver/snowflake: ASan error in Snowflake tests
URL: https://github.com/apache/arrow-adbc/issues/647


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