C++ reverse engineering does not work on CentOS

Please use this forum to signal bugs.
Merci d'utiliser ce forum pour signaler des bugs.

C++ reverse engineering does not work on CentOS

Postby laipu » Thu 11 Mar 2021 16:42

I installed bouml on CentOS V7.8. An error msg was shown when I tried C++ reverse:
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...

It failed to launch the folder select dialog but the C++ reverse process was still running in the background.
laipu
 
Posts: 12
Joined: Wed 19 Sep 2018 19:55

Re: C++ reverse engineering does not work on CentOS

Postby Bruno Pagès » Thu 11 Mar 2021 17:39

Can I suppose you use the Qt libs given by CentOS rather than the ones I made or you can make yourself ?

Please refer to https://bouml.fr/download.html#CentOS and take into account the caution I put in

P.S. it seems the email you given when you created your account is not valid anymore
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 689
Joined: Mon 20 Feb 2012 09:23
Location: France

Re: C++ reverse engineering does not work on CentOS

Postby laipu » Thu 11 Mar 2021 21:45

Hi Bruno:
It worked after I installed your version of Qt libs. Thanks!

However, parsing failed for some classes for no obvious reasons. One example is the following line
thread_pool* workers_pool = nullptr;

bouml detected a syntax error. Is it because it could not find other header files?

Thanks.
laipu
 
Posts: 12
Joined: Wed 19 Sep 2018 19:55

Re: C++ reverse engineering does not work on CentOS

Postby Bruno Pagès » Thu 11 Mar 2021 21:57

laipu wrote:However, parsing failed for some classes for no obvious reasons. One example is the following line
thread_pool* workers_pool = nullptr;

What is the context of that line ?
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 689
Joined: Mon 20 Feb 2012 09:23
Location: France

Re: C++ reverse engineering does not work on CentOS

Postby laipu » Fri 12 Mar 2021 01:11

It is simply a declaration of an attribute in a class.

class xyz
{
private:
thread_pool* workers_pool = nullptr;
...

};
laipu
 
Posts: 12
Joined: Wed 19 Sep 2018 19:55

Re: C++ reverse engineering does not work on CentOS

Postby Bruno Pagès » Fri 12 Mar 2021 18:14

There is no problem to C++ reverse a file containing

Code: Select all
class xyz
{
private:
thread_pool* workers_pool = nullptr;
};


placed for instance in /tmp/c.h :

Image

Done with BoUML 7.11 (current version), what version are you using ?

P.S. again please edit your profile to put a valid email, each time I answer you I get an error !
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 689
Joined: Mon 20 Feb 2012 09:23
Location: France

Re: C++ reverse engineering does not work on CentOS

Postby laipu » Fri 12 Mar 2021 19:36

I suspect the C++ reverse engine gave the wrong error message.
laipu
 
Posts: 12
Joined: Wed 19 Sep 2018 19:55

Re: C++ reverse engineering does not work on CentOS

Postby Bruno Pagès » Fri 12 Mar 2021 20:53

I suspect you use an old version, what release of BoUML are you using ?

In the older versions of C++ the initialization of a non static attribute was not possible, and then older versions of the C++ reverse refused that form producing a syntax error until I added that possibility.
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 689
Joined: Mon 20 Feb 2012 09:23
Location: France

Re: C++ reverse engineering does not work on CentOS

Postby laipu » Fri 12 Mar 2021 21:22

I am using 7.10. I will try 7.11.
laipu
 
Posts: 12
Joined: Wed 19 Sep 2018 19:55

Re: C++ reverse engineering does not work on CentOS

Postby laipu » Sat 13 Mar 2021 04:36

I tried V7.11, same result.
laipu
 
Posts: 12
Joined: Wed 19 Sep 2018 19:55

Next

Return to Bug reports / Rapports de bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron