NetBSD-Bugs archive

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

Re: lib/52401: Booting install media fails with "init died"



The following reply was made to PR lib/52401; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/52401: Booting install media fails with "init died"
Date: Fri, 14 Jul 2017 15:56:41 +0200

 --G4iJoqBmSsgzjUCe
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Fri, Jul 14, 2017 at 08:15:00AM +0000, Andreas Gustafsson wrote:
 > Since joerg's commit of 2017.07.11.15.21.36, the sparc tests on
 > babylon5.netbsd.org are failing with "init died" at the install stage:
 > 
 >   http://releng.netbsd.org/b5reports/sparc/build/2017.07.11.15.21.36/install.log
 > 
 > I am also seeing a similar issue with hpcmips (on qemu), which leads
 > me to believe the issue is not specific to sparc.  The PR category
 > "lib" is my best guess based on the files changed by the commit.
 
 At least the SPARC issue is a bug in objcopy. The attached patch is a
 workaround. You can check if the same issue is present on hpcmips by
 looking at the 'readelf -l rescue' output. If the TLS segment is
 starting at 0 with size 0, it is the culprit.
 
 Joerg
 
 --G4iJoqBmSsgzjUCe
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="crunchgen.diff"
 
 Index: crunchgen/crunchgen.c
 ===================================================================
 RCS file: /home/joerg/repo/netbsd/src/usr.bin/crunch/crunchgen/crunchgen.c,v
 retrieving revision 1.84
 diff -u -p -r1.84 crunchgen.c
 --- crunchgen/crunchgen.c	29 May 2016 16:12:58 -0000	1.84
 +++ crunchgen/crunchgen.c	14 Jul 2017 13:51:23 -0000
 @@ -958,7 +958,6 @@ top_makefile_rules(FILE *outmk)
      fprintf(outmk, "\t@[ -f ${PROG}.unstripped -a ! ${PROG} -nt ${PROG}.unstripped ] || { \\\n");
      fprintf(outmk, "\t\t${_MKSHMSG:Uecho} \"  strip \" ${PROG}; \\\n");
      fprintf(outmk, "\t\tcp ${PROG} ${PROG}.unstripped && \\\n");
 -    fprintf(outmk, "\t\t${OBJCOPY} -S -R .eh_frame -R .eh_frame_hdr -R .note -R .note.netbsd.mcmodel -R .note.netbsd.pax -R .ident -R .comment -R .copyright ${PROG} && \\\n");
      fprintf(outmk, "\t\ttouch ${PROG}.unstripped; \\\n");
      fprintf(outmk, "\t}\n");
      fprintf(outmk, "objs: $(SUBMAKE_TARGETS)\n");
 
 --G4iJoqBmSsgzjUCe--
 


Home | Main Index | Thread Index | Old Index