|
From: Dennis L. <pla...@in...> - 2003-10-14 21:42:50
|
> I think you need to define in what way it failed to work... Did it > crash? Did valgrind assert? Did it run but report no errors? > > Tom It dsimply does not run under valgrind. A "valgrind sendmail" does not give any of the usual valgrind output, even options like -dD, -q etc. do not change anything. Looking at the speed, sendmail does really run under the real cpu, not under valgrindized one. Dennis |
|
From: Dennis L. <pla...@in...> - 2003-10-14 22:22:17
|
> > It dsimply does not run under valgrind. A "valgrind sendmail" does not
> > give any of the usual valgrind output, even options like -dD, -q etc.
> > do
> > not change anything. Looking at the speed, sendmail does really run
> > under the real cpu, not under valgrindized one.
>
> I guess static linking is to blame... seg FAQ #5.
>
> N
I don't think that sendmail is statically linked :
kermit:~ # ldd /usr/sbin/sendmail
libdb-4.0.so => /usr/lib/libdb-4.0.so (0x40019000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400bf000)
libresolv.so.2 => /lib/libresolv.so.2 (0x400d5000)
libldap.so.2 => /usr/lib/libldap.so.2 (0x400e7000)
liblber.so.2 => /usr/lib/liblber.so.2 (0x40115000)
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40121000)
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40151000)
libsasl.so.7 => /usr/lib/libsasl.so.7 (0x40227000)
libc.so.6 => /lib/i686/libc.so.6 (0x4023a000)
libdl.so.2 => /lib/libdl.so.2 (0x40358000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4035c000)
libpam.so.0 => /lib/libpam.so.0 (0x4038d000)
libgssapi.so.1 => /usr/lib/libgssapi.so.1 (0x40395000)
libkrb5.so.17 => /usr/lib/libkrb5.so.17 (0x403a0000)
libasn1.so.5 => /usr/lib/libasn1.so.5 (0x403d7000)
libroken.so.9 => /usr/lib/libroken.so.9 (0x403f9000)
libcom_err.so.1 => /usr/lib/libcom_err.so.1 (0x4040b000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4040f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Perhaps sendmail has some protection agains preloading libraries ?? But
how does it work, or how can I disable it for my sendmail to debug it ?
greets
Dennis
|
|
From: Avery P. <ape...@ni...> - 2003-10-14 22:28:48
|
On Wed, Oct 15, 2003 at 12:22:13AM +0200, Dennis Lubert wrote: > Perhaps sendmail has some protection agains preloading libraries ?? But > how does it work, or how can I disable it for my sendmail to debug it ? Aha, setuid programs can't have preloads. chmod u-s /usr/sbin/sendmail. Have fun, Avery |
|
From: Steve G <lin...@ya...> - 2003-10-14 23:15:43
|
>setuid programs can't have preloads.
That should be easy to detect at startup in valgrind proper.
stat() should have it in the st_mode variable:
stat(execname, &st);
if (st.st_mode & S_ISUID) {
puts("setuid programs cannot have LD_PRELOAD
libraries...aborting.");
exit(1);
}
-Steve Grubb
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
|
|
From: Dennis L. <pla...@in...> - 2003-10-14 23:36:04
|
< At 00:28 15.10.2003, you wrote: < On Wed, Oct 15, 2003 at 12:22:13AM +0200, Dennis Lubert wrote: < < > Perhaps sendmail has some protection agains preloading libraries ?? < > But < > how does it work, or how can I disable it for my sendmail to debug it < > ? < < Aha, setuid programs can't have preloads. chmod u-s /usr/sbin/sendmail. < < Have fun, < < Avery < Ah, yes, that solved the thing, sendmail was installed suid. There are always some things to learn left ;) Perhaps the valgrind startup script should issue a warning if stat -c %A <EXECUTABLE> | grep s gives some output ?? greets Dennis |
|
From: Nicholas N. <nj...@ca...> - 2003-10-15 20:17:50
|
On Wed, 15 Oct 2003, Dennis Lubert wrote: > Perhaps the valgrind startup script should issue a warning if stat -c > %A <EXECUTABLE> | grep s gives some output ?? Dirk Mueller committed such a change to CVS. Thanks for pointing this out. N |
|
From: Russ F. <rus...@ho...> - 2003-10-15 12:01:40
|
I move that this be added to the FAQ. It might not be frequent, but it's a biggie when it happens. >< > Perhaps sendmail has some protection agains preloading libraries ?? >< > But >< > how does it work, or how can I disable it for my sendmail to debug it >< > ? >< >< Aha, setuid programs can't have preloads. chmod u-s /usr/sbin/sendmail. >< _________________________________________________________________ Never get a busy signal because you are always connected with high-speed Internet access. Click here to comparison-shop providers. https://broadband.msn.com |
|
From: Nicholas N. <nj...@ca...> - 2003-10-14 21:47:42
|
On Tue, 14 Oct 2003, Dennis Lubert wrote: > It dsimply does not run under valgrind. A "valgrind sendmail" does not > give any of the usual valgrind output, even options like -dD, -q etc. do > not change anything. Looking at the speed, sendmail does really run > under the real cpu, not under valgrindized one. I guess static linking is to blame... seg FAQ #5. N |