[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprofng/32096] UBSAN issues in gprofng
From: |
sam at gentoo dot org |
Subject: |
[Bug gprofng/32096] UBSAN issues in gprofng |
Date: |
Sun, 18 Aug 2024 08:34:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=32096
--- Comment #1 from Sam James <sam at gentoo dot org> ---
See the attached gprofng.log for the single test for the errors, but a snippet
below:
```
/tmp/binutils-gdb/gprofng/src/Settings.cc:265:27: runtime error: load of value
3200171710, which is not a valid value for type 'PrintMode'
#0 0x55d10168a8a8 in Settings::Settings(Settings*) [clone .cold]
(/tmp/build-binutils/gprofng/src/gp-display-text+0x178a8)
#1 0x55d10177309f in DbeSession::DbeSession(Settings*, bool, bool)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x10009f)
#2 0x55d1016c1811 in er_print::er_print(int, char**)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x4e811)
#3 0x55d1016b3b0f in main
(/tmp/build-binutils/gprofng/src/gp-display-text+0x40b0f)
#4 0x7f3bcb43a67a in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
#5 0x7f3bcb43a72a in __libc_start_main_impl ../csu/libc-start.c:360
#6 0x55d1016b8984 in _start
(/tmp/build-binutils/gprofng/src/gp-display-text+0x45984)
[...]
/tmp/binutils-gdb/gprofng/src/Experiment.cc:4752:63: runtime error: member
access within misaligned address 0x5310002d081c for type 'union Value', which
requires 8 byte alignment
0x5310002d081c: note: pointer points here
0b 00 00 00 e4 3e 9f be 18 0f 00 00 c1 38 e4 09 04 c4 5a 17 0a 00 00 00 01
00 00 00 00 00 00 00
^
#0 0x55d1018e5547 in Experiment::readPacket(Data_window*, char*,
PacketDescriptor*, DataDescriptor*, int, unsigned long)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x272547)
#1 0x55d1018e7984 in Experiment::read_data_file(char const*, char const*)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x274984)
#2 0x55d1018c0ec6 in Experiment::get_profile_events()
(/tmp/build-binutils/gprofng/src/gp-display-text+0x24dec6)
#3 0x55d10184a078 in DbeView::get_filtered_events(int, int)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x1d7078)
#4 0x55d101ad48f2 in PathTree::reset()
(/tmp/build-binutils/gprofng/src/gp-display-text+0x4618f2)
#5 0x55d101af0650 in PathTree::compute_metrics(MetricList*, Histable::Type,
Hist_data::Mode, Vector<Histable*>*, Histable*, Vector<Histable*>*,
PathTree::PtreeComputeOption)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x47d650)
#6 0x55d101810465 in DbeView::get_hist_data(MetricList*, Histable::Type,
int, Hist_data::Mode, Vector<Histable*>*, Histable*, Vector<Histable*>*,
PathTree::PtreeComputeOption)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x19d465)
#7 0x55d1016ff6e5 in er_print::print_func(Histable::Type, Print_mode,
MetricList*, MetricList*, char*, char*)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x8c6e5)
#8 0x55d1016c7613 in er_print::proc_cmd(CmdType, int, char*, char*, char*,
char*, bool) (/tmp/build-binutils/gprofng/src/gp-display-text+0x54613)
#9 0x55d1016b4459 in main
(/tmp/build-binutils/gprofng/src/gp-display-text+0x41459)
#10 0x7f3bcb43a67a in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
#11 0x7f3bcb43a72a in __libc_start_main_impl ../csu/libc-start.c:360
#12 0x55d1016b8984 in _start
(/tmp/build-binutils/gprofng/src/gp-display-text+0x45984)
[...]
/tmp/binutils-gdb/gprofng/src/CallStack.cc:1043:30: runtime error: member call
on address 0x50400052d550 which does not point to an object of type 'Vector'
0x50400052d550: note: object is of type 'Vector<DbeInstr*>'
00 00 00 00 80 a3 d1 02 d1 55 00 00 80 ee 10 00 c0 50 00 00 04 00 00 00 00
00 00 00 10 00 00 00
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'Vector<DbeInstr*>'
#0 0x55d101740ba2 in CallStackP::add_stack(Vector<Histable*>*)
(/tmp/build-binutils/gprofng/src/gp-display-text+0xcdba2)
#1 0x55d101747575 in CallStackP::add_stack(DataDescriptor*, long,
FramePacket*, cstk_ctx_chunk*)
(/tmp/build-binutils/gprofng/src/gp-display-text+0xd4575)
#2 0x55d1018ef3ef in Experiment::resolve_frame_info(DataDescriptor*)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x27c3ef)
#3 0x55d1018c0ff9 in Experiment::get_profile_events()
(/tmp/build-binutils/gprofng/src/gp-display-text+0x24dff9)
#4 0x55d10184a078 in DbeView::get_filtered_events(int, int)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x1d7078)
#5 0x55d101ad48f2 in PathTree::reset()
(/tmp/build-binutils/gprofng/src/gp-display-text+0x4618f2)
#6 0x55d101af0650 in PathTree::compute_metrics(MetricList*, Histable::Type,
Hist_data::Mode, Vector<Histable*>*, Histable*, Vector<Histable*>*,
PathTree::PtreeComputeOption)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x47d650)
#7 0x55d101810465 in DbeView::get_hist_data(MetricList*, Histable::Type,
int, Hist_data::Mode, Vector<Histable*>*, Histable*, Vector<Histable*>*,
PathTree::PtreeComputeOption)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x19d465)
#8 0x55d1016ff6e5 in er_print::print_func(Histable::Type, Print_mode,
MetricList*, MetricList*, char*, char*)
(/tmp/build-binutils/gprofng/src/gp-display-text+0x8c6e5)
#9 0x55d1016c7613 in er_print::proc_cmd(CmdType, int, char*, char*, char*,
char*, bool) (/tmp/build-binutils/gprofng/src/gp-display-text+0x54613)
#10 0x55d1016b4459 in main
(/tmp/build-binutils/gprofng/src/gp-display-text+0x41459)
#11 0x7f3bcb43a67a in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
#12 0x7f3bcb43a72a in __libc_start_main_impl ../csu/libc-start.c:360
#13 0x55d1016b8984 in _start
(/tmp/build-binutils/gprofng/src/gp-display-text+0x45984)
[...]
```
--
You are receiving this mail because:
You are on the CC list for the bug.