Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18422 - dosemu segfaults
Summary: dosemu segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-29 07:11 UTC by Matteo Sasso
Modified: 2003-10-05 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
boot.log, could be interesting... (boot.log,1.18 KB, text/plain)
2003-03-29 07:47 UTC, Matteo Sasso
Details
output ot strace -f dosemu (dosemu.strace,127.84 KB, text/plain)
2003-03-29 07:51 UTC, Matteo Sasso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Sasso 2003-03-29 07:11:50 UTC
I start dosemu up and it asks me to press ENTER. When I do, it dies crying: 
/usr/bin/dosemu: line 386:  4657 Segmentation fault      $BINARY $MAINARGS 
"${par[@]}" 2>$LOG 
this happens both in terminal and in konsole. 
xdosemu has the same problem, at the same line. 
Unfortunately I haven't enough shell-scripting skills to debug this stuff, and strace 
doesn't help. 

Reproducible: Always
Steps to Reproduce:
1. $ dosemu 
Actual Results:  
BOOM! 

Expected Results:  
C:\> 

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) Processor 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 
http://212.219.56.146/sites/www.ibiblio.org/gentoo/ 
http://212.219.56.152/sites/www.ibiblio.org/gentoo/" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg 
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv gdbm berkdb slang 
readline arts bonobo svga ggi java guile postgres X sdl gpm tcpd pam libwww ssl 
python esd imlib oggvorbis qt kde motif opengl alsa canna cdr cjk dga directfb dvd 
fbcon gd -gnome gphoto2 gtk gtk2 ipv6 -ldap maildir mbox mysql nas pic ruby samba 
scanner tiff zlib flash innodb perl snmp tcltk tetex freetype" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-mcpu=athlon-tbird -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-mcpu=athlon-tbird -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-29 07:12:51 UTC
run strace dosemu

and attach the output please
Comment 2 Matteo Sasso 2003-03-29 07:47:08 UTC
Created attachment 9983 [details]
boot.log, could be interesting...
Comment 3 Matteo Sasso 2003-03-29 07:51:22 UTC
Created attachment 9984 [details]
output ot strace -f dosemu
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-04-19 09:31:40 UTC
i'm not too sure which version of dosemu you're using. can you try dosemu-1.1.4.15 that is now in portage and see if it still segfaults?

if it does, could you try lowering your CFLAGS optimisation, like -O2 ?
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-06-08 13:56:14 UTC
reassigning. you could probably close this if you want because there doesn't seem to be any more activity from the reporter.
Comment 6 Hanno Böck gentoo-dev 2003-06-08 14:07:04 UTC
To the reporter:
Do you still have this problem?
If yes, could you please try if it still occurs in dosemu 1.1.5, which has been added to portage recently?

If I don't hear from you, I'll close this bug.
Comment 7 Matteo Sasso 2003-06-09 15:46:23 UTC
I still have problems. Not the problem I described before (that one fixed itself up), 
because now dosemu starts itself quite fine. 
But it freezes after the press-F5-to-skip-autoexec line. It just stops responding. 
I guess my dosemu binaries just ain't lucky... :( 
 
Do what you like: close this bug, open another, leave it as is... 
Comment 8 Hanno Böck gentoo-dev 2003-06-12 02:17:08 UTC
Matteo: Does this still happen with version 1.1.5?
Comment 9 Hanno Böck gentoo-dev 2003-06-18 07:06:10 UTC
Matteo: is your problem probably the same as described in bug 19574 and in some comments of bug 17849?
Comment 10 Matteo Sasso 2003-06-18 09:24:55 UTC
No, it's very different since this one is a runtime problem, the others seem to be 
ebuild-related bugs. 
Ah, by the way... it changed again! (That's driving me MAD!) Now it freezes (eating 
up most of CPU) after the FreeDOS kernel banner. 
I'm sorry I haven't replied to comment #8, I must have missed it. I upgraded dosemu 
to the unstable version and the problem persists. 
The only difference is that, after the kernel banner, I read: 
C: HD1 Pri:1 CHS=    0-1-1 start =     0MB,size =  392 
...and then, silence. 
Comment 11 Matteo Sasso 2003-06-20 11:26:20 UTC
It printed: "ERROR: general protection at 0xbe1c0: 0" and crashed. 
Just few times: I cannot reproduce that reliably. 
Comment 12 Hanno Böck gentoo-dev 2003-10-05 10:00:00 UTC
can you retry with the latest version 1.1.99.1?
Comment 13 Matteo Sasso 2003-10-05 14:15:04 UTC
I'm still having more luck on unstable versions of DosEMU (1.1.5-r1 won't
compile)...
Anyway, 1.1.99.1 works great! :) Way to go!
I don't know what to do with this bug, but I think I'll change it to FIXED
since just a few people seem to be experiencing it and there's an easy workaround.
Change it back if you think that's wrong.
Thank you, bug-hunters! ;)