Bug 417853

Summary: pure-ftpd segfaults when file is uploaded
Product: [openSUSE] openSUSE 11.0 Reporter: Parameshwara Bhat <peebhat>
Component: OtherAssignee: Hendrik Vogelsang <hvogel>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Parameshwara Bhat 2008-08-16 23:29:15 UTC
I had setup ftpd through yast and was sure it was exactly as in kde-3.5 partition.But I could not scan and send to my laptop from Office network printer.I went back to KDE 3.5 and it was working there.

I enabled logs and checked in the logs to find it was segfaulting.I tried to install the older version with OS10.3,but the dependency problems did not let me.After creating symlinks,OS11.0 would still not let me install.I managed to install with '--no-deps' option to rpm.There it was,working again!
Comment 1 Cristian Rodriguez 2008-08-17 03:26:27 UTC
I have serious difficulties trying to understand your report, can you explain more clearly what you mean with

"I tried to
install the older version with OS10.3,but the dependency problems did not let
me."

what dependency problems exactly ?

"After creating symlinks,OS11.0 would still not let me install."

That was it, if you create symlinks to workaround a problem , then you messed it, what you symlinked specifically ?  no, you should not do that, unless you are a unix wizard level 10 in which case, you wont either ;-) in the 99% of the cases, it is wrong =)





Comment 2 Parameshwara Bhat 2008-08-17 07:10:09 UTC
The tone of your comment suggests you are thinking the segfault is the result of 'symlinking and forcing installation'. If that is so,you are mistaken.The segfault is what happens with the default version of pure-ftpd-1.0.21-145.1-i586.rpm coming default with OS11.0.Look below.
Jun 30 05:54:57 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection from 192.168.1.200
Jun 30 05:54:57 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user logged in
Jun 30 05:54:58 linux-ect8 kernel: pure-ftpd[3675]: segfault at bf3d5e30 ip 0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection from 192.168.1.200
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user logged in
Jun 30 05:54:58 linux-ect8 kernel: pure-ftpd[3676]: segfault at bf3d5e30 ip 0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection from 192.168.1.200
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user logged in
Jun 30 05:54:58 linux-ect8 kernel: pure-ftpd[3677]: segfault at bf3d5e30 ip 0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]
Jun 30 05:54:59 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection from 192.168.1.200
Jun 30 05:54:59 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user logged in
Jun 30 05:54:59 linux-ect8 kernel: pure-ftpd[3678]: segfault at bf3d5e30 ip 0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]

Here the IP 192.168.1.200 belongs to the network printer.

For long,I put up with it hoping some update would fix it.When I did not see that happen and switching between OS11.0 and OS 10.3 became a big pain in the ass,I hit upon downgrading.But pure-ftpd-1.0.21-145.1 has a dependency on openldap2-client-2.4.9-7.1 which provides,
liblber.2.4.so.2
libldap.2.4.so.2
To downgrade I need ,
liblber.2.3.so.0
libldap.23.so.0
If i downgrade openldap2-client-2.4.9-7.1,lot of other pacakges depending upon this would also fail.So,what to do?I symlinked liblber.2.4.so.2 to liblber.2.3.so.0.Ditto with libldap. No,that would not still satisfy.This time I ran rpm with '--oldpackage --nodeps' option.It installed and to tell you I am running now pure-ftpd-1.0.21-84-i586  successfully.

While listening with respect to your sermoning on symlinking,look here,
pbhat@nishanth:/var/log> ls -l /usr/lib/liblbe*
lrwxrwxrwx 1 root root    29 2008-08-11 17:36 /usr/lib/liblber-2.3.so.0 -> /usr/lib/liblber-2.4.so.2.0.5
lrwxrwxrwx 1 root root    20 2008-06-24 20:22 /usr/lib/liblber-2.4.so.2 -> liblber-2.4.so.2.0.5
-rwxr-xr-x 1 root root 56336 2008-06-07 03:31 /usr/lib/liblber-2.4.so.2.0.5
pbhat@nishanth:/var/log> ls -l /usr/lib/libldap*
lrwxrwxrwx 1 root root     29 2008-08-11 17:37 /usr/lib/libldap-2.3.so.0 -> /usr/lib/libldap-2.4.so.2.0.5
lrwxrwxrwx 1 root root     20 2008-06-24 20:22 /usr/lib/libldap-2.4.so.2 -> libldap-2.4.so.2.0.5
-rwxr-xr-x 1 root root 259012 2008-06-07 03:31 /usr/lib/libldap-2.4.so.2.0.5
lrwxrwxrwx 1 root root     19 2008-06-24 20:22 /usr/lib/libldapcpp.so.0 -> libldapcpp.so.0.0.5
-rwxr-xr-x 1 root root 244188 2008-06-07 04:14 /usr/lib/libldapcpp.so.0.0.5
lrwxrwxrwx 1 root root     22 2008-06-24 20:22 /usr/lib/libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.0.5
-rwxr-xr-x 1 root root 280744 2008-06-07 03:31 /usr/lib/libldap_r-2.4.so.2.0.5

Can you see the plethora of symlinks?Logically a higher version of library would not break a function provided in a lower version just to keep compatibility.So,symlinking a higher version to a lower version name should still work.I tell you man,it worked for me many times.

Have I made the situation clear to you?
Comment 3 Cristian Rodriguez 2008-08-17 21:04:59 UTC
(In reply to comment #2 from Parameshwara Bhat)

> Can you see the plethora of symlinks?Logically a higher version of library
> would not break a function provided in a lower version just to keep
> compatibility.So,symlinking a higher version to a lower version name should
> still work.

No it wont, libraries change SONAME for a reason, it is not just an arbitrary "let's bump version number to annoy users" , but because they are belived to be API/ABI incompatible.


Henne, what you think.. this report looks INVALID to me.
 
Comment 4 Parameshwara Bhat 2008-08-18 15:36:15 UTC
Rodriguez,

This is what happens when pure-ftpd-1.0.21-145.1-i586.rpm coming default with OS11.0 runs and you try to upload a file.

"   Jun 30 05:54:57 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection
from 192.168.1.200
Jun 30 05:54:57 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user
logged in
Jun 30 05:54:58 linux-ect8 kernel: pure-ftpd[3675]: segfault at bf3d5e30 ip
0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection
from 192.168.1.200
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user
logged in
Jun 30 05:54:58 linux-ect8 kernel: pure-ftpd[3676]: segfault at bf3d5e30 ip
0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection
from 192.168.1.200
Jun 30 05:54:58 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user
logged in
Jun 30 05:54:58 linux-ect8 kernel: pure-ftpd[3677]: segfault at bf3d5e30 ip
0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000]
Jun 30 05:54:59 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] New connection
from 192.168.1.200
Jun 30 05:54:59 linux-ect8 pure-ftpd: (?@192.168.1.200) [INFO] Anonymous user
logged in
Jun 30 05:54:59 linux-ect8 kernel: pure-ftpd[3678]: segfault at bf3d5e30 ip
0805423d sp bf3d5e30 error 6 in pure-ftpd[8048000+22000] "

Now,you can re-create it if only you install " pure-ftpd-1.0.21-145.1-i586.rpm " and connect to it on localhost and try to upload a file.The logs show you this segfault.

THIS IS INVALID ?
Comment 5 Hendrik Vogelsang 2008-08-19 08:16:07 UTC

*** This bug has been marked as a duplicate of bug 407363 ***