On Fri, 20 Aug 2010 08:36:27 +0200 Julien Valroff <jul...@kirya.net> wrote:
> Le vendredi 20 août 2010 à 00:40 +0200, Stevan Bajić a écrit : > > On Thu, 19 Aug 2010 23:53:26 +0200 > > Sebastian Toepfer <sebastian.toep...@onlinehome.de> wrote: > > > > > Hi Stevan, > > > On Thu, 19 Aug 2010 23:23:14 +0200, Stevan Bajić <ste...@bajic.ch> wrote: > > > > On Thu, 19 Aug 2010 00:01:40 +0200 > > > > Sebastian Toepfer <sebastian.toep...@onlinehome.de> wrote: > > > > > > > > [...] > > > > > > > >> yes this work (i became this message). But www-data can read dspam.conf > > > >> and I only mis give permissions to dspam.d/* too:(. > > > >> > > > > I tried to give access to a user to read dspam.conf but have not given > > > him > > > > the right to read dspam.d and I can not reproduce that error on my end. > > > > With our without using Trust <someuser> in dspam.conf. How have you > > > managed > > > > to get that stack trace? Can you give me instructions that I need to > > > follow > > > > to get that stack trace? > > I have been able to reproduce it (also on Debian Lenny i386), using the > latest git (minus the latest commit in configure.ac). > > Here are the various file permissions: > www-d...@nix:~$ id > uid=33(www-data) gid=33(www-data) groupes=33(www-data),105(svn) > www-d...@nix:~$ ls -l /etc/dspam > total 188 > -rw-r--r-- 1 root root 17 aoû 18 2009 admins > -rw-r--r-- 1 root root 1453 aoû 18 2009 dspam-apache2.conf > -rw-r----- 1 dspam www-data 37019 aoû 14 14:36 dspam.conf > -rw-r----- 1 root root 36999 aoû 14 13:49 dspam.conf.back > -rw-r----- 1 dspam dspam 26930 aoû 7 07:54 dspam.conf.dpkg-dist > drwxr-xr-x 2 root root 4096 aoû 20 08:11 dspam.d > -rw-r--r-- 1 root root 943 aoû 18 14:32 dspam_notify.conf > -rw-r--r-- 1 root root 943 aoû 19 13:23 dspam_notify.conf.dpkg-dist > -rwx------ 1 dspam dspam 648 jui 31 15:04 extlookup > -rw-r--r-- 1 root root 17168 aoû 15 2009 rgb.txt > -rw-r--r-- 1 root root 564 jan 18 2010 subadmins > drwxr-xr-x 10 root root 4096 aoû 20 08:11 templates > drwxr-xr-x 2 root root 4096 aoû 20 08:11 txt > -rw-r--r-- 1 root root 7027 avr 25 16:11 webfrontend.conf > -rw-r--r-- 1 root root 6808 avr 25 15:59 webfrontend.conf.ucf-dist > -rw-r--r-- 1 root root 7027 fév 21 08:24 webfrontend.conf.ucf-old > www-d...@nix:~$ ls -l /etc/dspam/dspam.d/ > total 24 > -rw-r----- 1 dspam dspam 2494 jui 31 19:30 extlookup.conf > -rw-r----- 1 dspam dspam 2923 aoû 7 07:51 hash.conf > -rw-r----- 1 dspam dspam 2078 déc 30 2009 mysql.conf > > www-d...@nix:~$ dspam_stats > *** glibc detected *** dspam_stats: double free or corruption (!prev): > 0x0921d730 *** > ======= Backtrace: ========= > /lib/libc.so.6[0xf7602935] > /lib/libc.so.6(cfree+0x9c)[0xf76047dc] > dspam_stats(fileread+0x1f9)[0x804acb9] > dspam_stats(dirread+0xf5)[0x804aa35] > dspam_stats(fileread+0xf1)[0x804abb1] > dspam_stats(read_config+0x3b)[0x804ad9b] > dspam_stats(main+0x4e)[0x8049f3e] > /lib/libc.so.6(__libc_start_main+0xe5)[0xf75ae455] > dspam_stats[0x8049571] > [...] > > Here is the backtrace in gdb: > #0 0xf75e6556 in raise () from /lib/libc.so.6 > #1 0xf75e7d78 in abort () from /lib/libc.so.6 > #2 0xf7620b95 in __libc_message () from /lib/libc.so.6 > #3 0xf7626935 in malloc_printerr () from /lib/libc.so.6 > #4 0xf76287dc in free () from /lib/libc.so.6 > #5 0x0804acb9 in fileread (path=0x9370798 "/etc/dspam/dspam.d//hash.conf", > attrib=0xffd0ea64, num_root=0) > at ../read_config.c:186 > #6 0x0804aa35 in dirread (path=0xffd0e630 "/etc/dspam/dspam.d/", > attrib=0xffd0ea64, num_root=0) > at ../read_config.c:137 > #7 0x0804abb1 in fileread (path=0x0, attrib=0xffd0ea64, num_root=48) at > ../read_config.c:212 > #8 0x0804ad9b in read_config (path=0x0) at ../read_config.c:265 > #9 0x08049f3e in main (argc=1, argv=0xffd0eb84) at dspam_stats.c:86 > > I hope this helps. > I just can not reproduce this on my end. I don't know why? I went so far and created a www-data user and made the same permissions as you and still I don't get a crash: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= www-d...@theia /etc/mail/dspam $ id uid=1003(www-data) gid=1018(www-data) groups=1018(www-data) www-d...@theia /etc/mail/dspam $ ls -l total 80 -rw-r--r-- 1 root root 1372 Jun 9 2009 default.prefs -rw-r--r-- 1 dspam dspam 47964 Aug 20 11:10 dspam.conf drwxr-xr-x 2 dspam dspam 23 Aug 20 11:09 dspam.d -rw-r--r-- 1 root root 1697 Aug 20 00:24 mysql_objects-4.1.sql -rw-r--r-- 1 root root 1377 Aug 20 00:24 mysql_objects-space.sql -rw-r--r-- 1 root root 1531 Aug 20 00:24 mysql_objects-speed.sql -rw-r--r-- 1 root root 3208 Aug 20 00:24 mysql_purge-4.1.sql -rw-r--r-- 1 root root 2112 Aug 20 00:24 mysql_purge.sql -rw-r--r-- 1 root root 256 Aug 20 00:24 mysql_virtual_user_aliases.sql -rw-r--r-- 1 root root 260 Aug 20 00:24 mysql_virtual_users.sql drwxr-xr-x 2 root root 141 Aug 20 00:24 txt www-d...@theia /etc/mail/dspam $ cat dspam.conf | wc -l 1334 www-d...@theia /etc/mail/dspam $ ls -l dspam.d/ total 4 -rw-r----- 1 dspam dspam 2314 Aug 20 11:09 mysql.conf www-d...@theia /etc/mail/dspam $ cat dspam.d/mysql.conf | wc -l cat: dspam.d/mysql.conf: Permission denied 0 www-d...@theia /etc/mail/dspam $ dspam_stats Unable to read dspam.conf www-d...@theia /etc/mail/dspam $ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > FYI, I'll upload today updated Debian packages including a dspam-dbg > package containing the debug symbols. This will ease things in case such > things happen again in the future. > > Cheers, > Julien > > -- > Julien Valroff <jul...@kirya.net> > http://www.kirya.net > GPG key: 4096R/290D20C5 > 092F 4CB5 5F19 E006 1CFD B489 D32B 8D66 290D 20C5 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Dspam-user mailing list > Dspam-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-user ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user