Bugzilla – Bug 118819
lineakconfig is broken
Last modified: 2005-12-05 15:49:13 UTC
At least on AMD64, first start of lineakconfig does not work. brabec@hammer:~> lineakconfig *** buffer overflow detected ***: lineakconfig terminated Aborted Note: this bug is not related to my last change - forcing of GTK2. But I was not able to check whether my last change works because of this bug.
(gdb) r Starting program: /usr/bin/lineakconfig *** buffer overflow detected ***: /usr/bin/lineakconfig terminated Program received signal SIGABRT, Aborted. 0x00002aaaab97143a in raise () from /lib64/tls/libc.so.6 (gdb) bt #0 0x00002aaaab97143a in raise () from /lib64/tls/libc.so.6 #1 0x00002aaaab972870 in abort () from /lib64/tls/libc.so.6 #2 0x00002aaaab9a706e in __libc_message () from /lib64/tls/libc.so.6 #3 0x00002aaaaba119ef in __chk_fail () from /lib64/tls/libc.so.6 #4 0x00002aaaaba10fd9 in _IO_str_chk_overflow () from /lib64/tls/libc.so.6 #5 0x00002aaaab9aa0c6 in _IO_default_xsputn_internal () from /lib64/tls/libc.so.6 #6 0x00002aaaab986537 in vfprintf () from /lib64/tls/libc.so.6 #7 0x00002aaaaba11089 in __vsprintf_chk () from /lib64/tls/libc.so.6 #8 0x00002aaaaba10fc0 in __sprintf_chk () from /lib64/tls/libc.so.6 #9 0x0000000000408bd5 in parsedeffile () at support.c:750 #10 0x000000000040a557 in main (argc=1, argv=0x7fffffcfddb8) at lineakconfig.c:53 code is: dfile = malloc( (strlen(CONFDIR) + 1 + strlen("/etc/") +1) * sizeof(char)); sprintf(dfile,"%s/%s", "/etc/", DEFFILE); probably CONFDIR should be DEFFILE in line 1, or the other way round
I updated the whole lineak-bunch today to the new version. A fix for the problem above was added during this operation. After autobuild has crunched the package please update. Even with this fix I had one segfault in lineakd itself, but it was not reproduceable. Lineakd might be dropped for 10.2 and replaced by ial & co