Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Date: Tue, 15 Jan 2002 14:57:35 +0300 From: egor duda X-Mailer: The Bat! (v1.53 RC/4) Reply-To: egor duda Organization: deo X-Priority: 3 (Normal) Message-ID: <192230668183.20020115145735@logos-m.ru> To: Jonathan Kamens CC: cygwin-developers AT cygwin DOT com Subject: Re: Am I using dumper.exe correctly? In-Reply-To: <20020114214629.22496.qmail@lizard.curl.com> References: <20020110214350 DOT 30413 DOT qmail AT lizard DOT curl DOT com> <380850877 DOT 20020111104002 AT logos-m DOT ru> <20020114175405 DOT 9881 DOT qmail AT lizard DOT curl DOT com> <96167013072 DOT 20020114211637 AT logos-m DOT ru> <20020114214629 DOT 22496 DOT qmail AT lizard DOT curl DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! Tuesday, 15 January, 2002 Jonathan Kamens jik AT curl DOT com wrote: >> Date: Mon, 14 Jan 2002 21:16:37 +0300 >> From: egor duda >> Hmm. Does resulting core dump "looks" ok? it should be elf file of >> size 1MB or more. JK> VOLTRON$ ls -l *.core JK> -rw-r--r-- 1 jik Administ 1993904 Jan 14 12:49 a.exe.core JK> -rw-r--r-- 1 jik Administ 4855584 Jan 14 12:50 gdb.exe.core JK> VOLTRON$ file *.core JK> a.exe.core: ELF 32-bit LSB core file of 'n' (signal 6750329), Intel 80386, version 1 (SYSV) JK> gdb.exe.core: ELF 32-bit LSB core file of 'n' (signal 6750329), Intel 80386, version 1 (SYSV) JK> VOLTRON$ >> Do i remember correctly that gdb crashes even on coredump created >> by simple { int* x=0; *x=1; } program? JK> Yes. the core file is ok. the crash was triggered by combination of two factors: bug in gdb, which following patch is supposed to fix, and change in size of CONTEXT structure. gdb and dumper must be built with common set of headers in order to interoperate. can you please try this patch, rebuild gdb, ensuring that it uses latest w32api headers, and give it a try? 2002-01-15 Egor Duda * elf.c (elfcore_grok_win32pstatus): Copy only as much information as possible to avoid stack corruption. Index: elf.c =================================================================== RCS file: /cvs/uberbaum/bfd/elf.c,v retrieving revision 1.121 diff -u -p -2 -r1.121 elf.c --- bfd/elf.c 2002/01/10 23:05:21 1.121 +++ bfd/elf.c 2002/01/15 11:50:18 @@ -6261,5 +6261,5 @@ elfcore_grok_win32pstatus (abfd, note) return true; - memcpy (&pstatus, note->descdata, note->descsz); + memcpy (&pstatus, note->descdata, sizeof (pstatus)); switch (pstatus.data_type) Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19