Package: python3-grpcio
Version: 1.51.1-6
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected], [email protected]

Dear Maintainer,

this is only reproducible on armhf systems. I am pretty sure, that it
was introduced by the t64 transition.

   * What led up to the situation?

     $ python3
     >>> import grpc
     >>> g = grpc.server(thread_pool=0)
     Eerror:localtime.000000004  801227 time_posix.cc:150]                  
assertion failed: ts.tv_nsec >= 0 && ts.tv_nsec < 1e9
     qemu: uncaught target signal 6 (Aborted) - core dumped
     Aborted

     This also happens on real armhf hardware, but can be easily
     reproduced in an armhf chroot using qemu-user.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     in d/rules '-DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF' is defined for
     the parts controlled by CMake. It changes that clock_gettime glibc
     call is used instead of calling the clock_gettime syscall of the
     kernel directly with syscall().

     However 'export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = 1'  is not
     specified in d/rules which would result in the similar define while
     building the cython/python binding.

   * What was the outcome of this action?

     Adding 'export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = 1' to
     d/rules make the binding usable again on armhf:

     $ python3
     >>> import grpc
     >>> g = grpc.server(thread_pool=0)
     >>>
diff -Nru grpc-1.59.5/debian/changelog grpc-1.59.5/debian/changelog
--- grpc-1.59.5/debian/changelog        2024-08-10 07:13:45.000000000 +0200
+++ grpc-1.59.5/debian/changelog        2026-11-25 09:42:41.000000000 +0100
@@ -1,3 +1,10 @@
+grpc (1.59.5-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Disable glibc backward compatibility for python bindings as well. 
+
+ -- Manuel Traut <[email protected]>  Wed, 25 Nov 2026 09:42:41 +0100
+
 grpc (1.59.5-1) experimental; urgency=medium
 
   * New major upstream release.
diff -Nru grpc-1.59.5/debian/rules grpc-1.59.5/debian/rules
--- grpc-1.59.5/debian/rules    2024-08-10 07:13:45.000000000 +0200
+++ grpc-1.59.5/debian/rules    2026-11-25 09:39:38.000000000 +0100
@@ -21,6 +21,7 @@
 export GRPC_PYTHON_BUILD_SYSTEM_CARES = 1
 export GRPC_PYTHON_BUILD_SYSTEM_RE2 = 1
 export GRPC_PYTHON_ENABLE_DOCUMENTATION_BUILD = 1
+export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = 1
 
 # Ruby
 export GEM2DEB_TEST_RUNNER = --check-dependencies

Reply via email to