Skip to content

Instantly share code, notes, and snippets.

@avilleret
Created November 26, 2014 21:40
Show Gist options
  • Save avilleret/b555a73245571c74dd56 to your computer and use it in GitHub Desktop.
Save avilleret/b555a73245571c74dd56 to your computer and use it in GitHub Desktop.
any.h broken on Ubuntu 64bit
$ gdb pd
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
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 "x86_64-linux-gnu".
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 pd...(no debugging symbols found)...done.
(gdb) run -nrt -noprefs -lib Gem
Starting program: /usr/local/bin/pd -nrt -noprefs -lib Gem
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
open: /etc/pd/gem.conf: No such file or directory
open: /home/antoine/.config/pure-data/gem.conf: No such file or directory
open: ./gem.conf: No such file or directory
load plugins 'film' in './'
pattern : ./gem_film*.so
dylib loading file './gem_filmGMERLIN.so'!
load plugins 'image' in './'
pattern : ./gem_image*.so
dylib loading file './gem_imageJPEG.so'!
dylib loading file './gem_imageMAGICK.so'!
dylib loading file './gem_imageSGI.so'!
dylib loading file './gem_imageTIFF.so'!
not reloading 'image' plugins (already 4 loaded)
load plugins 'image' in './'
pattern : ./gem_image*.so
dylib loading file './gem_imageJPEG.so'!
dylib loading file './gem_imageMAGICK.so'!
dylib loading file './gem_imageSGI.so'!
dylib loading file './gem_imageTIFF.so'!
load plugins 'model' in './'
pattern : ./gem_model*.so
dylib loading file './gem_modelOBJ.so'!
load plugins 'record' in './'
pattern : ./gem_record*.so
dylib loading file './gem_recordV4L.so'!
dylib loading file './gem_recordV4L2.so'!
load plugins 'video' in './'
pattern : ./gem_video*.so
dylib loading file './gem_videoDC1394.so'!
dylib loading file './gem_videoV4L.so'!
dylib loading file './gem_videoV4L2.so'!
dylib loading file './gem_videoVLC.so'!
[New Thread 0x7fffe471c700 (LWP 4682)]
[Thread 0x7fffe471c700 (LWP 4682) exited]
not reloading 'film' plugins (already 1 loaded)
not reloading 'image' plugins (already 4 loaded)
*** Error in `/usr/local/bin/pd': double free or corruption (fasttop): 0x00000000007f97c0 ***
Program received signal SIGABRT, Aborted.
0x00007ffff6e03d27 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7fc6780 (LWP 4675)):
#0 0x00007ffff6e03d27 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6e05418 in __GI_abort () at abort.c:89
#2 0x00007ffff6e459f4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff6f4ea40 "*** Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff6e4d006 in malloc_printerr (ptr=<optimized out>, str=0x7ffff6f4ec08 "double free or corruption (fasttop)", action=1)
at malloc.c:4996
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5 0x00007ffff3841128 in gem::anyimpl::big_any_policy<std::vector<std::string, std::allocator<std::string> > >::static_delete (
this=<optimized out>, x=0x84c6e0) at ../../src/Utils/any.h:79
#6 0x00007ffff37be57e in ~any (this=0x84c6d8, __in_chrg=<optimized out>) at ../../src/Utils/any.h:175
#7 ~pair (this=0x84c6d0, __in_chrg=<optimized out>) at /usr/include/c++/4.9/bits/stl_pair.h:96
#8 destroy (this=<optimized out>, __p=0x84c6d0) at /usr/include/c++/4.9/ext/new_allocator.h:133
#9 _M_destroy_node (this=0x84baf0, __p=0x84c6b0) at /usr/include/c++/4.9/bits/stl_tree.h:409
#10 std::_Rb_tree<std::string, std::pair<std::string const, gem::any>, std::_Select1st<std::pair<std::string const, gem::any> >, std::less<std::string>, std::allocator<std::pair<std::string const, gem::any> > >::_M_erase (this=0x84baf0, __x=0x84c6b0)
at /usr/include/c++/4.9/bits/stl_tree.h:1247
#11 0x00007ffff37ba1bb in clear (this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:908
#12 _M_erase_aux (__last=..., __first=..., this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:1878
#13 erase (__last=..., __first=..., this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:896
#14 erase (__x="backends", this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:1892
#15 erase (__x="backends", this=0x84baf0) at /usr/include/c++/4.9/bits/stl_map.h:762
#16 gem::Properties::erase (this=this@entry=0x7fffffffd630, key="backends") at Properties.cpp:139
#17 0x00007ffff3846344 in gem::plugins::filmMeta::getProperties (this=0x7f8bc0, props=...) at film.cpp:277
#18 0x00007ffff39c8ff0 in pix_film::pix_film (this=0x7f95c0, filename=0x7401a0 <s_>) at pix_film.cpp:218
#19 0x00007ffff39c95fa in create_pix_film (arg=0x7401a0 <s_>) at pix_film.cpp:137
#20 0x00000000004707bc in pd_typedmess ()
#21 0x0000000000479a37 in binbuf_eval ()
#22 0x000000000041bbb6 in canvas_objtext ()
#23 0x0000000000421365 in text_setto ()
#24 0x000000000044dc61 in glist_deselect ()
#25 0x000000000045366b in canvas_doclick ()
#26 0x00000000004707bc in pd_typedmess ()
#27 0x0000000000479a37 in binbuf_eval ()
#28 0x00000000004849eb in socketreceiver_read ()
#29 0x0000000000483c6d in sys_domicrosleep.constprop ()
#30 0x00000000004804ce in m_mainloop ()
#31 0x00007ffff6deeec5 in __libc_start_main (main=0x412610 <main>, argc=5, argv=0x7fffffffdf08, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdef8) at libc-start.c:287
#32 0x000000000041263e in _start ()
(gdb)
Thread 1 (Thread 0x7ffff7fc6780 (LWP 4675)):
#0 0x00007ffff6e03d27 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6e05418 in __GI_abort () at abort.c:89
#2 0x00007ffff6e459f4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff6f4ea40 "*** Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff6e4d006 in malloc_printerr (ptr=<optimized out>, str=0x7ffff6f4ec08 "double free or corruption (fasttop)", action=1)
at malloc.c:4996
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5 0x00007ffff3841128 in gem::anyimpl::big_any_policy<std::vector<std::string, std::allocator<std::string> > >::static_delete (
this=<optimized out>, x=0x84c6e0) at ../../src/Utils/any.h:79
#6 0x00007ffff37be57e in ~any (this=0x84c6d8, __in_chrg=<optimized out>) at ../../src/Utils/any.h:175
#7 ~pair (this=0x84c6d0, __in_chrg=<optimized out>) at /usr/include/c++/4.9/bits/stl_pair.h:96
#8 destroy (this=<optimized out>, __p=0x84c6d0) at /usr/include/c++/4.9/ext/new_allocator.h:133
#9 _M_destroy_node (this=0x84baf0, __p=0x84c6b0) at /usr/include/c++/4.9/bits/stl_tree.h:409
#10 std::_Rb_tree<std::string, std::pair<std::string const, gem::any>, std::_Select1st<std::pair<std::string const, gem::any> >, std::less<std::string>, std::allocator<std::pair<std::string const, gem::any> > >::_M_erase (this=0x84baf0, __x=0x84c6b0)
at /usr/include/c++/4.9/bits/stl_tree.h:1247
#11 0x00007ffff37ba1bb in clear (this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:908
#12 _M_erase_aux (__last=..., __first=..., this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:1878
#13 erase (__last=..., __first=..., this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:896
#14 erase (__x="backends", this=0x84baf0) at /usr/include/c++/4.9/bits/stl_tree.h:1892
#15 erase (__x="backends", this=0x84baf0) at /usr/include/c++/4.9/bits/stl_map.h:762
#16 gem::Properties::erase (this=this@entry=0x7fffffffd630, key="backends") at Properties.cpp:139
#17 0x00007ffff3846344 in gem::plugins::filmMeta::getProperties (this=0x7f8bc0, props=...) at film.cpp:277
#18 0x00007ffff39c8ff0 in pix_film::pix_film (this=0x7f95c0, filename=0x7401a0 <s_>) at pix_film.cpp:218
#19 0x00007ffff39c95fa in create_pix_film (arg=0x7401a0 <s_>) at pix_film.cpp:137
#20 0x00000000004707bc in pd_typedmess ()
#21 0x0000000000479a37 in binbuf_eval ()
#22 0x000000000041bbb6 in canvas_objtext ()
#23 0x0000000000421365 in text_setto ()
#24 0x000000000044dc61 in glist_deselect ()
#25 0x000000000045366b in canvas_doclick ()
#26 0x00000000004707bc in pd_typedmess ()
#27 0x0000000000479a37 in binbuf_eval ()
#28 0x00000000004849eb in socketreceiver_read ()
#29 0x0000000000483c6d in sys_domicrosleep.constprop ()
#30 0x00000000004804ce in m_mainloop ()
#31 0x00007ffff6deeec5 in __libc_start_main (main=0x412610 <main>, argc=5, argv=0x7fffffffdf08, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdef8) at libc-start.c:287
#32 0x000000000041263e in _start ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment