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:
Priority: minor Component: General
Severity: low Keywords:
Cc: Sensitive: no

Description

Revision

7666

Issue Description

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.>

Attachments (1)

oscam_bad_file_desc.log (40.2 KB ) - added by Philipp 11 years ago.

Download all attachments as: .zip

Change History (6)

by Philipp, 11 years ago

Attachment: oscam_bad_file_desc.log added

comment:1 by gf, 11 years ago

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.

comment:2 by gf, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in r7696.

comment:3 by Philipp, 11 years ago

Resolution: fixed
Status: closedreopened

@gfto

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 gf, 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 gf, 11 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r7699.

Note: See TracTickets for help on using tickets.