scp transfer causes system to freeze

Bug #40282 reported by Charles Majola
20
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I have just installed Dapper Beta on a HP 6120 with PV HT 3.0 GHz. When I try to copy a file from our server the entire system freezes and nothing responds, the only way to use it again is to press the reset button. This happens on both -386 and -686 kernels and this is a fresh install. I tried debugging methods, there doesn't seem to be any kernel oops or anything.

The command used :
#> sudo scp charles@10.0.0.2:/home/backup/data-files.tar.gz .

as soon as this runs, the system freezes.

I'll be happy to help debug this

Revision history for this message
Charles Majola (chmj) wrote :

correction: PV should be P4 with HyperThreading

Revision history for this message
Charles Majola (chmj) wrote : dmesg output

dmesg output

Revision history for this message
Charles Majola (chmj) wrote : lspci

lspci -vv output

Revision history for this message
Soren Hansen (soren) wrote : Re: scp transfer couses system to freeze

Is it only scp that does this? And does it only happen when connection to that server?

Try doing it in a console and when it crashes, do an Alt-SysRq-p. That should give you a backtrace. Try copying that backtrace here.

Revision history for this message
Carthik Sharma (carthik) wrote :

Changing to "Needs info" since some information has been requested from the reporter.

Changed in linux-meta:
status: Unconfirmed → Needs Info
Revision history for this message
Ahmed Kamal (kim0) wrote :

Happens to me too, except that my system doesnt freeze, but raher the networking subsystem becomes totally broken. Here is what happens:

1- I try to scp some tgz file to a server
2- It copies around 2% of the 250MB file (Zimbra collaboration suite)
3- It stops copying
4- I kill scp
5- Now whatever I do (ifconfig, dhclient, knetworkmanager ...) I cannot get back on the network. I get IPs, but I can't reach any other machine!! It was too weird.
6- Finally networking worked, only when I rebooted
7- BTW, I repeated the same situation again before I started doubting dapper and made the scp from Suse10

This seems really critical bug
One last thing my driver is sky2, on a toshiba A105-S361 laptop

Revision history for this message
brentdurksen (brentdurksen) wrote :

I can confirm this bug (or similar) on Toshiba M50-MX5 laptop running Dapper with latest updates installed. For me, my networking fails and my computer eventually hangs when I try to copy a large file to a remote computer using scp, or the sshfs FUSE filesystem, or Samba (to an XP box). The only keystroke that gets any response is Alt+SysRq+B.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Please get a trace from the crash by following https://wiki.ubuntu.com/DebuggingSystemCrash

brentdurksen, what kind of network device do you have? Charles seems to have:

0000:40:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 01)

Revision history for this message
brentdurksen (brentdurksen) wrote :

I can no longer reproduce this bug. I don't know if it was a recent update that fixed the problem, or something more random, but this issue is no longer affecting my machine. For the record, my ethernet controller is a Marvell Technology Group Ltd. 88E8036 Fast Ethernet Controller (rev 10)

Revision history for this message
Ben Collins (ben-collins) wrote :

More than likely, this was a sky2 issue, and if it isn't fixed yet, it will be in the next upload.

Changed in linux-source-2.6.15:
status: Needs Info → Fix Released
Revision history for this message
Charles Majola (chmj) wrote :

I still have this bug, however, instead of freezing the whole system now, it just shuts down my networking, and I have to reboot to get it running again. I'm using 686 2.6.15-22.34 . I don't know if this will help but the last entry on dmesg before the crash is "ibm_acpi: ec object not found". I'm gonna turn acpi off on next reboot and retest.

Revision history for this message
Charles Majola (chmj) wrote :

reopening

Changed in linux-source-2.6.15:
status: Fix Released → Confirmed
Revision history for this message
Charles Majola (chmj) wrote : dmesg with "noacpi"

dmesg output with "noacpi"

Revision history for this message
Charles Majola (chmj) wrote : oops screenshot

Screenshot for the kernel oops, this showed one when I tried to transfer file from console, only happened ONCE, otherwise the system becomes totaly unresponsive.

Revision history for this message
Ahmed Kamal (kim0) wrote :

Hi,
    I just faced this bug again, but not with scp, but rather with smb:/ copying from konqueror. Again, the network card became totally dead, I could not do any network related activity except after rebooting.

Note: Just noticed 2.6.15-23 is being installed on my system now. Not sure if it has this fixed or not.

Revision history for this message
pogets (pogets) wrote : dmesg-nfs

dmesg output after eth0 stops working during cp from NFS-mounted to local directory - system trace obtained with Alt+SysRq+1, Alt+SysRq+t

Revision history for this message
pogets (pogets) wrote :

In addition to above, my computer is also a toshiba laptop with Marvell 88E8036 Fast Ethernet Controller. eth0 stops working in other situations, too, but file transfer from nfs-mounted to local directory is very reproducible.

Revision history for this message
pogets (pogets) wrote :

I just wanted to mention that the network freeze upon nsf-transfer as described above still occurs with the latest kernel of today (2.6.15-23.39). In the pre-release days of Ubuntu 5.10, my LAN card was not recognised at all, and I had to build a custom kernel with the sk98lin driver, but this got fixed for the final release. Is anybody working on this bug in Dapper right now? If so, let me know if I can be of any help - in spite of having no programing and only limited linux experience.

Revision history for this message
Rodrigo Novo (rodarvus) wrote :

Searching for related messages on linux-kernel@, I found the following message (part of a larger thread):

http://marc.theaimsgroup.com/?l=linux-kernel&m=114849250712330&w=2

which leads to the following patch, applied to 2.6.17-rc5:

commit a1433ac4ab46fb23ae77804c207a1f710a7b12f1
Author: Stephen Hemminger <email address hidden>
Date: Mon May 22 12:03:42 2006 -0700

    [PATCH] sky2: fix jumbo packet support

    The truncate threshold calculation to prevent receiver from getting stuck
    was incorrect, and it didn't take into account the upper limit on bits
    in the register so the jumbo packet support was broken.

    Signed-off-by: Stephen Hemminger <email address hidden>
    Signed-off-by: Jeff Garzik <email address hidden>

Could this be related to the problem some people are having with the sky2 driver here?

(hope I'm not steping into someone elses toes here :) )

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.