NetBSD-Bugs archive

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

Re: port-hppa/56118: sporadic app crashes in HPPA -current



The following reply was made to PR port-hppa/56118; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-hppa/56118: sporadic app crashes in HPPA -current
Date: Sat, 17 Jul 2021 03:44:25 +0000

 On Fri, Jul 16, 2021 at 07:45:01AM +0000, Nick Hudson wrote:
  >  The bash problem is kinda interesting. bash provides its own getenv and
  >  this is being used by early initialization code in libc / jemalloc when
  >  it does getenv("MALLOC_CONF") before _start has been called in the main
  >  program. _start sets the dp register which needs to contain the GOT of
  >  the main program...
  >  
  >  This diff allows bash to start.
  >  
  >  I'm still thinking about if it's the right thing to do.
 
 as I said in chat I kinda think it is -- while according to standards
 randomly replacing bits of libc is undefined, according to tradition
 it's supposed to work, so if we're going to be calling getenv before
 _start that initialization had better happen before _start too. :-|
 
 I would mark it as ugly and explain why it needs to be there, and
 maybe revisit it if the situation improves at some point (not that
 this is too likely) but go ahead.
 
 (also because gnats sucks I put a decoded copy here:
 https://www.netbsd.org/~dholland/gnatsblobs/56118/diff)
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index