X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Building Lua with dynamic linking on cygwin platform Date: Fri, 24 Nov 2006 16:04:01 -0500 Message-ID: <04A8B27EC3059E4CA7E3C0BEC50225AD4071A4@mailman.dataventures.local> From: "Mike Beddo" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id kAOL4ZKL009262 I tried building Lua from source by issuing "make linux". All the tests passed. But from the Lua interpreter when I "require" a shared library it appears to load the library, by Lua scripts work fine, but when I exit Lua I get a segmentation fault. Any experiences trying to build Lua on cygwin with dynamic loading enable? (and it working?) Below is the stackdump. - Mike Exception: STATUS_ACCESS_VIOLATION at eip=610C29F4 eax=186A18C0 ebx=186A18C0 ecx=61106B28 edx=00680000 esi=186A18C0 edi=186A18B8 ebp=0022CBE8 esp=0022CB90 program=C:\Documents and Settings\meb\lua-5.1.1\src\lua.exe, pid 3992, thread main cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 0022CBE8 610C29F4 (00000000, 186A18C0, 00000020, 00000000) 0022CC18 0040B343 (006801B8, 186A18C0, 00000020, 00000000) 0022CC38 0040A97A (006801B8, 00687258, 0022CC78, 0040874E) 0022CC68 00406FCB (FFFFFFFD, 00000000, 00680230, 006801B8) 0022CC88 00407196 (006801B8, 00680400, 00000000, 610049BE) 0022CCA8 00402034 (006801B8, 00401820, 0022CCD0, 00401D48) 0022CCE8 00401D8C (00000001, 6116B1F0, 00680090, 0022CC70) 0022CD98 61006148 (00000000, 0022CDD0, 610054C0, 0022CDD0) 610054C0 61004416 (0000009C, A02404C7, E8611001, FFFFFF48) 4 [main] lua 3992 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/