Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#32982 - [dosemu] CPU family 16 or 17 not supported (Unknown CPU type)

Attached to Project: Community Packages
Opened by Hellyna Ng (hellyna) - Thursday, 06 December 2012, 02:44 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 10 December 2012, 10:21 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

dosemu crashes with the following output when run:

$ >>dosemu
ERROR: Unknown CPU type!
CONF: emulated CPU forced down to real CPU: 386
Cannot execute CPUEMU without TSC counter
ERROR: cpu exception in dosemu code outside of VM86()!
trapno: 0x00 errorcode: 0x00000000 cr2: 0x00000000
eip: 0x004701fb esp: 0x7fff2784eda0 eflags: 0x00010256
cs: 0x0033 ds: 0x0000 es: 0x0000 ss: 0x002b
Division by zero
ERROR: leavedos called recursively, forgetting the graceful exit!
EMERGENCY JUMP 4!!!
Killed

Additional info:
* package version(s): 1.4.0-8
* /proc/cpuinfo output:

$ >>cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 4
model name : AMD Phenom(tm) II X4 940 Processor
stepping : 2
microcode : 0x10000c6
cpu MHz : 800.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv svm_lock nrip_save
bogomips : 6803.40
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 10 December 2012, 10:21 GMT
Reason for closing:  Fixed
Additional comments about closing:  thanks
Comment by Hellyna Ng (hellyna) - Thursday, 06 December 2012, 02:50 GMT
This bug is a clone of debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524395

I can only assume that is because the upstream refused to fix it. The bug was filed in 2010. Related upstream bug: http://sourceforge.net/p/dosemu/bugs/418/

This bug can be easily fixed by applying the patch attached to this comment.

And, obviously, this bug is only reproducible on machines running cpu families > 15. Not sure about the i686 arch, but this bug happens in x86_64.
Comment by Hellyna Ng (hellyna) - Thursday, 06 December 2012, 03:03 GMT
Updated PKGBUILD attached.
   PKGBUILD (1.8 KiB)

Loading...