From owner-freebsd-hackers Thu Nov 15 11:31:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtpproxy2.mitre.org (smtpproxy2.mitre.org [128.29.154.90]) by hub.freebsd.org (Postfix) with ESMTP id E296437B41A for ; Thu, 15 Nov 2001 11:31:12 -0800 (PST) Received: from avsrv2.mitre.org (avsrv2.mitre.org [128.29.154.4]) by smtpproxy2.mitre.org (8.11.3/8.11.3) with ESMTP id fAFJVBc03582 for ; Thu, 15 Nov 2001 14:31:11 -0500 (EST) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtpsrv2.mitre.org (8.11.3/8.11.3) with ESMTP id fAFJVAa27678 for ; Thu, 15 Nov 2001 14:31:10 -0500 (EST) Received: from dhcp-48-37.mitre.org (128.29.48.37) by mailhub2.mitre.org with SMTP id 8378179; Thu, 15 Nov 2001 14:31:08 -0500 Message-ID: <3BF4185B.35A8B872@mitre.org> Date: Thu, 15 Nov 2001 14:32:43 -0500 From: "PSI, Mike Smith" Organization: The MITRE Corporation X-Mailer: Mozilla 4.76 [en]C-20010313M (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: _init execs in middle of code Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Does anyone know exactly what _init is? An "nm" of my executable lists: 080486a8 ? _init It is the lowest numeric address (before _start and main) so I would assume it is some sort of program initialization code. But when trying to determine the cause of a kernel freeze (caused by my user app), I found that _init is being "called" after quite a bit of code has been executed. I scanned every library known to man and of course all of my objects. I cannot find any symbol reference to _init anywhere so I can only guess it is set up by the linker. HELP! My kernel freezes (every 2nd/3rd execution of the program) so I can't run the debugger on the kernel. However, the freeze condition is very repeatable (happens what appears to be the same point in the execution WHEN it happens) so if I can figure out what _init is, I may have a chance to solve this. Also if _init isn't supposed to be called during a program running, can anyone give a clue as to what stupid programming error could cause this to happen? Thanks Mike Smith (not THE Mike Smith) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message