Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2010 22:31:11 GMT
From:      Jozsef Kovacs <jozsef.kovacs@datira.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/144116: ld-elf.so.1 infinite loop when executed
Message-ID:  <201002192231.o1JMVBtC063034@www.freebsd.org>
Resent-Message-ID: <201002192240.o1JMe1Wg089686@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         144116
>Category:       i386
>Synopsis:       ld-elf.so.1 infinite loop when executed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 19 22:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jozsef Kovacs
>Release:        RELENG_7_2
>Organization:
Datira Ltd
>Environment:
FreeBSD kalman 7.2-RELEASE-p6 FreeBSD 7.2-RELEASE-p6 #0: Wed Feb  3 02:39:55 CET 2010     root@:/usr/obj/usr/src/sys/DATIRA  i386

>Description:
/libexec/ld-elf.so.1 when directly executed keeps loading itself over and over, causing 100% cpu load.
Compiling the library with -DDEBUG revealed that the following segment loops:
---
relocating "/usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1"
doing copy relocations
initializing key program variables
initializing thread locks
_rtld_thread_init: done
transferring control to program entry point = 0x15b0
/libexec/ld-elf.so.1 is initialized, base address = 0x0
RTLD dynamic = 0x270a0
RTLD pltgot  = 0x0
processing main program's program header
Ignoring d_tag 1879048186 = 0x6ffffffa
lm_init("(null)")
loading LD_PRELOAD libraries
loading needed objects
checking for required versions
initializing initial thread local storage
---

Expected behaviour:
$ /libexec/ld-elf.so.1
bash: /libexec/ld-elf.so.1: cannot execute binary file
Confirmed on a RELENG_6_3 machine


>How-To-Repeat:
execute /libexec/ld-elf.so.1
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002192231.o1JMVBtC063034>