Patch for mmap problem in KConfigBackEnd, Bug #72586

Waldo Bastian bastian at kde.org
Thu Jan 15 21:21:59 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu January 15 2004 14:20, Dr. Juergen Pfennig wrote:
> About the current implementation in kconfigbackend.cpp: mmap() is used
> always to read conf files. Interrestingly the author was aware of a SIGBUS
> problem and tried to recover from the SIGBUS. BUT THIS DOES NOT WORK. Maybe
> it never worked? Or maybe it's a compiler optimization problem.

Does it help if you change:
	const char *s, *eof;
to
	const char *s;
	volatile const char *eof;
?

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFABwR3N4pvrENfboIRAgZqAJ9MSVPB6mgq/t3X0ky2O7EJoNZ7WgCeLL1L
GGBRwzWGeWZkEppv8UfQhyE=
=rlbq
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list