tikkss opened a new issue, #46304: URL: https://github.com/apache/arrow/issues/46304
### Describe the bug, including details regarding any error messages, version, and platform. It seems that `.debug` files may not contain sufficient information for `addr2line`, possibly because the packages are built with `release` build instead of `relwithdebinfo`. See the following line in the packaging rules: https://github.com/apache/arrow/blob/81bb98853c5c84132dc1ae9cd1be8507bdd0800a/dev/tasks/linux-packages/apache-arrow/debian/rules#L11 Using `relwithdebinfo` might allow generating `.debug` files with enough information for tools like `addr2line`. Steps to reproduce: `docker build -t arrow-dbgsym-noble .` executes with the following Dockerfile: ```Dockerfile FROM ubuntu:noble RUN apt-get update && \ apt-get install -y -V ca-certificates lsb-release wget RUN wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ apt-get update # Workaround: RUN apt-get install -y libarrow2000-dbgsym RUN wget https://packages.apache.org/artifactory/arrow/ubuntu/pool/noble/main/a/apache-arrow/libarrow2000-dbgsym_20.0.0-1_amd64.ddeb && \ apt-get install -y ./libarrow2000-dbgsym_20.0.0-1_amd64.ddeb # To use readelf RUN apt-get install -y binutils ``` And then, executes the following command lines: ```console $ docker run --rm -it arrow-dbgsym-noble bash root@b6151ebccc55:/# readelf --notes /usr/lib/x86_64-linux-gnu/libarrow.so.2000 Displaying notes found in: .note.gnu.build-id Owner Data size Description GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: ebdc8688b2d2c59f4a5aabbcc170deb844dbf936 root@b6151ebccc55:/# addr2line --exe=/usr/lib/debug/.build-id/eb/dc8688b2d2c59f4a5aabbcc170deb844dbf936.debug _Z31garrow_function_options_new_rawPKN5arrow7compute15FunctionOptionsE+0x18 ``` Expected result: `addr2line` returns a file path and line number corresponding to the symbol. Actual result: `addr2line` returns `??:0` Notes: The address in the stack trace was extracted from this error: https://github.com/red-data-tools/red_amber/actions/runs/14805234539/job/41572265425?pr=306#step:4:35153 ```console /lib/x86_64-linux-gnu/libarrow-glib.so.2000(_Z31garrow_function_options_new_rawPKN5arrow7compute15FunctionOptionsE+0x18) [0x7f789c15fa58] ``` ### Component(s) Packaging, Release -- 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-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org