Opened 11 years ago

Closed 11 years ago

#2992 closed defect (fixed)

oscam crash with "double free or corruption (!prev): "

Reported by: dpeddi Owned by:
Priority: major Component: General
Severity: Please fill in Keywords:
Cc: Sensitive: no

Description

Revision

oscam-1.20-unstable_svn-r7944

Issue Description

oscam crash unexpectly

When the issue occurs

unexpected

How the issue is reproducable

I don't know if you can replicate.

Attachments (5)

valgrind.log (23.1 KB ) - added by dpeddi 11 years ago.
valgrind log
oscam-crash.log (926.4 KB ) - added by dpeddi 11 years ago.
oscam crash (stderr)
oscam.info (1.7 KB ) - added by dpeddi 11 years ago.
oscam -V
oscam-gdb.log (1.6 KB ) - added by dpeddi 11 years ago.
module-cccam.c.diff (623 bytes ) - added by gf 11 years ago.
Please try this patch.

Download all attachments as: .zip

Change History (16)

by dpeddi, 11 years ago

Attachment: valgrind.log added

valgrind log

by dpeddi, 11 years ago

Attachment: oscam-crash.log added

oscam crash (stderr)

by dpeddi, 11 years ago

Attachment: oscam.info added

oscam -V

comment:1 by system2_it, 11 years ago

if you can help,
filling out later to SVN r7940 and by replacing modules:

oscam-simples.c
global-functions.h
globals.h

with those of the SVN 7942 works properly
All this takes place from SVN r7943

comment:2 by Deas, 11 years ago

if you can´t provide a log as described in thread http://www.streamboard.tv/wbb2/thread.php?threadid=30975 the problem can´t be fixed. switching source files is a useless task...

comment:4 by system2_it, 11 years ago

for me, now svn r7948 is working properly.
thanks theparasol

PS
sorry if I did not post the log as indicated, but did not succeed.
I do experience more

comment:5 by dpeddi, 11 years ago

Compiled and installed. Thanks...

We will see if it is stable...

comment:6 by dpeddi, 11 years ago

/usr/local/oscam/oscam-sb/build_dir.x86# ./oscam -V
Version: oscam-1.20-unstable_svn-r7948

oscam died at sab 8 dic 2012, 15.29.11, CET
oscam started at sab 8 dic 2012, 15.29.16, CET
* glibc detected * /usr/local/oscam/oscam-sb/build_dir.x86/oscam: double free or corruption (!prev): 0x00007f2274007b20 *
oscam died at sab 8 dic 2012, 13.55.29, CET
oscam started at sab 8 dic 2012, 13.55.34, CET
* glibc detected * /usr/local/oscam/oscam-sb/build_dir.x86/oscam: double free or corruption (!prev): 0x0000000000e85540 *
oscam died at sab 8 dic 2012, 15.29.11, CET
oscam started at sab 8 dic 2012, 15.29.16, CET
* glibc detected * /usr/local/oscam/oscam-sb/build_dir.x86/oscam: double free or corruption (!prev): 0x00007f2274007b20 *

Problem persists...
I've configured my system to provide you GDB log

error is:
"../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory."
but i've logged out and I couldn't ask for bt to gdb...
I' try again with modified script...

Last edited 11 years ago by dpeddi (previous) (diff)

comment:7 by dpeddi, 11 years ago

I forget to say:

root@*:/etc/oscam-svn# uname -a
Linux
* 3.2.0-0.bpo.2-amd64 #1 SMP Fri Jun 29 20:42:29 UTC 2012 x86_64 GNU/Linux

posted oscam-gdb.log (#7948)

Last edited 11 years ago by dpeddi (previous) (diff)

by dpeddi, 11 years ago

Attachment: oscam-gdb.log added

comment:8 by gf, 11 years ago

17	#5  0x0000000000471fdc in cc_parse_msg (cl=0x7ffff007b230,
18	    buf=0xaaaa20 "$\002\006k\030\005", l=1647)
19	    at /root/oscam/oscam-sb/module-cccam.c:2929
20	#6  0x0000000000472708 in cc_recv (cl=0x7ffff007b230,
21	    buf=0xaaaa20 "$\002\006k\030\005", l=2048)
22	    at /root/oscam/oscam-sb/module-cccam.c:3086 }}}

The buf pointer is definitely wrong and that brings the problem.

by gf, 11 years ago

Attachment: module-cccam.c.diff added

Please try this patch.

comment:9 by dpeddi, 11 years ago

Compiled and running running under gdb.

I keep it running for few days and I will let you known

Thanks

comment:10 by dpeddi, 11 years ago

I see your fixed a line in emm management by ccam,
after an uptime of 31 hours

and
0 / 35934 / 0 / 78 blocked emm
0 / 35934 / 0 / 78 blocked emm
0 / 35934 / 0 / 78 blocked emm
0 / 0 / 2 / 0 written emm
0 / 0 / 15 / 0 skipped emm
0 / 73 / 14 / 0 written emm
0 / 1044 / 54 / 0 skipped emm
received using cccam protocol

I consider the patch good.. I think you can commit it

comment:11 by gf, 11 years ago

Resolution: fixed
Status: newclosed

Fix commited in r7966.

Note: See TracTickets for help on using tickets.