Bug#284611: Acknowledgement (dia segfaults on start...)

Jorgen Schaefer Jorgen Schaefer <forcer@debian.org>, 284611@bugs.debian.org
Tue, 07 Dec 2004 15:28:26 +0100


More info:
The bug doesn't show up when dia has a ~/.dia directory. Here's a
strace of the bug:

execve("/usr/bin/dia", ["dia"], [/* 26 vars */]) = 0
uname({sys="Linux", node="forcix", ...}) = 0
brk(0)                                  = 0x80ad000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe9000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libtrash/libtrash.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\21"..., 512) = 512
[...]
open("/home/forcer/.libtrash", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=662, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7387000
read(5, "INTERCEPT_UNLINK = YES\nINTERCEPT"..., 131072) = 662
read(5, "", 131072)                     = 0
close(5)                                = 0
munmap(0xb7387000, 131072)              = 0
geteuid32()                             = 1000
open("/etc/passwd", O_RDONLY)           = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
_llseek(5, 0, [0], SEEK_CUR)            = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=1080, ...}) = 0
mmap2(NULL, 1080, PROT_READ, MAP_SHARED, 5, 0) = 0xb73a6000
_llseek(5, 1080, [1080], SEEK_SET)      = 0
munmap(0xb73a6000, 1080)                = 0
close(5)                                = 0
stat64("/home/forcer/.trashcan", {st_mode=S_IFDIR|0700, st_size=3512, ...}) = 0
access("/home/forcer/.trashcan", W_OK|X_OK) = 0
lstat64(0, 0xbffff4c4)                  = -1 EFAULT (Bad address)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

My .libtrash:
INTERCEPT_UNLINK = YES
INTERCEPT_RENAME = YES
INTERCEPT_FOPEN = NO
INTERCEPT_FREOPEN = NO
INTERCEPT_OPEN = NO
  
TRASH_CAN = .trashcan

# ALLOW_DESTRUCTION or PROTECT
IN_CASE_OF_FAILURE = PROTECT

SHOULD_WARN = NO
PROTECT_TRASH = NO

IGNORE_EXTENSIONS = o;log;aux;swp
IGNORE_HIDDEN = NO
IGNORE_EDITOR_BACKUP = YES
IGNORE_EDITOR_TEMPORARY = YES
IGNORE_RE = /sarg/

LIBTRASH_CONFIG_FILE_UNREMOVABLE = YES

GLOBAL_PROTECTION = NO
TRASH_SYSTEM_ROOT = SYSTEM_ROOT

UNREMOVABLE_DIRS =
UNCOVER_DIRS =

TEMPORARY_DIRS =
USER_TEMPORARY_DIRS =
REMOVABLE_MEDIA_MOUNT_POINTS =
EXCEPTIONS = /etc/mtab;/etc/resolv.conf;/etc/adjtime;/etc/upsstatus;/etc/dhcpc

Greetings,
        -- Jorgen

-- 
Debian GNU/Linux Developer
forcer@debian.org
http://www.forcix.cx/