[Bug gprofng/32110] gprofng segfaults on parsing DWARF of clang++ 18.1.3 produced binary

2024-09-16 Thread tim.felgentreff at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32110

--- Comment #6 from Tim Felgentreff  ---
Hi, here is a complete (but not minimal, sorry, it takes a while to build)
reproducer:

> git clone https://github.com/graalvm/mx
> git clone https://github.com/oracle/graal
> cd graal/vm
> ../../mx/mx fetch-jdk -A --jdk-id labsjdk-ce-latest
> export JAVA_HOME=$HOME/.mx/jdks/labsjdk-ce-latest
> ../../mx/mx --env ce-python build --dep PYTHON_JAVA_STANDALONE_SVM_JAVA24
> # The binary is now here:
> # 
> ../sdk/mxbuild/linux-amd64/PYTHON_JAVA_STANDALONE_SVM_JAVA24/graalpy-community-24.2.0-dev-linux-amd64/bin/graalpy

I can then reproduce the error like this:

> gprofng collect app -o pythonsegv.er 
> ../sdk/mxbuild/linux-amd64/PYTHON_JAVA_STANDALONE_SVM_JAVA24/graalpy-community-24.2.0-dev-linux-amd64/bin/graalpy
>  -c 1
> gprofng display text -functions pythonsegv.er

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gprofng/32110] gprofng segfaults on parsing DWARF of clang++ 18.1.3 produced binary

2024-09-16 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32110

--- Comment #7 from Vladimir Mezentsev  
---
 I cannot build. Looks like I need some additional installation:
% ../../mx/mx --env ce-python build --dep PYTHON_JAVA_STANDALONE_SVM_JAVA24
<...>
Traceback (most recent call last):
  File
"<...>/graalpython/graalpython/com.oracle.graal.python.pegparser.generator/main_parser_gen.py",
line 45, in 
from pegen.build import generate_token_definitions
  File
"<...>/graalpython/graalpython/com.oracle.graal.python.pegparser.generator/pegen/build.py",
line 13, in 
from pegen.c_generator import CParserGenerator
  File
"<...>/graalpython/graalpython/com.oracle.graal.python.pegparser.generator/pegen/c_generator.py",
line 8, in 
from dataclasses import dataclass, field
ModuleNotFoundError: No module named 'dataclasses'
ninja: build stopped: subcommand failed.


Also I can't compile the attached .ii file:
% clang++ launcher.ii
In file included from
/home/tim/dev/graal/sdk/src/org.graalvm.launcher.native/src/launcher.cc:49:
In file included from
/home/tim/dev/graal/sdk/mxbuild/linux-amd64/LLVM_TOOLCHAIN/bin/../include/c++/v1/string:573:
In file included from
/home/tim/dev/graal/sdk/mxbuild/linux-amd64/LLVM_TOOLCHAIN/bin/../include/c++/v1/__algorithm/remove.h:12:
In file included from
/home/tim/dev/graal/sdk/mxbuild/linux-amd64/LLVM_TOOLCHAIN/bin/../include/c++/v1/__algorithm/find.h:23:
In file included from
/home/tim/dev/graal/sdk/mxbuild/linux-amd64/LLVM_TOOLCHAIN/bin/../include/c++/v1/__string/constexpr_c_functions.h:15:
/home/tim/dev/graal/sdk/mxbuild/linux-amd64/LLVM_TOOLCHAIN/bin/../include/c++/v1/__type_traits/datasizeof.h:32:44:
error: '_Tp' does not refer to a value
   32 |   static const size_t value = __datasizeof(_Tp);
  |^
/home/tim/dev/graal/sdk/mxbuild/linux-amd64/LLVM_TOOLCHAIN/bin/../include/c++/v1/__type_traits/datasizeof.h:29:17:
note: declared here
   29 | template 
  | ^
1 error generated.


I use:
% clang++ --version
clang version 17.0.6 (Red Hat 17.0.6-1.0.1.module+el8.10.0+90260+0be6147c)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /bin

-- 
You are receiving this mail because:
You are on the CC list for the bug.