Bug 30438 - [display html] Assertion error in function structure creation
Summary: [display html] Assertion error in function structure creation
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gprofng (show other bugs)
Version: 2.40
: P2 normal
Target Milestone: ---
Assignee: Ruud van der Pas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-10 16:56 UTC by Ruud van der Pas
Modified: 2024-01-17 21:08 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruud van der Pas 2023-05-10 16:56:34 UTC
For a specific experiment directory, the following error is reported by "gprofng display html":

[Assertion error] get_function_info              - unexpected: number of fields = 10

This error indicates that the input data is not as expected, resulting in an assertion error. As a result, the execution terminates prematurely.
Comment 1 Sourceware Commits 2024-01-12 20:43:59 UTC
The master branch has been updated by Vladimir Mezentsev <vmezents@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cc76856b8f4e6e71f86375b16378406712352bbd

commit cc76856b8f4e6e71f86375b16378406712352bbd
Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date:   Wed Jan 10 16:44:32 2024 -0800

    gprofng: fix 3 bugzillas against gp-display-html
    
    Fix two cases where gp-display-html terminates prematurely because the
    input format is not recognized.  This problem occurs in the function
    overview and caller-callee parts of the code.
    The fix consists of new regular expressions and a different approach
    in handling the input from gp-display-text.
    Also fix a performance problem in the caller-callee part that has a
    noticeable impact on the performance for large applications.
    
    gprofng/ChangeLog
    2024-01-10  Ruud van der Pas  <ruud.vanderpas@oracle.com>
    
            PR gprofng/30438
            PR gprofng/30439
            PR gprofng/30942
            * gp-display-html/gp-display-html.in: fixes the issues.
Comment 2 Ruud van der Pas 2024-01-17 21:08:02 UTC
The fixe is in binutils 2.42.