On Tue, 2011-05-17 at 01:03 +0200, Thomas Schwinge wrote: > > uschar *slash; > > struct stat statbuf; > > if (filename == NULL) > goto out; > ... > out: > > *error = string_sprintf("%s does not exist", filename); > > DEBUG(D_route) debug_printf("%s\n", *error); > > return FILE_NOT_EXIST; > > }
Sorry Thomas, wrong track. The main problem with this program is that it is not debuggable. Even with successful builds with gcc-4.4 -O2 or gcc-4.6 -O0 the faulty memory addresses pops up: (gcc-4.4 -O2) No breakpoints seems to work! (gdb) run --version Starting program: exim4-4.76/build-tree/build-exim4-daemon-light/exim --version Cannot access memory at address 0xfffea2ed (6 times) [New Thread 1111.5] Cannot access memory at address 0xfffea2ed (4 times) Exim version 4.76 #1 built 17-May-2011 09:44:57 Copyright (c) University of Cambridge, 1995 - 2007 Berkeley DB: Berkeley DB 5.1.25: (January 28, 2011) Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch nis nis0 passwd Authenticators: cram_md5 plaintext Routers: accept dnslookup ipliteral manualroute queryprogram redirect Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp Fixed never_users: 0 Size of off_t: 8 Cannot access memory at address 0xfffea2ed (3 times) Configuration file is /var/lib/exim4/config.autogenerated Program exited normally.