Bug #2541

ST can't start in busy SMB environment (regression)

Added by Leonid Protasov over 5 years ago. Updated over 5 years ago.

Status:FixedStart date:02/05/2015
Priority:ImmediateDue date:
Assignee:Andreas Smas% Done:

100%

Category:General
Target version:4.10
Found in version:4.9.134 Platform:Linux

Description

[email protected]:~/showtime# ./build.linux/showtime
SYSTEM          [INFO ]: Showtime 4.9.134.g5a71b starting. 1 CPU cores. Systemtype:Linux/x86_64 OS:Ubuntu 12.04.5 LTS
blobcache       [INFO ]: Initialized: 2881 items consuming 153,10 MB (out of maximum 1000,00 MB) on disk in /root/.cache/showtime/bc2
SQLITE          [INFO ]: Recovered 2831 frames from WAL file /root/.hts/showtime/metadb/meta.db-wal (code: 0x0)
libav           [INFO ]: Lavf56.1.0, Lavc56.1.0, Lavu54.3.0
i18n            [INFO ]: Unloading language definition
TCP             [INFO ]: http-server: Listening on port 42000
UDP             [INFO ]: nmb: Listening on port 50199
UDP             [INFO ]: bittorrent udp tracker: Listening on port 58018
CRASH           [EMERG]: Signal: 11 in thread tasks - PRG: Showtime (4.9.134.g5a71b) EXE: /root/showtime/build.linux/showtime, CWD: /root/showtime  
Spotify         [INFO ]: Using library version 12.1.51.g86c92b43 Release Linux-x86_64 
navigator       [INFO ]: Opening page:home
CRASH           [EMERG]: Fault address ??:0 (nil) (Address not mapped)
CRASH           [EMERG]: Loaded libraries: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libpulse.so.0 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 /lib/x86_64-linux-gnu/libglib-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 /lib/x86_64-linux-gnu/librt.so.1 /usr/lib/libwebkitgtk-1.0.so.0 /usr/lib/x86_64-linux-gnu/libXss.so.1 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 /usr/lib/x86_64-linux-gnu/libXv.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-
CRASH           [EMERG]: Register dump [23]: 00007f75c8004000 0000000000000001 0000000000000000 0000000000000000 0000000000000000 00007f75af7fd9c0 0000000000000000 0000000000000003 0000000000000000 00007f75af7fc560 00007f75af7fc540 0000000000000000 0000000000000000 0000000000000000 00007f75c8000028 00007f75af7fc4b0 00000000005b61a4 0000000000010202 0000000000000033 0000000000000004 000000000000000e 0000000000000000 0000000000000000 
CRASH           [EMERG]: STACKTRACE (10 frames)
CRASH           [EMERG]: /root/showtime/src/arch/linux/linux_trap.c:273 0x4117f0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
CRASH           [EMERG]: /root/showtime/src/arch/linux/linux_trap.c:268 0x560cdd
GLW             [INFO ]: OpenGL Renderer: 'Gallium 0.4 on llvmpipe (LLVM 3.2, 128 bits)' by 'VMware, Inc.'
CRASH           [EMERG]: ??:0 0x7f75ee168cb0
CRASH           [EMERG]: /root/showtime/src/fileaccess/smb/fa_nativesmb.c:2757 0x5b61a4
CRASH           [EMERG]: /root/showtime/src/fileaccess/smb/fa_nativesmb.c:2874 0x5b9624
CRASH           [EMERG]: /root/showtime/src/fileaccess/smb/nmb.c:163 0x5b9cb0
CRASH           [EMERG]: /root/showtime/src/task.c:70 0x6203f8
CRASH           [EMERG]: /root/showtime/src/arch/posix/posix_threads.c:166 0x562850
CRASH           [EMERG]: ??:0 0x7f75ee160e9a
CRASH           [EMERG]: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)

Associated revisions

Revision eca05fea
Added by Andreas Smas over 5 years ago

smb: Forgot a NULL check

refs #2541

Change included in version 4.9.142

History

#1 Updated by Leonid Protasov over 5 years ago

make clean
make OPTFLAGS=-Os
[email protected]:~/showtime# gdb --args build.linux/showtime -d
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /root/showtime/build.linux/showtime...done.
(gdb) run
Starting program: /root/showtime/build.linux/showtime -d
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe5db0700 (LWP 55666)]
[New Thread 0x7fffe55af700 (LWP 55668)]
SYSTEM          [INFO ]: Showtime 4.9.141.g77558 starting. 1 CPU cores. Systemtype:Linux/x86_64 OS:Ubuntu 12.04.5 LTS
[New Thread 0x7fffdfdf5700 (LWP 55669)]
[New Thread 0x7fffdf5f4700 (LWP 55670)]
[New Thread 0x7fffdedf3700 (LWP 55671)]
[New Thread 0x7fffde5f2700 (LWP 55672)]
core            [DEBUG]: Loading resources from ./
blobcache       [DEBUG]: Cache magic 0x62630207 2881 items
blobcache       [INFO ]: Initialized: 2881 items consuming 153,10 MB (out of maximum 1000,00 MB) on disk in /root/.cache/showtime/bc2
[New Thread 0x7fffdddf1700 (LWP 55673)]
DB              [DEBUG]: Opened database /root/.hts/showtime/kvstore/kvstore.db pages: free=0 total=783
DB              [DEBUG]: kvstore: At current version 2
SQLITE          [INFO ]: Recovered 2831 frames from WAL file /root/.hts/showtime/metadb/meta.db-wal (code: 0x0)
DB              [DEBUG]: Opened database /root/.hts/showtime/metadb/meta.db pages: free=2777 total=2831
DB              [DEBUG]: metadb: At current version 17
[New Thread 0x7fffdd5f0700 (LWP 55674)]
libav           [INFO ]: Lavf56.1.0, Lavc56.1.0, Lavu54.3.0
Freetype        [DEBUG]: Loaded font family='liberation sans' fullname='liberation sans regular' style='Regular' from .//resources/fonts/liberation/LiberationSans-Regular.ttf domain:0
[New Thread 0x7fffdcdef700 (LWP 55675)]
playqueue       [DEBUG]: Shuffle set to off
playqueue       [DEBUG]: Repeat set to off
[New Thread 0x7fffd3fff700 (LWP 55676)]
playqueue       [DEBUG]: Nothing on queue, waiting
[New Thread 0x7fffd37fe700 (LWP 55677)]
[New Thread 0x7fffd2ffd700 (LWP 55678)]
PA              [DEBUG]: Headerversion: 1.1.0, library: 1.1.0
[New Thread 0x7fffd27fc700 (LWP 55679)]
[New Thread 0x7fffd1ffb700 (LWP 55680)]
i18n            [INFO ]: Unloading language definition
i18n            [DEBUG]: Default charset is auto
[New Thread 0x7fffd17fa700 (LWP 55681)]
AVAHI           [DEBUG]: Client state change 101
[New Thread 0x7fffd0ff9700 (LWP 55682)]
SYSTEM          [DEBUG]: Hashed device ID: d27f6b7505d384e764c245145052130d
spotify         [DEBUG]: Loaded from /root/showtime/build.linux/libspotify-12.1.51-Linux-x86_64-release/lib/libspotify.so.12
Spotify         [INFO ]: Using library version 12.1.51.g86c92b43 Release Linux-x86_64 
plugins         [DEBUG]: Loading repo from http://showtime.lonelycoder.com/plugins/plugins-v1.json
TCP             [INFO ]: http-server: Listening on port 42000
[New Thread 0x7fffb7ffe700 (LWP 55685)]
SSDP            [DEBUG]: Running
UDP             [INFO ]: nmb: Listening on port 57228
UDP             [INFO ]: bittorrent udp tracker: Listening on port 36420
[New Thread 0x7fffb77fd700 (LWP 55688)]
[New Thread 0x7fffb6ffc700 (LWP 55691)]
navigator       [INFO ]: Opening page:home
[New Thread 0x7fffb57f9700 (LWP 55694)]
[New Thread 0x7fffb5ffa700 (LWP 55693)]
[New Thread 0x7fffb67fb700 (LWP 55692)]
[New Thread 0x7fffb4ff8700 (LWP 55695)]
[Thread 0x7fffb57f9700 (LWP 55694) exited]
[New Thread 0x7fffb47f7700 (LWP 55696)]
[Thread 0x7fffb5ffa700 (LWP 55693) exited]
[New Thread 0x7fffb5ffa700 (LWP 55697)]
[New Thread 0x7fffb57f9700 (LWP 55698)]
[New Thread 0x7fffb3ff6700 (LWP 55699)]
[New Thread 0x7fffb37f5700 (LWP 55700)]
[New Thread 0x7fffb2ff4700 (LWP 55701)]
[New Thread 0x7fffb27f3700 (LWP 55702)]
HTTP            [DEBUG]: Connected to showtime.lonelycoder.com:80 (id=1)
HTTP            [DEBUG]: > GET /plugins/plugins-v1.json?betapassword=lprot&betapassword=buksa&betapassword=xperience HTTP/1.1
HTTP            [DEBUG]: > User-Agent: Showtime Linux/x86_64 4.9.141.g77558
HTTP            [DEBUG]: > Connection: keep-alive
HTTP            [DEBUG]: > Accept: */*
HTTP            [DEBUG]: > Accept-Encoding: gzip
HTTP            [DEBUG]: > Host: showtime.lonelycoder.com
HTTP            [DEBUG]: http://showtime.lonelycoder.com/plugins/plugins-v1.json?betapassword=lprot&betapassword=buksa&betapassword=xperience: Response:
[Thread 0x7fffb37f5700 (LWP 55700) exited]
[New Thread 0x7fffb1ff2700 (LWP 55703)]
[Thread 0x7fffb2ff4700 (LWP 55701) exited]
[Thread 0x7fffb27f3700 (LWP 55702) exited]
[Thread 0x7fffb3ff6700 (LWP 55699) exited]
[Thread 0x7fffb6ffc700 (LWP 55691) exited]
[Thread 0x7fffb5ffa700 (LWP 55697) exited]
[Thread 0x7fffb1ff2700 (LWP 55703) exited]
[Thread 0x7fffb77fd700 (LWP 55688) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb47f7700 (LWP 55696)]
smb_NetServerEnum2 (ct=0x0, errbuf=0x7fffb47f6558 "Access denied", errlen=256)
    at /root/showtime/src/fileaccess/smb/fa_nativesmb.c:2761
2761      cifs_connection_t *cc = ct->ct_cc;
(gdb) 

#2 Updated by Leonid Protasov over 5 years ago

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

Fixed in 4.9.142.

Also available in: Atom PDF