root@odroidu2:/dirac-1.0.2# gdb -ex=r --args encoder/dirac_encoder
-cformat YUV420P -SD576I50 -qf 7 -num_L1 0 -local
tests/colourbars_420.yuv ../../colourbars_420_enc.drc
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from encoder/dirac_encoder...done.
Starting program: /dirac-1.0.2/encoder/dirac_encoder -cformat YUV420P
-SD576I50 -qf 7 -num_L1 0 -local tests/colourbars_420.yuv
../../colourbars_420_enc.drc
Program received signal SIGSEGV, Segmentation fault.
dirac::PictureCompressor::SelectQuantisers (this=this@entry=0x207ccec,
coeff_data=..., bands=..., lambda=lambda@entry=6.25, est_bits=...,
cb_mode=QUANT_SINGLE, pp=..., csort=csort@entry=dirac::Y_COMP)
at picture_compress.cpp:632
632 est_bits[b] = SelectMultiQuants( coeff_data ,
bands , b, lambda,
(gdb) bt
#0 dirac::PictureCompressor::SelectQuantisers
(this=this@entry=0x207ccec, coeff_data=..., bands=...,
lambda=lambda@entry=6.25, est_bits=..., cb_mode=QUANT_SINGLE, pp=...,
csort=csort@entry=dirac::Y_COMP)
at picture_compress.cpp:632
#1 0x00036d94 in dirac::PictureCompressor::CodeResidue
(this=this@entry=0x207ccec, my_buffer=..., pnum=<optimized out>,
p_picture_byteio=p_picture_byteio@entry=0x20e4af0) at
picture_compress.cpp:449
#2 0x000232ee in dirac::SequenceCompressor::CompressNextPicture
(this=0x207cbd0) at seq_compress.cpp:447
#3 0x00018e72 in DiracEncoder::CompressNextPicture
(this=this@entry=0x207c400) at dirac_encoder.cpp:607
#4 0x0001b122 in CompressNextPicture (this=0x207c400) at
dirac_encoder.cpp:1141
#5 dirac_encoder_output (encoder=0x207c240) at dirac_encoder.cpp:1106
#6 0x00014b20 in main (argc=<optimized out>, argv=<optimized out>) at
encmain.cpp:1234
(gdb)