Bug#758115: Disabled wait state X'32EE' on IPL of zIPL

2014-08-24 Thread Bastian Blank
On Sun, Aug 24, 2014 at 08:05:45PM +0200, Bastian Blank wrote:
> On Fri, Aug 22, 2014 at 07:21:31PM -0400, Stephen Powell wrote:
> > 32ea:   a7 f4 00 01 j   32ec 
> > 
> > 32ee:   07 07   nopr%r7
> gcc 4.9 decides that this must never happen and adds a trap in this
> location, so this a is deliberate way to stop the process.

I found the culprit: The tree-isolate-paths pass in gcc 4.9.  If I
disable this pass I get:

static inline int wait(void)
{
do {
load_wait_psw(0x010200018000ULL, 
&S390_lowcore.external_new_psw);
32d6:   e3 20 d0 00 00 04   lg  %r2,0(%r13)
32dc:   a7 39 01 b0 lghi%r3,432
32e0:   c0 e5 ff ff fb b8   brasl   %r14,2a50 
if (S390_lowcore.ext_int_code == 0x1004U)
32e6:   48 10 00 86 lh  %r1,134
32ea:   bd 13 d0 0a clm %r1,3,10(%r13)
32ee:   a7 84 00 0c je  3306 
return ETIMEOUT;
} while (S390_lowcore.ext_int_code != 0x2401U);
32f2:   48 10 00 86 lh  %r1,134
32f6:   bd 13 d0 08 clm %r1,3,8(%r13)
32fa:   a7 74 ff ee jne 32d6 

return 0;
32fe:   a7 28 00 00 lhi %r2,0
3302:   a7 f4 00 04 j   330a 

This pass seems to declare the null-pointer-access as invalid.

Bastian

-- 
In the strict scientific sense we all feed on death -- even vegetarians.
-- Spock, "Wolf in the Fold", stardate 3615.4


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140824183445.ga30...@mail.waldi.eu.org



Bug#758115: Disabled wait state X'32EE' on IPL of zIPL

2014-08-24 Thread Bastian Blank
On Sun, Aug 24, 2014 at 08:34:45PM +0200, Bastian Blank wrote:
> On Sun, Aug 24, 2014 at 08:05:45PM +0200, Bastian Blank wrote:
> > On Fri, Aug 22, 2014 at 07:21:31PM -0400, Stephen Powell wrote:
> > > 32ea:   a7 f4 00 01 j   32ec 
> > > 
> > > 32ee:   07 07   nopr%r7
> > gcc 4.9 decides that this must never happen and adds a trap in this
> > location, so this a is deliberate way to stop the process.
> I found the culprit: The tree-isolate-paths pass in gcc 4.9.  If I
> disable this pass I get:

And -fno-delete-null-pointer-checks seems to be the correct option.

Bastian

-- 
There are some things worth dying for.
-- Kirk, "Errand of Mercy", stardate 3201.7


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140824184329.gb30...@mail.waldi.eu.org



Bug#758115: Disabled wait state X'32EE' on IPL of zIPL

2014-08-24 Thread Philipp Kern
On Fri, Aug 22, 2014 at 07:21:31PM -0400, Stephen Powell wrote:
> > static inline int wait(void)
> > {
> > do {
> > load_wait_psw(0x010200018000ULL, 
> > &S390_lowcore.external_new_psw);
> > 33d0:   e3 20 d0 00 00 04   lg  %r2,0(%r13)
> > 33d6:   a7 39 01 b0 lghi%r3,432
> > 33da:   c0 e5 ff ff fc f7   brasl   %r14,2dc8 
> > if (S390_lowcore.ext_int_code == 0x1004)
> > 33e0:   e3 10 00 86 00 91   llgh%r1,134
> > 33e6:   a7 1e 10 04 chi %r1,4100
> > 33ea:   a7 74 00 06 jne 33f6 
> > 
> > 33ee:   a7 28 00 02 lhi %r2,2
> > 33f2:   a7 f4 00 08 j   3402 
> > 
> > return ETIMEOUT;
> > } while (S390_lowcore.ext_int_code != 0x2401);
> > 33f6:   a7 1e 24 01 chi %r1,9217
> > 33fa:   a7 74 ff eb jne 33d0 
> > 
> > 33fe:   a7 28 00 00 lhi %r2,0
> >
> > Would be interesting how the disassembly looks on your system.
> Indeed.  Here is what I got:
> -
> 
> static inline int wait(void)
> {
> do {
> load_wait_psw(0x010200018000ULL, 
> &S390_lowcore.external_new_psw);
> 32d6:   a7 39 01 b0 lghi%r3,432
> 32da:   e3 20 d0 00 00 04   lg  %r2,0(%r13)
> 32e0:   c0 e5 ff ff fb b8   brasl   %r14,2a50 
> if (S390_lowcore.ext_int_code == 0x1004)
> 32e6:   48 10 00 86 lh  %r1,134
> 32ea:   a7 f4 00 01 j   32ec 
> 32ee:   07 07   nopr%r7
> 
> -

With gcc-4.8:

static inline int wait(void)
{
do {
load_wait_psw(0x010200018000ULL, 
&S390_lowcore.external_new_psw);
331e:   e3 20 d0 00 00 04   lg  %r2,0(%r13)
3324:   a7 39 01 b0 lghi%r3,432
3328:   c0 e5 ff ff fb ac   brasl   %r14,2a80 
if (S390_lowcore.ext_int_code == 0x1004)
332e:   e3 10 00 86 00 91   llgh%r1,134
3334:   a7 1e 10 04 chi %r1,4100
3338:   a7 84 00 0a je  334c 
return ETIMEOUT;
} while (S390_lowcore.ext_int_code != 0x2401);
333c:   a7 1e 24 01 chi %r1,9217
3340:   a7 74 ff ef jne 331e 

return 0;
3344:   a7 28 00 00 lhi %r2,0
3348:   a7 f4 00 04 j   3350 

That does look much better for 3338, 3340, not really for 3348 (to 3350).  It
does fix the issue at hand, but it's a band-aid at most. I installed the
package on wheezy (compiled on sid) and it booted...

Kind regards
Philipp Kern


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140824184913.ga6...@hub.kern.lc



Bug#758115: marked as done (Disabled wait state X'32EE' on IPL of zIPL)

2014-08-24 Thread Debian Bug Tracking System
Your message dated Sun, 24 Aug 2014 19:04:57 +
with message-id 
and subject line Bug#758115: fixed in s390-tools 1.25.0-1
has caused the Debian Bug report #758115,
regarding Disabled wait state X'32EE' on IPL of zIPL
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
758115: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758115
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: s390-tools
Version: 1.24.1-1
Severity: critical

Justification: The entire system is unbootable

After installing s390-tools version 1.24.1-1 and re-running zipl,
a reboot of the system causes a disabled wait PSW to be loaded
during boot, with a wait state code of X'32EE', prior to the
zipl menu being written out.  The system is unbootable.  This may
be related to the "general brokenness" of C on s390x in jessie/sid.

-- 
  .''`. Stephen Powell
 : :'  :
 `. `'`
   `-
--- End Message ---
--- Begin Message ---
Source: s390-tools
Source-Version: 1.25.0-1

We believe that the bug you reported is fixed in the latest version of
s390-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 758...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Kern  (supplier of updated s390-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Sun, 24 Aug 2014 19:41:12 +0200
Source: s390-tools
Binary: s390-tools s390-tools-udeb
Architecture: source s390x
Version: 1.25.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian S/390 Team 
Changed-By: Philipp Kern 
Description:
 s390-tools - A set of fundamental utilities for Linux on S/390
 s390-tools-udeb - A set of utilities for Linux on S/390 (udeb)
Closes: 758115
Changes:
 s390-tools (1.25.0-1) unstable; urgency=medium
 .
   * New upstream release
 - Refreshed patches.
 - Dropped the backported zipl fix.
 - Build zipl's bootloader part with gcc-4.8 to sidestep miscompilation.
   (Closes: #758115)
Checksums-Sha1:
 2cf63859c2884dd448d67d308acf4cd104d60dd8 1679 s390-tools_1.25.0-1.dsc
 02ead626175a5232f9b861f3586331e6415346da 641041 s390-tools_1.25.0.orig.tar.bz2
 9e1bbd783b4508d8f18e8ecc0ed769d292d89231 12740 
s390-tools_1.25.0-1.debian.tar.xz
 71bf85d9473fa73a504292dd22f8a7a490abc48c 346542 s390-tools_1.25.0-1_s390x.deb
 663e7877051dd766ae1e5e7fe1e5283e099151de 31304 
s390-tools-udeb_1.25.0-1_s390x.udeb
Checksums-Sha256:
 9006e339cc43ea42500663fb5f4fe127585e3539671631ed6a87b05a9dad82eb 1679 
s390-tools_1.25.0-1.dsc
 3e17f10afa3d98ccee73abddb6f173ae6f87ea2ef622a86c09074db92416f357 641041 
s390-tools_1.25.0.orig.tar.bz2
 a2003898c9e247cf13e55f37cf2b37c1ba38d311a9c0186a450d9a357fb43bf8 12740 
s390-tools_1.25.0-1.debian.tar.xz
 fe004d1735c268bbfe3cfb96ff5855cc19ed8fb3ee95d38c306d352ce30e2ab6 346542 
s390-tools_1.25.0-1_s390x.deb
 ce64869f86ae4a42532a5dc62909657d5661a79e7b4d1b8eb90b7a1c55350f34 31304 
s390-tools-udeb_1.25.0-1_s390x.udeb
Files:
 15426e02555f930fa815973446b51fc4 346542 admin important 
s390-tools_1.25.0-1_s390x.deb
 3b21bdff45d4367a631e01833a295226 31304 debian-installer optional 
s390-tools-udeb_1.25.0-1_s390x.udeb
 797d10a74233adb6040fba349a4dfe34 1679 admin important s390-tools_1.25.0-1.dsc
 9a97bae58971d0c79fba49e1b4447f12 641041 admin important 
s390-tools_1.25.0.orig.tar.bz2
 efd1e161215f77d57349f069ec3764b9 12740 admin important 
s390-tools_1.25.0-1.debian.tar.xz
Package-Type: udeb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBCAAGBQJT+jQnAAoJEERuJUU10Fbsf3oH/jbzIaPrMtxtDLYq32CUHoqn
WgGjgV18z532Acv/8BKetFWZoOIHKcfkpzeg9wl2RvP7l7k1YhFpnCZw+j5AYgGM
03NICztezlk68qqk61XfwGfmoWwp9aNR4P3LgZfuWC7n8on79c4NYiMH5ETcGvnx
aNb7UvkLaOIPADL3h3BRAUhlC8ErNs+9crcBc10FXmFu/aL8JPBf9Cy833mlm5ZD
HmgojkjIwhyHeemON0srKDockaTyjllh91R0hNvQD59keU3jIPIwFaHSuB0goTje
rjEx2sy4P31f84sn3EW32c3MvRBKcQtVDuOUDKEIKVu0lTBukBENJ+kOb5vbTtQ=
=ndHC
-END PGP SIGNATURE End Message ---


Processing of s390-tools_1.25.0-1_s390x.changes

2014-08-24 Thread Debian FTP Masters
s390-tools_1.25.0-1_s390x.changes uploaded successfully to localhost
along with the files:
  s390-tools_1.25.0-1_s390x.deb
  s390-tools-udeb_1.25.0-1_s390x.udeb
  s390-tools_1.25.0-1.dsc
  s390-tools_1.25.0.orig.tar.bz2
  s390-tools_1.25.0-1.debian.tar.xz

Greetings,

Your Debian queue daemon (running on host franck.debian.org)


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1xld09-0003j3...@franck.debian.org



s390-tools_1.25.0-1_s390x.changes ACCEPTED into unstable

2014-08-24 Thread Debian FTP Masters


Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Sun, 24 Aug 2014 19:41:12 +0200
Source: s390-tools
Binary: s390-tools s390-tools-udeb
Architecture: source s390x
Version: 1.25.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian S/390 Team 
Changed-By: Philipp Kern 
Description:
 s390-tools - A set of fundamental utilities for Linux on S/390
 s390-tools-udeb - A set of utilities for Linux on S/390 (udeb)
Closes: 758115
Changes:
 s390-tools (1.25.0-1) unstable; urgency=medium
 .
   * New upstream release
 - Refreshed patches.
 - Dropped the backported zipl fix.
 - Build zipl's bootloader part with gcc-4.8 to sidestep miscompilation.
   (Closes: #758115)
Checksums-Sha1:
 2cf63859c2884dd448d67d308acf4cd104d60dd8 1679 s390-tools_1.25.0-1.dsc
 02ead626175a5232f9b861f3586331e6415346da 641041 s390-tools_1.25.0.orig.tar.bz2
 9e1bbd783b4508d8f18e8ecc0ed769d292d89231 12740 
s390-tools_1.25.0-1.debian.tar.xz
 71bf85d9473fa73a504292dd22f8a7a490abc48c 346542 s390-tools_1.25.0-1_s390x.deb
 663e7877051dd766ae1e5e7fe1e5283e099151de 31304 
s390-tools-udeb_1.25.0-1_s390x.udeb
Checksums-Sha256:
 9006e339cc43ea42500663fb5f4fe127585e3539671631ed6a87b05a9dad82eb 1679 
s390-tools_1.25.0-1.dsc
 3e17f10afa3d98ccee73abddb6f173ae6f87ea2ef622a86c09074db92416f357 641041 
s390-tools_1.25.0.orig.tar.bz2
 a2003898c9e247cf13e55f37cf2b37c1ba38d311a9c0186a450d9a357fb43bf8 12740 
s390-tools_1.25.0-1.debian.tar.xz
 fe004d1735c268bbfe3cfb96ff5855cc19ed8fb3ee95d38c306d352ce30e2ab6 346542 
s390-tools_1.25.0-1_s390x.deb
 ce64869f86ae4a42532a5dc62909657d5661a79e7b4d1b8eb90b7a1c55350f34 31304 
s390-tools-udeb_1.25.0-1_s390x.udeb
Files:
 15426e02555f930fa815973446b51fc4 346542 admin important 
s390-tools_1.25.0-1_s390x.deb
 3b21bdff45d4367a631e01833a295226 31304 debian-installer optional 
s390-tools-udeb_1.25.0-1_s390x.udeb
 797d10a74233adb6040fba349a4dfe34 1679 admin important s390-tools_1.25.0-1.dsc
 9a97bae58971d0c79fba49e1b4447f12 641041 admin important 
s390-tools_1.25.0.orig.tar.bz2
 efd1e161215f77d57349f069ec3764b9 12740 admin important 
s390-tools_1.25.0-1.debian.tar.xz
Package-Type: udeb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBCAAGBQJT+jQnAAoJEERuJUU10Fbsf3oH/jbzIaPrMtxtDLYq32CUHoqn
WgGjgV18z532Acv/8BKetFWZoOIHKcfkpzeg9wl2RvP7l7k1YhFpnCZw+j5AYgGM
03NICztezlk68qqk61XfwGfmoWwp9aNR4P3LgZfuWC7n8on79c4NYiMH5ETcGvnx
aNb7UvkLaOIPADL3h3BRAUhlC8ErNs+9crcBc10FXmFu/aL8JPBf9Cy833mlm5ZD
HmgojkjIwhyHeemON0srKDockaTyjllh91R0hNvQD59keU3jIPIwFaHSuB0goTje
rjEx2sy4P31f84sn3EW32c3MvRBKcQtVDuOUDKEIKVu0lTBukBENJ+kOb5vbTtQ=
=ndHC
-END PGP SIGNATURE-


Thank you for your contribution to Debian.


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1xld61-0004ef...@franck.debian.org