From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: segfault with backtrace and information Date: Mon, 09 Dec 2002 20:34:49 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <3DF4D439.9040108@yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Hello. Peter Jay Salzman wrote: > #0 0x080aeda4 in real_yylex (yylval=0x4d003b) at lexer.l:707 [] > Cannot access memory at address 0x4d003b > i'm a bit confused at this point. it looks like the address returned > by strdup is no good, but i have no idea how that can be. It is rather an yylval points to a wrong place (0x4d003b), so dereferencing it fails. Try: (gdb) b real_yylex (gdb) r Breakpoint 1, real_yylex (yylval=0xbfffee78) at lex.yy.c:1598 1598 if ( yy_init ) (gdb) bt > this seems to be a problem with > this machine only, but nothing about this looks arch dependent to me. Maybe optimisation? What gcc do you have? Try different versions like 2.91 (aka kgcc if it is a RedHat distro), 2.95 or 3.x. > any suggestions? Try running dosemu under a memory debugger (I use njamd for that) - maybe it is a memory corruption somewhere. Or maybe upgrade your bison/flex?