emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42553: closed (python-gevent is broken on i686-linux (tests fail))


From: GNU bug Tracking System
Subject: bug#42553: closed (python-gevent is broken on i686-linux (tests fail))
Date: Thu, 14 Jul 2022 02:41:02 +0000

Your message dated Wed, 13 Jul 2022 22:40:20 -0400
with message-id <87leswzaaz.fsf@gmail.com>
and subject line Re: bug#42553: python-gevent is broken on i686-linux (tests 
fail)
has caused the debbugs.gnu.org bug report #42553,
regarding python-gevent is broken on i686-linux (tests fail)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42553: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42553
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: python-gevent is broken on i686-linux (tests fail) Date: Sun, 26 Jul 2020 20:35:03 +0200
The package python-gevent doesn't build on i686-linux, the following
test failure occurs:

  ======================================================================
  FAIL: test_unlink (gevent.tests.test__core_stat.TestCoreStat)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File 
"/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/testing/errorhandler.py",
 line 47, in wrapper
      return method(self, *args, **kwargs)
    File 
"/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/testing/errorhandler.py",
 line 34, in wrapper
      return method(self, *args, **kwargs)
    File 
"/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/testing/testcase.py",
 line 182, in wrapper
      return method(self, *args, **kwargs)
    File 
"/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/tests/test__core_stat.py",
 line 114, in test_unlink
      self._check_attr('attr', True)
    File 
"/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/tests/test__core_stat.py",
 line 66, in _check_attr
      self.assertIsNone(x, name)
  AssertionError: os.stat_result(st_mode=997, st_ino=0, 
st_dev=74395714104328192, st_nlink=30000, st_uid=0, st_gid=0, 
st_size=6851593278123409408, st_atime=1595260873, st_mtime=0, st_ctime=-2) is 
not None : attr
  
  ----------------------------------------------------------------------
  Ran 48 tests in 1.238s

I have created a simple standalone script based on this test case:

import os, tempfile, gevent
fd, path = tempfile.mkstemp('.test')
os.close(fd)
hub = gevent.get_hub()
watcher = hub.loop.stat(path, interval=-1)
hub.loop.update_now()
gevent.spawn_later(0.5, os.unlink, path)
hub.wait(watcher)
print(watcher.attr)
print(watcher.prev)

After adding a (delete 'check) to python-gevent's arguments, we observe
the following:

% ./pre-inst-env guix environment --ad-hoc python python-gevent -- python3 
~/tmp/gevent-test.py
None
os.stat_result(st_mode=33152, st_ino=44162375, st_dev=2052, st_nlink=1, 
st_uid=1000, st_gid=1000, st_size=0, st_atime=1595787602, st_mtime=1595787602, 
st_ctime=1595787602)
% ./pre-inst-env guix environment --system=i686-linux --ad-hoc python 
python-gevent -- python3 ~/tmp/gevent-test.py
os.stat_result(st_mode=1000, st_ino=0, st_dev=189675956338688000, 
st_nlink=1000, st_uid=0, st_gid=0, st_size=6853855360088801280, 
st_atime=1595787555, st_mtime=0, st_ctime=-2)
os.stat_result(st_mode=33152, st_ino=2052, st_dev=2052, st_nlink=1, 
st_uid=1000, st_gid=1000, st_size=17592186044416, st_atime=1595787555, 
st_mtime=1595787555, st_ctime=0)

Namely, the i686 variant returns entirely bogus values.

I have tried reproducing this in a Guix-less environment in a Docker
container based on the i386/debian:bullseye image, but I haven't had any
luck.

Regards,
Jakub Kądziołka

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#42553: python-gevent is broken on i686-linux (tests fail) Date: Wed, 13 Jul 2022 22:40:20 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello,
>
> Jakub Kądziołka <kuba@kadziolka.net> writes:
>
>> The package python-gevent doesn't build on i686-linux, the following
>> test failure occurs:
>>
>>   ======================================================================
>>   FAIL: test_unlink (gevent.tests.test__core_stat.TestCoreStat)
>>   ----------------------------------------------------------------------
>>   Traceback (most recent call last):
>>     File 
>> "/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/testing/errorhandler.py",
>>  line 47, in wrapper
>>       return method(self, *args, **kwargs)
>>     File 
>> "/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/testing/errorhandler.py",
>>  line 34, in wrapper
>>       return method(self, *args, **kwargs)
>>     File 
>> "/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/testing/testcase.py",
>>  line 182, in wrapper
>>       return method(self, *args, **kwargs)
>>     File 
>> "/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/tests/test__core_stat.py",
>>  line 114, in test_unlink
>>       self._check_attr('attr', True)
>>     File 
>> "/tmp/guix-build-python-gevent-20.6.2.drv-0/gevent-20.6.2/build/lib.linux-i686-3.8/gevent/tests/test__core_stat.py",
>>  line 66, in _check_attr
>>       self.assertIsNone(x, name)
>>   AssertionError: os.stat_result(st_mode=997, st_ino=0, 
>> st_dev=74395714104328192, st_nlink=30000, st_uid=0, st_gid=0, 
>> st_size=6851593278123409408, st_atime=1595260873, st_mtime=0, st_ctime=-2) 
>> is not None : attr
>>   
>>   ----------------------------------------------------------------------
>>   Ran 48 tests in 1.238s
>>
>
> Just a follow-up to mention that this still occurs when building with
> --system=i686-linux, even with the recent python-gevent update to
> 20.9.0.

Finally disabled the test in 692c2ad327.

Closing.

Thanks for the report!

Maxim


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]