[vlc-devel] Crash in src/input/input_ext-dec.c:154 UnalignedShowBits()

Rhialto rhialto at azenomei.knuffel.net
Tue Nov 26 00:49:13 CET 2002

I am trying to build vlc on NetBSD (I am making a package, like I just
posted for libdvdcss). It seems to build (apart from the vcd plugin) but
every time I try to play an mpeg file it crashes here:

#0  UnalignedShowBits (p_bit_stream=0x8197800, i_bits=24)
    at src/input/input_ext-dec.c:154
154                 *pp_data = p_fifo->p_first->p_first;
(gdb) list
149                     /* Wait for the input to tell us when we receive a packet. */
150                     vlc_cond_wait( &p_fifo->data_wait, &p_fifo->data_lock );
151                 }
153                 /* The next packet could be found in the next PES packet */
154                 *pp_data = p_fifo->p_first->p_first;
156                 vlc_mutex_unlock( &p_fifo->data_lock );
158                 b_new_pes = 1;
(gdb) print p_fifo->p_first
$1 = (pes_packet_t *) 0x0
(gdb) bt
#0  UnalignedShowBits (p_bit_stream=0x8197800, i_bits=24)
    at src/input/input_ext-dec.c:154
#1  0x80bd14e in vpar_PictureData1P (p_vpar=0x8197800)
    at ../../include/input_ext-dec.h:294
#2  0x8085035 in PictureHeader (p_vpar=0x8197800) at vpar_headers.c:941
#3  0x8082ac1 in vpar_ParseHeader (p_vpar=0x8197800) at vpar_headers.c:275
#4  0x80820ba in decoder_Run (p_config=0x8198100) at video_parser.c:179
#5  0x4811ccc8 in pth_spawn_trampoline () from /usr/pkg/lib/libpthread.so.14
#6  0x4811aab1 in pth_mctx_set_bootstrap () from /usr/pkg/lib/libpthread.so.14
#7  0x4811aa25 in pth_mctx_set_trampoline () from /usr/pkg/lib/libpthread.so.14
#8  0x81cafa0 in ?? ()
#9  0x1f in ?? ()
Cannot access memory at address 0x1f

Would this indicate a threading problem, or something else? I ask this
because I'm not confident I built it correctly w.r.t. pthreads.

___ Olaf 'Rhialto' Seibert      -- The evil eye is caused by the black
\X/ rhialto/at/xs4all.nl        -- tongue - Tom Poes, "Het boze oog", 4456.
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>

More information about the vlc-devel mailing list