Opened 9 years ago

Closed 9 years ago

#4039 closed defect (fixed)

OScam crashed after restart on the Webinterface

Reported by: Starlord Owned by:
Priority: critical Component: Webinterface
Severity: high Keywords:
Cc: Sensitive: no

Description

Revision

<10076> + <10077> + <10078>

Issue Description

<If I restart my OScam per Webinterface, OScam crashed.>

When the issue occurs

<The problem shows up since revision 10075>

How the issue is reproducable

<Restart Oscam per Webinterface>

<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 (5)

OScam10071.log (454.1 KB ) - added by Starlord 9 years ago.
Logfile OSCam Rev. 10071 Start - Restart - Shutdown
OScam10077.log (204.4 KB ) - added by Starlord 9 years ago.
Logfile OSCam Rev. 10077 Start - Restart - Crash
crash_reboot_10078.log (8.1 KB ) - added by genox 9 years ago.
gdb log crash reboot
oscam_restart_crash_10076_gdb.log (17.6 KB ) - added by genox 9 years ago.
Logfile OSCam Rev. 10076 Compiling options + gdb logs
10079_restart_httppicon_r1.patch (2.5 KB ) - added by ultra47 9 years ago.
please try this one

Download all attachments as: .zip

Change History (27)

comment:1 by Gorgone Impertinence, 9 years ago

Resolution: invalid
Status: newclosed

no log no help

by Starlord, 9 years ago

Attachment: OScam10071.log added

Logfile OSCam Rev. 10071 Start - Restart - Shutdown

by Starlord, 9 years ago

Attachment: OScam10077.log added

Logfile OSCam Rev. 10077 Start - Restart - Crash

comment:2 by Starlord, 9 years ago

Resolution: invalid
Status: closedreopened

Sorry,

i have added 2 log files.

  • Oscam Rev. 10071 Restart works.
  • Oscam Rev. 10077 Restart not working.

When i compare the two logfiles i see on the end follow result:

Oscam 10071:
2014/12/11 02:15:35 0 s userdb 4 accounts freed
2014/12/11 02:15:35 0 s readerdb 3 readers freed
2014/12/11 02:15:35 0 s cardserver down

Oscam 10077:
2014/12/11 02:24:09 0 s userdb 4 accounts freed
2014/12/11 02:24:09 0 s readerdb 3 readers freed

In the log file from Oscam 10077 i missing the line "cardserver down"

comment:3 by ultra47, 9 years ago

Hi starlord,
have you try a other Verision between 10071 and 10075?
The only change with 10075 was a button in script.html

by genox, 9 years ago

Attachment: crash_reboot_10078.log added

gdb log crash reboot

comment:4 by genox, 9 years ago

Hello, gdb logs added, hope it helps to find the issue.

Regards

comment:5 by kraftzwerg, 9 years ago

Well, its to late for logs now, because they were overwritten.

But maybe i had the same Problem in an VU+ Zero with VTI Image and Oscam 10076
I restarted OScam from the Webinterface. After a few secconds, while oscam did not came back, i checked the receiver menu, and saw oscam did not run.
I restarted it from the receiver menu and everything was fine.
That only happened once, and until now i can call restart from the webif without any problems.

I hope that helped

in reply to:  5 comment:6 by genox, 9 years ago

Replying to kraftzwerg:

Well, its to late for logs now, because they were overwritten.

But maybe i had the same Problem in an VU+ Zero with VTI Image and Oscam 10076
I restarted OScam from the Webinterface. After a few secconds, while oscam did not came back, i checked the receiver menu, and saw oscam did not run.
I restarted it from the receiver menu and everything was fine.
That only happened once, and until now i can call restart from the webif without any problems.

I hope that helped

uhm what you mean it's late for the logs, i've compiled the latest relase of oscam and had the same issue, the gdb logs refer to rev. 10078

regards

comment:7 by ultra47, 9 years ago

Hi genox,
can please test if they caused by 10073 or 10074 or before

regards

in reply to:  7 comment:8 by genox, 9 years ago

Replying to ultra47:

Hi genox,
can please test if they caused by 10073 or 10074 or before

regards

+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 10073 target: i486-linux-gnu-ssl
| Tools:
| CROSS =
| CC = gcc
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -DWITH_SSL=1 -DWITH_LIBCRYPTO=1
| LDFLAGS = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1
| LIBS = -lssl -lcrypto -lpthread -ldl -lrt
| UseFlags = USE_SSL=1 USE_LIBCRYPTO=1
| Config:
| Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_SSL IRDETO_GUESSING CS_ANTICASC WITH_DEBUG WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE
| Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
| CardRdrs :
| Compiler : gcc (Debian 4.7.2-5) 4.7.2
| Binary : Distribution/oscam-1.20-unstable_svn10073-i486-linux-gnu-ssl
+-------------------------------------------------------------------------------

Rev. svn10073 working fine, compiling 10074...brb

in reply to:  7 comment:9 by genox, 9 years ago

Replying to ultra47:

Hi genox,
can please test if they caused by 10073 or 10074 or before

regards

ok, the problem seems rev 10076

tryed from rev10070 to rev10075 every relase it's fine.

Running gdb right now i'll post the logs

edit:

Logs added, hope it helps let me know if you need some other testings

Thanks, Regards

Last edited 9 years ago by genox (previous) (diff)

by genox, 9 years ago

Logfile OSCam Rev. 10076 Compiling options + gdb logs

comment:10 by Starlord, 9 years ago

I have test multiple revisions. The result is:

Oscam Rev 10071 Restart ok
Oscam Rev 10072 Restart ok
Oscam Rev 10073 Restart ok
Oscam Rev 10074 Restart ok, but another bug! no picons
Oscam Rev 10075 Restart ok, but another bug! no picons
Oscam Rev 10076 Restart not ok
Oscam Rev 10077 Restart not ok
Oscam Rev 10078 Restart not ok

comment:11 by hapeba, 9 years ago

Oscam only crashed with "enabled Log" ... that's the problem

comment:12 by Starlord, 9 years ago

I have find a workarround:

when i add "httppiconpath" in "oscam.conf" the restart is ok on rev.10078

oscam.conf (before):

httptpl = /usr/local/etc/tpl

oscam.conf (after):

httppiconpath = /usr/local/etc/tpl

comment:13 by hapeba, 9 years ago

please enable log and test ...

comment:14 by Starlord, 9 years ago

Log is enabled and Restart is ok.

Change the "httptpl" to "httppiconpath" in oscam.conf and rev. 10076 + 10077 + 10078 works fine.

comment:15 by hapeba, 9 years ago

I do this, but with enable log, oscam crashed (i don't use picons)

by ultra47, 9 years ago

please try this one

comment:17 by hapeba, 9 years ago

restart with enabled log --> Oscam crashed

comment:18 by Starlord, 9 years ago

I have tested r10079 with the patch.

"httppiconpath" and "httptpl" in oscam.conf.
Oscam Restart is ok with both parameters.

Thank you ultra47

comment:19 by ultra47, 9 years ago

@hapeba,
restart with enabled log --> Oscam crashed

this is to few information => config?, make parms

Last edited 9 years ago by ultra47 (previous) (diff)

comment:20 by hapeba, 9 years ago

please wait some time, i must test, because version 10071 are also not ok

comment:21 by skyndas, 9 years ago

Commit in r10080

comment:22 by skyndas, 9 years ago

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