segfault with backtrace and information
Hello.
Quoted 1 line · Peter Jay Salzman
#0
0x080aeda4inreal_yylex(yylval=0x4d003b) at lexer.l:707
[]
Quoted 2 lines
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
Quoted 2 lines
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.
Quoted 1 line
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?