Bug #1695

.rar browsing over SMB hangs/crashes

Added by Troed Sangberg almost 10 years ago. Updated over 9 years ago.

Status:FixedStart date:04/22/2013
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Filesystem
Target version:4.4
Found in version:4.3.179 Platform:PS3

Description

In one of the recent "testing" versions browsing of RAR archives (at least over SMB, haven't tried local) stopped working (the problem exists on at least .179). Showtime either hangs completely (quitting app three beep restarts the PS3) or crashes to XMB.

Associated revisions

Revision 3067eeb0
Added by Andreas Smas over 9 years ago

smb: Fix problem when reading after end-of-file over CIFS/SMB shares

This resulted in various hangs and OOM crashes when reading files
over CIFS/SMB

Fixes #1695

History

#1 Updated by Tony Miker almost 10 years ago

I can confirm this lockup while navigating most uncompressed RAR sets. This problem has arising some point between showtime-4.3.144-g57f67c1, which handles the same RAR sets fine, and showtime-4.3.200-g96f13d0, which is where I found the problem. The latest test build as I write this, showtime-4.3.211-g28b8529, still has the problem.

I've seen the lockup have two different results. In both cases, the navigation screen shows only the blue background with no text. In one case, the PS button remains functional. If the Quit menu is selected, the PS3 triple-beeps and restarts:

--MARK-- START
00:00:00.000: SYSTEM [INFO]:Showtime 4.3.200.g96f13 starting
(edit)
03:26:05.854: navigator [INFO]:Opening smb://192.168.0.2/Videos/test
03:26:05.913: THREADS [DEBUG]:Created thread fa scanner (0x11200de)
03:26:05.942: FA [DEBUG]:smb://192.168.0.2/Videos/test: Found 30 by directory scanning
03:26:07.590: navigator [INFO]:Opening smb://192.168.0.2/Videos/test/test.rar
03:27:57.488: XMB [INFO]:Opened
03:28:02.797: LV2 [DEBUG]:Unhandled event 0x11
03:28:02.983: THREADS [DEBUG]:Thread 0x112009e (PC:js) exiting
03:28:02.984: THREADS [DEBUG]:Waiting for thread 0x112009e
03:28:02.984: THREADS [DEBUG]:Thread 0x112009e joined
03:28:02.985: core [DEBUG]:Backend finished
03:28:02.985: core [DEBUG]:Slow shutdown hooks finished
03:28:02.986: THREADS [DEBUG]:Waiting for thread 0x1120099
03:28:02.986: THREADS [DEBUG]:Thread 0x1120099 (blobcache) exiting
03:28:02.986: THREADS [DEBUG]:Thread 0x1120099 joined
03:28:02.986: core [DEBUG]:Blobcache finished
03:28:02.989: core [DEBUG]:Metadb finished
03:28:03.034: core [DEBUG]:Showtime terminated normally
--MARK-- END

In a second case, the PS3 just crashes right away:

--MARK-- START
00:00:00.000: SYSTEM [INFO]:Showtime 4.3.200.g96f13 starting
(edit)
02:36:00.607: navigator [INFO]:Opening smb://192.168.0.2/Videos/test2
02:36:00.651: THREADS [DEBUG]:Created thread fa scanner (0x10b00d5)
02:36:00.660: FA [DEBUG]:smb://192.168.0.2/Videos/test2: Found 24 by directory scanning
02:36:01.922: navigator [INFO]:Opening smb://192.168.0.2/Videos/test2/test2.rar
02:36:07.752: PANIC [EMERG]:OOM: malloc(72)
02:36:07.761: BACKTRACE [EMERG]:0x1ca144: .nbt_async_req+0x24
02:36:07.762: BACKTRACE [EMERG]:0x1cabb4: .smb_read+0x1ac
02:36:07.762: BACKTRACE [EMERG]:0x1bf328: .fab_read+0x1e0
02:36:07.762: BACKTRACE [EMERG]:0x1d8b74: .fa_read+0x34
02:36:07.762: BACKTRACE [EMERG]:0x1c196c: .read_FILE+0xc
02:36:07.762: BACKTRACE [EMERG]:0x8799cc: .funreader+0x64
02:36:07.763: BACKTRACE [EMERG]:0x87dec4: .__srefill_r+0x104
02:36:07.763: BACKTRACE [EMERG]:0x8789b0: ._fread_r+0x128
02:36:07.763: BACKTRACE [EMERG]:0x2c366c: .mod_test+0x5c
02:36:07.764: BACKTRACE [EMERG]:0x296e98: .xmp_test_modulef+0xd0
02:36:07.764: BACKTRACE [EMERG]:0x1cf440: .fa_probe_metadata+0x90
02:36:07.764: BACKTRACE [EMERG]:0x1d1994: .analyzer+0x4cc
02:36:07.764: BACKTRACE [EMERG]:0x1d281c: .doscan+0x17c
02:36:07.764: BACKTRACE [EMERG]:0x1d2ab0: .scanner_thread+0x108
02:36:07.765: BACKTRACE [EMERG]:0x1a5620: .thread_trampoline+0x90
02:36:07.765: PANIC [EMERG]:Thread list (self=0x10b00d5)
02:36:07.765: PANIC [EMERG]:0x10b00d5: fa scanner
02:36:07.765: PANIC [EMERG]:0x10b00d4: fa scanner
02:36:07.765: PANIC [EMERG]:0x10b00bc: GLW texture loader
02:36:07.766: PANIC [EMERG]:0x10b00bb: GLW texture loader
02:36:07.766: PANIC [EMERG]:0x10b00ba: GLW texture loader
02:36:07.766: PANIC [EMERG]:0x10b00b9: GLW texture loader
02:36:07.766: PANIC [EMERG]:0x10b00b8: GLW texture loader
02:36:07.767: PANIC [EMERG]:0x10b00b7: GLW texture loader
02:36:07.767: PANIC [EMERG]:0x10b00b6: GLW font renderer
02:36:07.767: PANIC [EMERG]:0x10b00b3: SMB
02:36:07.767: PANIC [EMERG]:0x10b00b0: ssdp
02:36:07.767: PANIC [EMERG]:0x10b00af: httpsrv
02:36:07.768: PANIC [EMERG]:0x10b00ac: PC:navigator
02:36:07.768: PANIC [EMERG]:0x10b00ab: audioplayer
02:36:07.768: PANIC [EMERG]:0x10b00aa: PC:mp
02:36:07.769: PANIC [EMERG]:0x10b00a9: PC:js
02:36:07.769: PANIC [EMERG]:0x10b00a8: indexer
02:36:07.769: PANIC [EMERG]:0x10b00a7: service probe
02:36:07.769: PANIC [EMERG]:0x10b00a6: deco
02:36:07.770: PANIC [EMERG]:0x10b00a5: metadata
02:36:07.770: PANIC [EMERG]:0x10b00a4: blobcache
02:36:07.770: PANIC [EMERG]:0x10b00a3: callout
02:36:07.770: PANIC [EMERG]:0x10b00a2: PC:global
02:36:07.771: PANIC [EMERG]:0x10b00a0: main

#2 Updated by Tony Miker almost 10 years ago

Ok, I tried a local RAR set on a USB stick and it played fine. The crashes only happen over SMB.
(tested on showtime-4.3.257-geb334ca)

#3 Updated by Andreas Smas over 9 years ago

  • Status changed from New to Accepted
  • Target version set to 4.4

I think I've found the bug now. Finally...

#4 Updated by Andreas Smas over 9 years ago

  • Status changed from Accepted to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF