https://bugs.kde.org/show_bug.cgi?id=518565

            Bug ID: 518565
           Summary: "fn" must not be split in the output
    Classification: Developer tools
           Product: valgrind
      Version First unspecified
       Reported In:
          Platform: Ubuntu
                OS: Unspecified
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: callgrind
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Currently, "fn" with the same name can be split in the output at shown below
(notice "fn=(784390)" duplicated).

When the both fn ouput parts are combined, the costs sums to the same,
however..

I am reporting this as a bug as:
- I do not see any reason callgring does this
- and callgrind does this randomly in large output (48 MiB)

If this is intended, please explain why, if not, please fix.

Command:
```
valgrind
    --tool=callgrind
    --dump-instr=yes
    --collect-jumps=yes
    --cache-sim=yes
    --branch-sim=yes
    --separate-callers=1000
    --callgrind-out-file=$profileOut
    --
    cmd
```

Current output:
```
fn=(784390)
zend_string_equal_val'zend_hash_find'ZEND_FETCH_DIM_R_SPEC_TMPVAR_CV_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'ZEND_NEW_SPEC_CONST_UNUSED_HANDLER'execute_ex'zend_generator_resume'zend_generator_iterator_move_forward'zend_fe_fetch_object_helper_SPEC'execute_ex'zend_execute'zend_execute_script'php_execute_script_ex'php_execute_script'main'(below
main)'__libc_start_main@@GLIBC_2.34'(below main)'0x000000000001f540
0x8050b0 391 2
+4 * 2
+4 +1 2 2
+4 * 2
+4 * 2
+4 * 2 0 2
cob=(5)
cfi=(192)
cfn=(784392)
0x00000000003108d0'zend_string_equal_val'zend_hash_find'ZEND_FETCH_DIM_R_SPEC_TMPVAR_CV_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'ZEND_NEW_SPEC_CONST_UNUSED_HANDLER'execute_ex'zend_generator_resume'zend_generator_iterator_move_forward'zend_fe_fetch_object_helper_SPEC'execute_ex'zend_execute'zend_execute_script'php_execute_script_ex'php_execute_script'main'(below
main)'__libc_start_main@@GLIBC_2.34'(below main)'0x000000000001f540
calls=2 0x3108d0 0 
* * 42 8 0 0 0 0 0 0 0 8 0 2 2

...

fn=(784390)
0x8050c9 392 2
+2 * 2
+3 +1 2
+4 * 2 2
```

Output of the same function from another output (same run, different output
dump/part):

```
fn=(784390)
zend_string_equal_val'zend_hash_find'ZEND_FETCH_DIM_R_SPEC_TMPVAR_CV_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'ZEND_NEW_SPEC_CONST_UNUSED_HANDLER'execute_ex'zend_generator_resume'zend_generator_iterator_move_forward'zend_fe_fetch_object_helper_SPEC'execute_ex'zend_execute'zend_execute_script'php_execute_script_ex'php_execute_script'main'(below
main)'__libc_start_main@@GLIBC_2.34'(below main)'0x000000000001f540
0x8050b0 391 2
+4 * 2
+4 +1 2 2
+4 * 2
+4 * 2
+4 * 2 0 2
cob=(5)
cfi=(192)
cfn=(784392)
0x00000000003108d0'zend_string_equal_val'zend_hash_find'ZEND_FETCH_DIM_R_SPEC_TMPVAR_CV_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'zend_do_link_class'zend_bind_class_in_slot'do_bind_class'ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER'execute_ex'zend_call_function'zend_call_known_function'zend_perform_class_autoload'zend_lookup_class_ex'zend_fetch_class_by_name'ZEND_NEW_SPEC_CONST_UNUSED_HANDLER'execute_ex'zend_generator_resume'zend_generator_iterator_move_forward'zend_fe_fetch_object_helper_SPEC'execute_ex'zend_execute'zend_execute_script'php_execute_script_ex'php_execute_script'main'(below
main)'__libc_start_main@@GLIBC_2.34'(below main)'0x000000000001f540
calls=2 0x3108d0 0 
* * 42 8 0 0 0 0 0 0 0 8 0 2 2
+5 * 2
+2 * 2
+3 +1 2
+4 * 2 2
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to