Bug 746 - crash because of invalid free()
Summary: crash because of invalid free()
Status: RESOLVED DUPLICATE of bug 181
Alias: None
Product: libsigrokdecode
Classification: Unclassified
Component: Bindings: Python (show other bugs)
Version: 0.4.0
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-02 08:47 CET by Christian Thäter
Modified: 2016-02-02 18:53 CET (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Thäter 2016-02-02 08:47:53 CET
One of the pulseview crashes, I don't know exactly if it belongs here. Looks to me like something got wrong with the decoder. Maybe because of some race condititon in pulseview. This crash happened when starting with a trigger.

*** Error in `/usr/local/bin/pulseview': free(): invalid pointer: 0x000000308bbf9c40 ***
srd: 
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffef7fe700 (LWP 18631)]
0x0000003000435147 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x0000003000435147 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x0000003000436528 in __GI_abort () at abort.c:89
#2  0x0000003000473294 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x3000568980 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x0000003000478a6e in malloc_printerr (action=1, str=0x3000564a3e "free(): invalid pointer", ptr=<optimized out>) at malloc.c:4996
#4  0x0000003000479776 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5  0x000000308b7ebdb0 in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#6  0x000000308b7ecaa3 in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#7  0x000000308b6d8ff9 in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#8  0x000000308b70fcd8 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#9  0x000000308b7f2c3d in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#10 0x000000308b70fcd8 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#11 0x000000308b710224 in PyObject_CallMethod () from /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0
#12 0x00007ffff7da82ba in srd_inst_decode (di=0x7fffe4342730, start_samplenum=4096, end_samplenum=7229, inbuf=0x7fffef7fce20 '/' <repeats 200 times>..., inbuflen=3133, 
    unitsize=0, unitsize@entry=1) at instance.c:586
#13 0x00007ffff7da5dd8 in srd_session_send (sess=<optimized out>, start_samplenum=4096, end_samplenum=7229, inbuf=0x7fffef7fce20 '/' <repeats 200 times>..., 
    inbuflen=3133, unitsize=1) at session.c:243
#14 0x00000000004f5d97 in pv::data::DecoderStack::decode_data (this=this@entry=0xdfbe70, sample_count=sample_count@entry=7229, unit_size=unit_size@entry=1, 
    session=0x7fffe434b390) at /home/ct/src/other/pulseview/pv/data/decoderstack.cpp:311
#15 0x00000000004f68c6 in pv::data::DecoderStack::decode_proc (this=0xdfbe70) at /home/ct/src/other/pulseview/pv/data/decoderstack.cpp:374
#16 0x0000003003cb6970 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#17 0x0000003000c080a4 in start_thread (arg=0x7fffef7fe700) at pthread_create.c:309
#18 0x00000030004e89cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Comment 1 Soeren Apel 2016-02-02 18:53:57 CET

*** This bug has been marked as a duplicate of bug 181 ***