Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

false-positive visibility change #97

Open
rhaschke opened this issue Aug 30, 2019 · 1 comment
Open

false-positive visibility change #97

rhaschke opened this issue Aug 30, 2019 · 1 comment

Comments

@rhaschke
Copy link

I observe a false-positive visibility change, although the corresponding source file didn't even changed between dumps. The report as well as old and new dumps can be found in this gist.
The source repository is: https://github.com/ros-visualization/rviz

Change Effect
This method became private. Recompilation of a client program may be broken with the error message: '_ZN4rviz15PanelDockWidget7setIconE5QIcon' is private.
This method became private. Recompilation of a client program may be broken with the error message: '_ZN4rviz15PanelDockWidget14setWindowTitleE7QString' is private.

The offending methods are still public in the source. Do you have any idea, what happens here?

@rhaschke
Copy link
Author

I think, the culprit is the abi-dumper as a diff of both dumps reveals that these method are considered private in the newer version:

$ grep -B 4 -A 15 "'_ZN4rviz15PanelDockWidget7setIconE5QIcon'," *.dump
new.dump-                            '545060' => {
new.dump-                                          'Class' => '545034',
new.dump-                                          'Header' => 'panel_dock_widget.h',
new.dump-                                          'Line' => '57',
new.dump:                                          'MnglName' => '_ZN4rviz15PanelDockWidget7setIconE5QIcon',
new.dump-                                          'Param' => {
new.dump-                                                       '0' => {
new.dump-                                                                'name' => 'this',
new.dump-                                                                'type' => '582584'
new.dump-                                                              },
new.dump-                                                       '1' => {
new.dump-                                                                'name' => 'icon',
new.dump-                                                                'type' => '546535'
new.dump-                                                              }
new.dump-                                                     },
new.dump-                                          'Private' => 1,
new.dump-                                          'Return' => '1',
new.dump-                                          'ShortName' => 'setIcon',
new.dump-                                          'Source' => 'panel_dock_widget.cpp',
new.dump-                                          'SourceLine' => '83'
--
old.dump-                            '10985604' => {
old.dump-                                            'Class' => '10985311',
old.dump-                                            'Header' => 'panel_dock_widget.h',
old.dump-                                            'Line' => '57',
old.dump:                                            'MnglName' => '_ZN4rviz15PanelDockWidget7setIconE5QIcon',
old.dump-                                            'Param' => {
old.dump-                                                         '0' => {
old.dump-                                                                  'name' => 'this',
old.dump-                                                                  'type' => '10989931'
old.dump-                                                                },
old.dump-                                                         '1' => {
old.dump-                                                                  'name' => 'icon',
old.dump-                                                                  'type' => '535896'
old.dump-                                                                }
old.dump-                                                       },
old.dump-                                            'Return' => '1',
old.dump-                                            'ShortName' => 'setIcon',
old.dump-                                            'Source' => 'panel_dock_widget.cpp',
old.dump-                                            'SourceLine' => '83'
old.dump-                                          },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant