Re: BUG: Bad rss-counter state ...

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

 



Hey John,

On 20 Apr 2018, at 15:30, John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx> wrote:

> On 04/20/2018 03:25 PM, René Rebe wrote:
>> [    0.000258] Linux version 4.16.2-dist (root@xxxxxxxxxxxxxxxxxxxx) (gcc version 5.3.0 (GCC)) #1 SMP Tue Apr 17 08:21:44 Local time zone must be set--see zic
> 
> It *might* also be related to the toolchain.
> 
> Your version of gcc is pretty old (Debian builds the kernel with gcc-7.3.0) and
> we found many different bugs in gcc and binutils that were fixed over the time
> for SPARC. Not sure which of those fixes were backported to gcc-5.

Well, remember, I only went down with binutils / gcc versions because latest
binutils/ld segfaults linking newer glibcs:
	https://twitter.com/renebln/status/984741114757439488

#2  in bfd_malloc at ../../bfd/libbfd.c:193
#3  in _bfd_elf_strtab_finalize at ../../bfd/elf-strtab.c:368
#4  in _bfd_elf_assign_file_positions_for_non_load at ../../bfd/elf.c:6318
#5  _bfd_elf_write_object_contents at ../../bfd/elf.c:6354
#6  in bfd_close at ../../bfd/…

This is how I ended up downgrading binutils, glibc and gcc until I had a user-land
that built, … (yes, I neglected t2/sparc* support the last years, sorry for that)

> So, in case you are unable to track down the issue in the kernel, try a newer
> toolchain and the latest version of binutils (2.30 + branch updates).

Speaking of “updates”, if you have a patch for that segfault, …
But today is your lucky, as my latest financing opensource work by YouTube
videos (http://youtube.com/renerebe) shows some results, I now rebuild
latest t2/svn:HEAD toolchain and re-build the Linux kernel for you (as
the binutils/ld crash happened with glibc, I only need to toolchain for
the kernel build):

# scripts/Build-Target  -cfg sparc64 -job 0-binutils
== 13:34:33 =[0]=> Building develop/binutils [2.30 9.0-svn].
# scripts/Build-Target  -cfg sparc64 -job 0-gcc 
== 13:36:00 =[0]=> Building develop/gcc [7.3.0 9.0-svn].
# scripts/Build-Target  -cfg sparc64 -job 1-linux
== 13:42:19 =[1]=> Building base/linux [4.16.3 9.0-svn].

Waiting for the kernel to finish on my more Epyc CPU and then
rsync and reboot. So maybe less than an hour or so ;-)

	René

-- 
 ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
 http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux