On Tue, Oct 07, 2014 at 07:56:40PM +0000, Thorsten Glaser wrote: > unset x; nameref x ⇒ segfault (NULL pointer deref), except with glibc(‽)
It seems the Glibc may be impacted (at least by there on Slackware 14.1): $ mksh -c "ldd --version; echo -- ; unset x; nameref x" ldd (GNU libc) 2.17 Copyright © 2012 Free Software Foundation, Inc. Ce logiciel est libre; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donnée; tant pour des raisons COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER. Écrits par Roland McGrath et Ulrich Drepper. -- Segmentation fault And I confirm the fix fixes the segfault. :) $ mksh -c "ldd --version; echo -- ; unset x; nameref x" ldd (GNU libc) 2.17 Copyright © 2012 Free Software Foundation, Inc. Ce logiciel est libre; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donnée; tant pour des raisons COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER. Écrits par Roland McGrath et Ulrich Drepper. -- mksh: x: empty nameref target ++ Seb.
