Opened 15 years ago

Closed 15 years ago

#4847 closed Bug report (fixed)

program crashes

Reported by: maciek_s Owned by:
Priority: normal Component: FileZilla Client
Keywords: maciek Cc:
Component version: Operating system type: Windows
Operating system version: XP 32

Description

FileZilla Client crashes after program starting. The last version that works is 3.2.6.1

Attachments (8)

ce3b_appcompat.txt (10.1 KB ) - added by maciek_s 15 years ago.
capture.pcap (5.0 KB ) - added by maciek_s 15 years ago.
capture_2.pcap (4.7 KB ) - added by maciek_s 15 years ago.
filezilla.log (1.5 KB ) - added by maciek_s 15 years ago.
log.txt (27.3 KB ) - added by maciek_s 15 years ago.
filezilla.2.log (40.6 KB ) - added by maciek_s 15 years ago.
filezilla3.log (40.8 KB ) - added by maciek_s 15 years ago.
filezilla4.log (45.7 KB ) - added by maciek_s 15 years ago.

Download all attachments as: .zip

Change History (41)

by maciek_s, 15 years ago

Attachment: ce3b_appcompat.txt added

comment:1 by maciek_s, 15 years ago

Summary: maciek_s@o2.plprogram crashes

comment:2 by Tim Kosse, 15 years ago

Status: newmoreinfo

Please try a fresh, fully patched Windows installation with no third-party software installed.

in reply to:  2 ; comment:3 by maciek_s, 15 years ago

Status: moreinfonew

I'm sorry, I can't reinstall system on my computer.
Replying to codesquid:

Please try a fresh, fully patched Windows installation with no third-party software installed.

in reply to:  3 comment:4 by maciek_s, 15 years ago

FileZilla Client 3.2.8.1 now works, but crashes, when I try to "Check for updates..."

comment:5 by Tim Kosse, 15 years ago

Status: newmoreinfo

I think there's something wrong with your system.

Try stopping, or better uninstalling, all third-party programs.

comment:6 by maciek_s, 15 years ago

Status: moreinfonew

I started Windows in "safe mode". Problem still exists - program works fine, but crashes, when I try to check for updates.

comment:7 by Tim Kosse, 15 years ago

Status: newmoreinfo

Please install Wireshark and create a package dump when trying to start FileZilla.

It'll contain all data FileZilla sends and receives during the update check. That should help to narrow the problem down.

by maciek_s, 15 years ago

Attachment: capture.pcap added

comment:8 by maciek_s, 15 years ago

Status: moreinfonew

I hope, I've made it properly :-)

comment:9 by Tim Kosse, 15 years ago

Status: newmoreinfo

Which language are you using FileZilla in? What happens if you delete the locales subdirectory in FileZilla's installation directory?

in reply to:  9 comment:10 by maciek_s, 15 years ago

Status: moreinfonew

I'm using polish language. After deleting locales subdirectory FileZilla starts in english. The situation is the same - program works fine until I try to check for updates.

by maciek_s, 15 years ago

Attachment: capture_2.pcap added

comment:11 by Tim Kosse, 15 years ago

Status: newmoreinfo

Sadly not helpful, nothing unusual in the package dump, everything looks in order.

Please try the following:

  • Set debug level to 4 on the settings dialog of FileZilla
  • Enable logging to file on the logging page in the settings dialog
  • Restart FileZilla
  • Make it crash

Please attach the resulting log file.

by maciek_s, 15 years ago

Attachment: filezilla.log added

comment:12 by maciek_s, 15 years ago

Status: moreinfonew

I've made something else. I've deleted FileZilla folder from Application data folder. After this program crashes immediately after starting.

comment:13 by Tim Kosse, 15 years ago

Status: newmoreinfo

I wonder whether it might not be a bug in FileZilla but perhaps in GnuTLS, the used TLS library.

Please try the following:

c:
cd \gnutls\bin
gnutls-cli -d 99 -p 443 update.filezilla-project.org > log.txt 2>&1

If it doesn't crash you can abort it with ctrl+c after about a minute or so. In either case, please attach log.txt to this ticket.

by maciek_s, 15 years ago

Attachment: log.txt added

comment:14 by maciek_s, 15 years ago

Status: moreinfonew

It didn't crash.

comment:15 by Tim Kosse, 15 years ago

I'm becoming quite clueless.

comment:16 by maciek_s, 15 years ago

I use FileZilla on notebook HP Mini 2133. I'll try FileZilla on another computer (my brother has the same model).

comment:17 by Tim Kosse, 15 years ago

Status: newmoreinfo

Please try this special build of FileZilla, it includes A LOT of additional logging: http://filezilla-project.org/codesquid/temp/filezilla.exe

Since you deleted your %APPDATA%\FileZilla directory you might be unable to set debug level to 4 and to enable logging to file, in that case please copy http://filezilla-project.org/codesquid/temp/filezilla.xml to %APPDATA%\FileZilla\

by maciek_s, 15 years ago

Attachment: filezilla.2.log added

comment:18 by maciek_s, 15 years ago

Status: moreinfonew

Here you are.

comment:19 by Tim Kosse, 15 years ago

Status: newmoreinfo

That proves that the issue is in fact something caused by GnuTLS or its dependencies, though I'm not sure yet why the gnutls-cli tool is not affected.

The log shows that it crashes somewhere inside the code that prepares and sends the TLS handshake finished confirmation, though it's not clear if it's the preparing or the sending that fails.

I've sprinkled GnuTLS with some additional debug code that will reveal this. Please make http://filezilla-project.org/codesquid/temp/filezilla2.exe crash and attach another log, it'll contain some additional information.

I really hope the problem is in fact in GnuTLS and not further down in libgcrypt, that would be extremely inconvenient.

by maciek_s, 15 years ago

Attachment: filezilla3.log added

comment:20 by maciek_s, 15 years ago

Status: moreinfonew

Here you are.

comment:21 by Tim Kosse, 15 years ago

Status: newmoreinfo

Getting closer. Next round: http://filezilla-project.org/codesquid/temp/filezilla3.exe

Also, I've noticed that HP Mini 2133 uses a very exotic processor, some Via C7-M [*] which appears to have some built-in crypto capabilities. Please try http://filezilla-project.org/codesquid/temp/hwcrypto_test.exe to check if it's used internally by libgcrypt.

[*] Remark: Personally I'll never ever buy anything from Via again, all their stuff I've ever used had severe stability issues.

comment:22 by maciek_s, 15 years ago

Status: moreinfonew

After runing hwcrypto_test.exe I've got "Result: 0 00000000"

by maciek_s, 15 years ago

Attachment: filezilla4.log added

comment:23 by maciek_s, 15 years ago

I've installed FileZilla on another HP Mini 2133. There is the same problem.

comment:24 by Tim Kosse, 15 years ago

I suspect that the CPU instruction set might not be fully compatible to 586. Tomorrow I'll create a few builds of FileZilla trying out various compiler flags for the contained libgcrypt library.

comment:26 by maciek_s, 15 years ago

Status: moreinfonew

Two of them work and don't crash:
filezilla-nopadlock.exe
filezilla-noasm-nopadlock.exe

comment:27 by Tim Kosse, 15 years ago

Status: newmoreinfo

Great, at least there's a working workaround.

Now that Padlock support in libgrypt has been identified as the culprit, I could search the web for similar reports. I've found a related bug report: https://bugs.launchpad.net/ubuntu/+source/libgcrypt11/+bug/389053

In the hopes that this is the very same problem I've applied the provided patch and created another build. Please try http://filezilla-project.org/codesquid/temp/filezilla-padlockfix.exe

comment:28 by maciek_s, 15 years ago

Status: moreinfonew

This build doesn't work at all and take 99% of procesor usage in task manager.

comment:29 by Tim Kosse, 15 years ago

Status: newmoreinfo

Oops, looks like some other unfinished code I've been working on accidentally made it into that build.
Please try http://filezilla-project.org/codesquid/temp/filezilla-padlockfix2.exe instead.

comment:30 by maciek_s, 15 years ago

Status: moreinfonew

This build crashes, like normal version (when trying to check for updates).

comment:31 by Tim Kosse, 15 years ago

I think I'll just leave padlock support permanently disabled for the next version of FileZilla.

Without Padlock support TLS performance on Via CPUs will suffer, but then again right now it doesn't work at all.

comment:32 by maciek_s, 15 years ago

OK. Thank you! :-)

comment:33 by maciek_s, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.