Comment 5 for bug 1971114

Revision history for this message
Willem van de Velde (williamvdvelde) wrote :

Hi all,

i also ran into this bug and have solved the issue according: https://bugzilla.redhat.com/show_bug.cgi?id=1893533#c2

Debian LTO page: https://wiki.debian.org/ToolChain/LTO, mentions that you can simply disable LTO using:

export DEB_BUILD_MAINT_OPTIONS=optimize=-lto

in the debian/rules file.
So i downloaded the source package and added the flag and rebuilded the package which solves the problem for me.

Simple test case to reproduce:

apt install python3-grpcio
GRPC_VERBOSITY=debug python3
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import grpc
>>> channel = grpc.insecure_channel('127.0.0.1:1234')
^Z
[2]+ Stopped GRPC_VERBOSITY=debug python3

if you hit enter nothing appears on screen and you cannot exit the process using ctrl+c

after the rebuild of the package i get:

GRPC_VERBOSITY=debug python3
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import grpc
>>> channel = grpc.insecure_channel('127.0.0.1:1234')
D1207 09:45:38.927796848 110677 ev_posix.cc:173] Using polling engine: epollex
D1207 09:45:38.928035846 110677 lb_policy_registry.cc:39] registering LB policy factory for "grpclb"
D1207 09:45:38.928085556 110677 lb_policy_registry.cc:39] registering LB policy factory for "cds_experimental"
D1207 09:45:38.928108937 110677 lb_policy_registry.cc:39] registering LB policy factory for "eds_experimental"
D1207 09:45:38.928153489 110677 lb_policy_registry.cc:39] registering LB policy factory for "lrs_experimental"
D1207 09:45:38.928194958 110677 lb_policy_registry.cc:39] registering LB policy factory for "priority_experimental"
D1207 09:45:38.928218444 110677 lb_policy_registry.cc:39] registering LB policy factory for "weighted_target_experimental"
D1207 09:45:38.928245238 110677 lb_policy_registry.cc:39] registering LB policy factory for "xds_routing_experimental"
D1207 09:45:38.928271376 110677 lb_policy_registry.cc:39] registering LB policy factory for "pick_first"
D1207 09:45:38.928296893 110677 lb_policy_registry.cc:39] registering LB policy factory for "round_robin"
D1207 09:45:38.928327387 110677 dns_resolver_ares.cc:504] Using ares dns resolver
>>>

So can the option 'export DEB_BUILD_MAINT_OPTIONS=optimize=-lto' be added to the rules file?
Otherwise this package is not working at all.

Best regards,
Willem van de Velde