[icecast-dev] More libshout questions

Deven Phillips dphillips at gothic-hawaii.com
Sun Jan 18 23:30:19 PST 2004



Mihai,

    Here's the full backtrace.

(gdb) bt full
#0  0x40292093 in strlen () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x40291dc5 in strdup () from /lib/i686/libc.so.6
No symbol table info available.
#2  0x400aed79 in _shout_util_dict_set (dict=0x0, key=0x804b746 "song", 
val=0x0) at util.c:236
        prev = (util_dict *) 0x80555b8
#3  0x400ad61b in shout_metadata_add (self=0x805c908, name=0x0, 
value=0x0) at shout.c:294
No locals.
#4  0x08049a1a in stream_mpeg (current=0x804d8a8, config=0x804d8f8, 
shoutconn=0x8051220) at reencode.c:231
        retval = 134550048
        frames = 134550048
        test = 0
        left = {-280, 16397, -4984, -16385, -5232, -16385, 4, 0, 0, 0, 
-29618, 16397, -5128, -16385, -5120, -16385, 1, 0,
  0, 0, 16544, 16437, 18, 0, 0, 0, -3208, -16385, 0, 0, -6096, 2052, 
1024, 0, 17791, 17996, 257, 1, 0, 0, 0, 0, 3, 3, 1,
  0, 7440, 0, 52, 0, -23612, 0, 0, 0, 0, 0, 18514, 16395, 0, 0, -3336, 
-16385, 2677, 16422, -3280, -16385, 18514, 16395,
  0, 0, 192, 0, 5, 0, 4, 0, 3, 0, 30229, 16424, 16302, 2053, -16798, 
2052, 34, 0, 30229, 16424, 21800, 2053, -16480, 2052,
  55, 0, 0, 0, 55, 0, -3216, -16385, -3256, -16385, -2153, 16421, -3216, 
-16385, -16480, 2052, 55, 0, -24272, 0, -20176,
  0, -20176, 0, 464, 0, -3320, -16385, 14359, 16422, -4408, -16385, 2, 
0, -3304, -16385, 14359, 16422, -4392, -16385, 216,
  0, -3288, -16385, 14359, 16422, -4376, -16385, 4, 0, 0, 0, 16647, 
16395, 0, 0, -3160, -16385, 2677, 16422, -3120,
  -16385, 16647, 16395, 0, 0, 16, 0, 1, 0, 20039, 85, 0, 0, 0, 0, 
-15825, 2052, 0, 0, -3112, -16385, 2677, 16422, -3072,
  -16385, -15825, 2052, 0, 0, -3192, -16385, 14359, 16422, -4280, 
-16385, 121, 0, 0, 0, 0, 0, 78, 0, 106, 0, 123, 0...}
        right = {-6233, -16385, 11280, 16385, -17351, 25354, -17351, 
27914, -7424, -16385, 32510, 16384, -17351, 16394,
  28168, 16395, 61, 0, 61, 0, -5928, -16385, -6232, -16385, 32, 0, 
11280, 16385, -29015, 34, -29015, 34, -7312, -16385,
  31798, 16384, -29015, 16418, -17259, 16394, 32, 0, 32, 0, 24212, 
16410, 27024, 16395, 32, 0, 31160, 16417, 2, 16393,
  -19604, 16394, 2459, 0, 11280, 16385, 16220, 16385, -29786, 263, 
-28844, 16418, 15720, 16418, -19544, 16417, 28672,
  16417, 14, 0, 29692, 16417, 12104, 16385, 10, 0, 30328, 16417, 11280, 
16385, 16220, 16385, -25934, 1963, -7136, -16385,
  28118, 16384, -20339, 16394, -25934, 1963, -23616, 16394, -7216, 
-16385, 12104, 16385, 12, 0, 30328, 16417, 0, 0, 1, 0,
  18661, 3244, 25172, 16410, 27885, 16384, -7216, -16385, 5, 0, 1, 0, 0, 
0, 0, 0, -7072, -16385, 15808, 16385, -20339,
  16394, 0, 0, -7104, -16385, -1336, 16417, 28672, 16417, 0, 0, 0, 0, 0, 
0, 11280, 16385, -20323, 16394, 15808, 16385,
  -7104, -16385, -23542, 16384, 16220, 16385, 30328, 16417, 1, 0, 0, 0, 
-25792, 16394, 15808, 16385, 1, 0, 11280, 16385,
  -20339, 16394, 15808, 16385, -7056, -16385, -23542, 16384, 16220, 
16385, 30328, 16417, 1, 0, 0, 0, 0, 0, 4096, 0, -7032,
  -16385, -23840, 16384, 0, 0, 6, 0...}
        mp3output = 0x8060918 ""
        errmsg = 0x8062b18 ""
        buffer = 0x8062f20 ""
        metadata = (shout_metadata_t *) 0x80555b8
        encPtr = (lame_global_flags *) 0x8062920
        retcode = 134550048
        Stream = {buffer = 0x0, bufend = 0x0, skiplen = 0, sync = 0, 
freerate = 0, this_frame = 0x0, next_frame = 0x0,
---Type <return> to continue, or q <return> to quit---
  ptr = {byte = 0x0, cache = 0, left = 8}, anc_ptr = {byte = 0x0, cache 
= 0, left = 8}, anc_bitlen = 0, main_data = 0x0,
  md_len = 0, options = 0, error = MAD_ERROR_NONE}
        Frame = {header = {layer = 0, mode = MAD_MODE_SINGLE_CHANNEL, 
mode_extension = 0, emphasis = MAD_EMPHASIS_NONE,
    bitrate = 0, samplerate = 0, crc_check = 0, crc_target = 0, flags = 
0, private_bits = 0, duration = {seconds = 0,
      fraction = 0}}, options = 0, sbsample = {{{0 <repeats 32 times>} 
<repeats 36 times>}, {{
        0 <repeats 32 times>} <repeats 36 times>}}, overlap = 0x0}
        Synth = {filter = {{{{{0, 0, 0, 0, 0, 0, 0, 0} <repeats 16 
times>}, {{0, 0, 0, 0, 0, 0, 0,
            0} <repeats 16 times>}}, {{{0, 0, 0, 0, 0, 0, 0, 0} <repeats 
16 times>}, {{0, 0, 0, 0, 0, 0, 0,
            0} <repeats 16 times>}}}, {{{{0, 0, 0, 0, 0, 0, 0, 0} 
<repeats 16 times>}, {{0, 0, 0, 0, 0, 0, 0,
            0} <repeats 16 times>}}, {{{0, 0, 0, 0, 0, 0, 0, 0} <repeats 
16 times>}, {{0, 0, 0, 0, 0, 0, 0,
            0} <repeats 16 times>}}}}, phase = 0, pcm = {samplerate = 0, 
channels = 0, length = 0, samples = {{
        0 <repeats 1152 times>}, {0 <repeats 1152 times>}}}}
        Timer = {seconds = 0, fraction = 0}
        InputBuffer = '\0' <repeats 40959 times>
        OutputBuffer = '\0' <repeats 8191 times>
        OutputPtr = (unsigned char *) 0xbffeca30 ""
        i = 134550048
        FrameCount = 0
        filePtr = (FILE *) 0x805c798
#5  0x0804b4d1 in main (argc=1, argv=0x804d8f8) at main.c:397
        nukedb = (MYSQL *) 0x804d948
        conffile = 0x8051220 "\210\022\005\bT\037"
        holder = 0x8052d10 "1"
        current = (song *) 0x804d8a8
        shoutconn = (shout_t *) 0x8051220
        errcount = -1073744540
        retval = 2
        config = (param *) 0x804d8f8
#6  0x4022d7f7 in __libc_start_main () from /lib/i686/libc.so.6
No symbol table info available.

<p>Thanks!!!

Deven

<p>Mihai RUSU wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Fri, 16 Jan 2004, Deven Phillips wrote:
>
>  
>
>>Okay,
>>
>>	I am using libshout to stream to a NullSoft Shoutcast server. I am
>>using libmad and libmp3lame to do re-encoding on the fly. I am streaming
>>to the server (currently) with shout_send_raw(). When I try to use
>>shout_metadata_add(), I get a segfault in strdup(). Anyone have any
>>ideas as to why? Everything else works fine, just not the metadata.
>>    
>>
>
>Get the source file line number and a gdb full backtrace.
>ex. gdb /path/to/your/program
>gdb$ run <parameters-of-your-program>
>it will run and then crash and return to gdb prompt
>gdb$ bt full
>
>paste that output please
>
>  
>
>>Thanks In Advance,
>>Deven
>>    
>>
>
>- -- 
>Mihai RUSU                                    Email: dizzy at roedu.net
>GPG : http://dizzy.roedu.net/dizzy-gpg.txt    WWW: http://dizzy.roedu.net
>                       "Linux is obsolete" -- AST
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.3 (GNU/Linux)
>
>iD8DBQFACQR3PZzOzrZY/1QRAt+2AJ9ONITAQh0H0pduWJBQQCv5UFhy+wCfejOo
>UNZxwnnuHDO573ZGNdrC5F8=
>=0yhe
>-----END PGP SIGNATURE-----
>--- >8 ----
>List archives:  http://www.xiph.org/archives/
>icecast project homepage: http://www.icecast.org/
>To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
>containing only the word 'unsubscribe' in the body.  No subject is needed.
>Unsubscribe messages sent to the list will be ignored/filtered.
>  
>

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast-dev mailing list