i386/144116: ld-elf.so.1 infinite loop when executed

Jozsef Kovacs jozsef.kovacs at datira.com
Fri Feb 19 22:40:02 UTC 2010


>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:


More information about the freebsd-i386 mailing list