Topic: Erreur de segmentation sur Fedora 9
Avec la version 1.0 ou le CVS d'aujourd'hui, sur une Fedora 9 :
$ MySecureShell
Erreur de segmentation
Avec strace :
$ strace MySecureShell 2>&1 | tail
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80c2000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 3595
close(3) = 0
munmap(0xb80c2000, 4096) = 0
open("/etc/ssh/sftp_config", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3687, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80c2000
read(3, "## MySecureShell Configuration F"..., 4096) = 3687
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Dans GDB:
(gdb) bt
#0 0x002daf65 in fgets () from /lib/libc.so.6
#1 0x0804b680 in load_config_file ()
#2 0x0804bbbb in load_config ()
#3 0x0804a564 in main ()
SELinux est désactivé, mon fichier de conf est le fichier de conf par défaut. Dites-moi comment je pourrais vous aider à débugguer ça
Merci !