Issue #26 resolved

Multiple download crash

seyacat
created an issue

When i donwload multiple songs eventually have this error and crash

./gsharkdown.py:1150: PangoWarning: Invalid UTF-8 string passed to pango_layout_set_text() gtk.main() (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') (52, 'Empty reply from server') longjmp causes uninitialized stack frame : python terminated Violación de segmento (`core' generado)

Comments (3)

  1. Anonymous

    Hi!

    I think this bug comes from libcurl: https://bugzilla.redhat.com/show_bug.cgi?id=539809 I get this trace which points libcurl:

    (gdb) info threads
      3 Thread 0x7fffe74fb700 (LWP 3933)  0x00007ffff6a7cf03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>)
        at ../sysdeps/unix/sysv/linux/poll.c:87
    * 1 Thread 0x7ffff7fcf720 (LWP 3925)  0x00007ffff69d7d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    (gdb) bt
    #0  0x00007ffff69d7d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    #1  0x00007ffff69dbab6 in abort () at abort.c:92
    #2  0x00007ffff6a10d7b in __libc_message (do_abort=2, fmt=0x7ffff6af7b23 "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
    #3  0x00007ffff6aa21d7 in __fortify_fail (msg=0x7ffff6af7ae2 "longjmp causes uninitialized stack frame") at fortify_fail.c:32
    #4  0x00007ffff6aa2169 in ____longjmp_chk () at ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S:86
    #5  0x00007ffff6aa20d3 in __longjmp_chk (env=0x7fffea896940, val=<value optimized out>) at ../setjmp/longjmp.c:40
    #6  0x00007fffea64eb45 in ?? () from /usr/lib/libcurl-gnutls.so.4
    #7  <signal handler called>
    #8  0x00007ffff6a7cf03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
    #9  0x00007ffff5374104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #10 0x00007ffff53749f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #11 0x00007ffff3aa6af7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
    #12 0x00007ffff4153ee4 in ?? () from /usr/lib/pymodules/python2.7/gtk-2.0/gtk/_gtk.so
    #13 0x00000000004970ef in PyEval_EvalFrameEx ()
    #14 0x000000000049d325 in PyEval_EvalCodeEx ()
    #15 0x00000000004ecb02 in PyEval_EvalCode ()
    #16 0x00000000004fdc74 in ?? ()
    #17 0x000000000042c182 in PyRun_FileExFlags ()
    #18 0x000000000042cb4a in PyRun_SimpleFileExFlags ()
    #19 0x0000000000418c9e in Py_Main ()
    #20 0x00007ffff69c2eff in __libc_start_main (main=0x417f80 <main>, argc=2, ubp_av=0x7fffffffe308, init=<value optimized out>, fini=<value optimized out>, 
        rtld_fini=<value optimized out>, stack_end=0x7fffffffe2f8) at libc-start.c:226
    #21 0x00000000004c62b1 in _start ()
    

    Cheers!

  2. Anonymous

    Me again,

    Sorry, too lazy to create an account on bitbucket... You should try this fix:

    diff -r 18a3621ae65f lib/tfuncs.py
    --- a/lib/tfuncs.py	Tue Sep 13 02:40:12 2011 -0300
    +++ b/lib/tfuncs.py	Wed Sep 28 14:22:31 2011 +0200
    @@ -92,6 +92,7 @@
                 c.setopt(pycurl.FAILONERROR, True)
                 c.setopt(pycurl.FILE, self.file)
                 c.setopt(pycurl.POST, True)
    +            c.setopt(pycurl.NOSIGNAL, True)
                 c.setopt(pycurl.POSTFIELDS, str("streamKey=" + key["result"]["%s" % self.songid]["streamKey"]))
                 c.perform()
                 self.file.close()
    

    Regi.

  3. Log in to comment