delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/07/09:17:47

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3875F60E.D0321237@repas-aeg.de>
Date: Fri, 07 Jan 2000 15:19:58 +0100
From: "Dr. Schroeder, Klaus" <schroeder AT repas-aeg DOT de>
Organization: repas AEG Software
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: problem with JAVA and global constructors in dll
X-MIME-Autoconverted: from 8bit to quoted-printable by tux.astberlin.de id PAA23226
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id JAA13736

Hi,

I'm running a Java-application using native IO-routines from my.dll,
which I built using the rules outlined by Mumit Kahn in his
java-jni-examples. The example runs just fine including the calling of
the global constructor, but using my own functions crashes with a
segmentation violation in ioctl.

Using gdb and a cygwin1.dll-Version with symbols I found, that ioctl
uses a global instance of class locker defined in debug.cc (locker __tn
NO_COPY;).  This instance apparently was not initalized, which caused
the segmentation violation.

My Question: Why are the global constructors of cygwin1.dll not called,
when used in the above fashion? Is there a way to call them explicitly?

Additional information:

I'm running cygwin B20.1 on
WinNT Ver 4.0 build 1381 Service Pack 5

The IO-Routines which cause the Java-Crash run correctly from a
C++-application built with cygwin on the same system.

Klaus

------------------------------------------------------------------
 Dr. Klaus Schröder          E-Mail : schroeder AT repas-aeg DOT de
 repas AEG Software GmbH     Phone  : +49 30 89714 871
 Hohenzollerndamm 150        Fax    : +49 30 89714 990
 D 14199 Berlin
------------------------------------------------------------------



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019