Opened 11 years ago
Closed 11 years ago
#2851 closed defect (fixed)
sporadic issue of bad file descriptor in log
|Reported by:||Philipp||Owned by:|
Sometimes a function will open a file that is not available.
Would be nice to expand the Code, to see which File it is.
Also its better to tell the function not to try to open a file, that is not availabe since Oscam starts.
When the issue occurs
sporadic, see log.
How the issue is reproducable
I dont know.
<Don't forget to ATTACH (NOT post here as text) a log file of oscam in debug mode (start oscam with -d255) and to remove the brackets around the fields! Otherwise, your ticket will be closed as you seem to be unable to read.>
Change History (6)
by , 11 years ago
comment:1 by , 11 years ago
comment:2 by , 11 years ago
|Status:||new → closed|
Fixed in r7696.
comment:3 by , 11 years ago
|Status:||closed → reopened|
The issue is always with # 7698 and i dont build it with SSL.
| Settings: | CONF_DIR = /var/media/ftp/uStor01/addon/oscam | CC_OPTS = -O2 -ggdb -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -DWITH_LIBUSB | LDFLAGS = -Wl,--gc-sections -DWITH_LIBUSB -Wl,-rpath,/usr/lib/freetz/ -static | LIBS = -lusb-1.0 -lrt -lpthread -ldl | Config: | Addons : WEBIF IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SERIAL CONSTCW PANDORA | Readers : WITH_CARDREADER NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT | Compiler : mipsel-linux-uclibc-gcc (GCC) 4.6.3 | Linker : collect2 version 4.6.3 (MIPSel GNU/Linux with ELF) | Binary : Distribution/oscam-1.20-unstable_svn7698-mipsel-linux-uclibc
comment:4 by , 11 years ago
There are two more places in webif that use fdopen. I'll fix them up as well, thanks for testing and reminding me.
comment:5 by , 11 years ago
|Status:||reopened → closed|
Fixed in r7699.
It is not "a file" this is fdreopen call in webif. It reports bad descriptor since the client was gone (closed the connection) before the webif had a chance to get it.