slaanesh wrote:
> I need help with dosemu-1.0.1-10. I installed dosemu, freedos and xdos
Thing to try: install latest version dosemu-1.0.2.1
> on my computer. I set in dosemu.conf line "$_hdimage = bootdir" where i
> put dos files ( /var/lib/dosemu/bootdir). However when i type dos or
> xdos on the console i've got repply "Segmentation fault (core dumped)"
Even if you have incorrect configuration, it shouldn't crash so early (if it
dumps core, I suppose the crash occured before SEGV hanler was set).
> and i can't fix it.
But you can do backtrace using gdb with generated core file and make a
bugreport (recompile dosemu with debug info at first).
Also try the attached patch. I am using it to fix the same problem.
--- src/base/init/config.c Sun Oct 15 23:55:41 2000
+++ src/base/init/config.c Mon Aug 13 19:52:58 2001
@@ -628,7 +628,10 @@
char *p = getenv("DOSEMU_OPTIONS");
if (p) {
memset(usedoptions,0,256);
- do usedoptions[(unsigned char)*p] = *p; while (*++p);
+ while (*p) {
+ usedoptions[(unsigned char)*p] = *p;
+ p++;
+ }
}
}