FS#25536 - [dosemu] kernel string error
Attached to Project:
Community Packages
Opened by Bojan Popovic (bocke) - Friday, 12 August 2011, 14:30 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 August 2011, 09:25 GMT
Opened by Bojan Popovic (bocke) - Friday, 12 August 2011, 14:30 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 August 2011, 09:25 GMT
|
Details
Description: /src/base/init/init.c in function version_init
(line 278) makes a wrong assumption that the kernel string
is X.Y.Z. That was historicallly true, but 3.0, doesn't have
the Z, so atoi fail with a NULL pointer making dosemu
segfault.
Additional info: * package version(s) 1.4.0-3 * config and/or log files etc. A simple solution was proposed on the forum: https://bbs.archlinux.org/viewtopic.php?id=124206 Attached are the patch and changed PKGBUILD based on it. Steps to reproduce: Run dosemu on kernel 3+ |
This task depends upon
Closed by Sergej Pupykin (sergej)
Monday, 15 August 2011, 09:25 GMT
Reason for closing: Fixed
Additional comments about closing: (by removing running_kversion code)
Monday, 15 August 2011, 09:25 GMT
Reason for closing: Fixed
Additional comments about closing: (by removing running_kversion code)
$ grep -R running_kversion *
src/base/init/init.c: running_kversion = atoi(strtok(version,".")) *1000000;
src/base/init/init.c: running_kversion += atoi(strtok(NULL,".")) *1000;
src/base/init/init.c: running_kversion += atoi(strtok(NULL,"."));
src/include/emu.h:EXTERN int running_kversion INIT(0);
Anyway, it seems the patch was accepted in upstream:
http://sourceforge.net/tracker/?func=detail&atid=457449&aid=3390615&group_id=49784
Bart marked the thread as solved so I can't add your remark or ask him about that.