[Bug 1971114] Re: Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

2022-06-01 Thread Gustavo Iñiguez Goya
Hi,

Any update or comment on this bug?

Thank you.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1971114

Title:
  Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1971114] Re: Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

2022-05-02 Thread Gustavo Iñiguez Goya
** Description changed:

  Hi!
  
  After the latest Ubuntu release 22.04, we've realized that the package
  python3-grpcio 1.30.2-3build6 causes [0] opensnitch to use 100% of the
  CPU [1].
  
  This problem has never occurred before, it has worked fine on previous
  versions, even with python3-grpcio 1.30.2-3 from 21.04.
  
  If I install grpcio via pip, it works fine, with latest version 1.44.x
  (>= 1.16.x and <= 1.44.0).
  
  I've tried to debug it (GRPC_VERBOSITY=debug,
  GRPC_TRACE=tcp,http,api...), but it prints nothing. Analyzing it with
  strace shows some activity, but nothing like printing continuously logs
  like it would be stucked on some operation.
  
  On a normal execution grpc.server.start() is executed and the app
  continues with other tasks, but on this case it never passes start().
  
  In fact, the basic example from the grpcio website doesn't work either,
  it also consumes 100% of the CPU:
  http://grpc.io/docs/languages/python/basics/
  
  I'm running out of ideas on how to debug this problem. Can someone help
  to identify the reason of this problem?
  
  [0] - https://github.com/evilsocket/opensnitch/
  [1] - https://github.com/evilsocket/opensnitch/issues/647
  
  --
  
  lsb_release -rd:
  
-   Description: Ubuntu Jammy Jellyfish (development branch)
+   Description: Ubuntu 22.04 LTS
Release: 22.04
  
  apt-cache policy python3-grpcio:
  
Candidate: 1.30.2-3build6
Version table:
   1.30.2-3build6 500
  
  --
  
  Steps to reproduce the problem:
  
   0. sudo apt install python3-grpcio

   1. clone grpcio basic example (  
http://grpc.io/docs/languages/python/basics/ )
   $ git clone -b v1.45.0 --depth 1 --shallow-submodules 
https://github.com/grpc/grpc
  
   2. $ cd grpc/examples/python/route_guide
  
   3. on one terminal: $python3 route_guide_server.py
   Observe that the script is taking up 100% of the CPU
   
  4. On another terminal launch the client and observe that it does nothing: $ 
python3 route_guide_client.py 
  
  The workaround installing grpcio via pip:
  
$ sudo apt install python3-pip
$ pip3 install --ignore-installed grpcio
$ python3 route_guide_server.py
(open another terminal)
$ python3 route_guide_client.py
  
  Observe that now the client is able to connect to the server and the CPU
  is not at 100%

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1971114

Title:
  Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1971114] [NEW] Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

2022-05-01 Thread Gustavo Iñiguez Goya
Public bug reported:

Hi!

After the latest Ubuntu release 22.04, we've realized that the package
python3-grpcio 1.30.2-3build6 causes [0] opensnitch to use 100% of the
CPU [1].

This problem has never occurred before, it has worked fine on previous
versions, even with python3-grpcio 1.30.2-3 from 21.04.

If I install grpcio via pip, it works fine, with latest version 1.44.x
(>= 1.16.x and <= 1.44.0).

I've tried to debug it (GRPC_VERBOSITY=debug,
GRPC_TRACE=tcp,http,api...), but it prints nothing. Analyzing it with
strace shows some activity, but nothing like printing continuously logs
like it would be stucked on some operation.

On a normal execution grpc.server.start() is executed and the app
continues with other tasks, but on this case it never passes start().

In fact, the basic example from the grpcio website doesn't work either,
it also consumes 100% of the CPU:
http://grpc.io/docs/languages/python/basics/

I'm running out of ideas on how to debug this problem. Can someone help
to identify the reason of this problem?

[0] - https://github.com/evilsocket/opensnitch/
[1] - https://github.com/evilsocket/opensnitch/issues/647

--

lsb_release -rd:

  Description: Ubuntu Jammy Jellyfish (development branch)
  Release: 22.04

apt-cache policy python3-grpcio:

  Candidate: 1.30.2-3build6
  Version table:
 1.30.2-3build6 500

--

Steps to reproduce the problem:

 0. sudo apt install python3-grpcio
  
 1. clone grpcio basic example (  http://grpc.io/docs/languages/python/basics/ )
 $ git clone -b v1.45.0 --depth 1 --shallow-submodules 
https://github.com/grpc/grpc

 2. $ cd grpc/examples/python/route_guide

 3. on one terminal: $python3 route_guide_server.py
 Observe that the script is taking up 100% of the CPU
 
4. On another terminal launch the client and observe that it does nothing: $ 
python3 route_guide_client.py 

The workaround installing grpcio via pip:

  $ sudo apt install python3-pip
  $ pip3 install --ignore-installed grpcio
  $ python3 route_guide_server.py
  (open another terminal)
  $ python3 route_guide_client.py

Observe that now the client is able to connect to the server and the CPU
is not at 100%

** Affects: grpc (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1971114

Title:
  Ubuntu 22.04 python3-grpcio causes some apps to use 100% of the CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs