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

Re: Quick test on real hardware requested to test qemu



On 9/22/20 10:06 AM, John Paul Adrian Glaubitz wrote:
> On 9/22/20 5:23 PM, John Paul Adrian Glaubitz wrote:> On 9/22/20 3:27 PM, John Paul Adrian Glaubitz wrote:
>>>>> That a typical bad alignment check.  It should use __alignof__, not
>>>>> sizeof.
>>>>
>>>> Aha, I was assuming something like that already but I wasn't sure since libatomic-ops wasn't
>>>> updated for a while in Debian [1].
>>>
>>> What would be the correct check then in [1]?
>>
>> I was just re-reading the code and realized I'm dumb. Never mind.
>>
>> s/sizeof/__alignof__/ should help.
> 
> Hmm, now it fails with __alignof__():
> 
> (sid-m68k-sbuild)root@epyc:/# debfoster -f
> debfoster: /usr/include/atomic_ops/sysdeps/loadstore/atomic_load.h:31: AO_load: Assertion `((size_t)addr & (__alignof__(*addr) - 1)) == 0' failed.
> qemu: uncaught target signal 6 (Aborted) - core dumped
> Aborted
> (sid-m68k-sbuild)root@epyc:/#
> 
> Adrian
> 

On a Centris 650:

# apt-get install debfoster
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gcc-10-base libgc1 libgcc-s2
The following NEW packages will be installed:
  debfoster gcc-10-base libgc1 libgcc-s2
0 upgraded, 4 newly installed, 0 to remove and 108 not upgraded.
Need to get 494 kB of archives.
After this operation, 903 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.ports.debian.org/debian-ports sid/main m68k gcc-10-base
m68k 10.2.0-9 [199 kB]
Get:2 http://ftp.ports.debian.org/debian-ports sid/main m68k libgcc-s2
m68k 10.2.0-9 [25.6 kB]
Get:3 http://ftp.ports.debian.org/debian-ports sid/main m68k libgc1 m68k
1:8.0.4-2 [235 kB]
Get:4 http://ftp.ports.debian.org/debian-ports sid/main m68k debfoster
m68k 2.7-2.1+b1 [33.8 kB]
...
Installing debfoster had the following error:
Unpacking libgcc-s2:m68k (10.2.0-9) ...
dpkg: error processing archive
/var/cache/apt/archives/libgcc-s2_10.2.0-9_m68k.deb (--unpack):
 trying to overwrite '/lib/m68k-linux-gnu/libgcc_s.so.2', which is also
in package libgcc2:m68k 1:9.2.1-19
...

And the executable failed:

# debfoster
debfoster: /usr/include/atomic_ops/sysdeps/loadstore/atomic_load.h:31:
AO_load: Assertion `((size_t)addr & (sizeof(*addr) - 1)) == 0' failed.
Aborted


Reply to: