I just started seeing this after a dist-upgrade. Finally got a core
file out of it. The problem is that when the init script runs, $HOME
isn't set, but ivtv-tune assumes it will be.
ivtv-tune.c:
char *homedir = getenv("HOME");
char *config = (char*)malloc(strlen(homedir) + strlen("/.ivtv-tune") +
1);
It segfaults on the strlen().
My workaround in the init script:
export HOME=/root
ivtv-tune -c 3
This is easy to reproduce:
[/] # unset HOME
[/] # ivtv-tune -c 3
Segmentation fault
under GDB:
Program received signal SIGSEGV, Segmentation fault.
0xb7edec23 in strlen () from /lib/tls/i686/cmov/libc.so.6
I'm not sure if the correct behavior would be to assume / or /root as
$HOME when it's not set, or whether the program should just abort with
a more helpful message.
hope that helps,
rick
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users