*** glibc detected *** algoscore: malloc(): memory corruption: 0x0a010ba8 *** ======= Backtrace: ========= /lib/libc.so.6(+0x6c7b1)[0xb6eec7b1] /lib/libc.so.6(+0x6e866)[0xb6eee866] /lib/libc.so.6(__libc_malloc+0x63)[0xb6ef0d03] algoscore[0x8062591] algoscore(naHash_set+0x41)[0x80627d1] algoscore(naInternSymbol+0x95)[0x805f835] algoscore(naNewContext+0x46a)[0x805eb3a] algoscore(main+0x57)[0x8055637] /lib/libc.so.6(__libc_start_main+0xe6)[0xb6e96c76] algoscore[0x8054f71] ======= Memory map: ======== 08048000-0807d000 r-xp 00000000 08:06 1850602 /usr/bin/algoscore 0807d000-0807f000 rw-p 00035000 08:06 1850602 /usr/bin/algoscore 0a00f000-0a030000 rw-p 00000000 00:00 0 [heap] b6400000-b6421000 rw-p 00000000 00:00 0 b6421000-b6500000 ---p 00000000 00:00 0 b6573000-b6578000 rw-p 00000000 00:00 0 b6578000-b6593000 r-xp 00000000 08:06 1842823 /usr/lib/libgcc_s.so.1 b6593000-b6594000 rw-p 0001a000 08:06 1842823 /usr/lib/libgcc_s.so.1 b6594000-b6676000 r-xp 00000000 08:06 1834581 /usr/lib/libstdc++.so.6.0.14 b6676000-b667a000 r--p 000e2000 08:06 1834581 /usr/lib/libstdc++.so.6.0.14 b667a000-b667b000 rw-p 000e6000 08:06 1834581 /usr/lib/libstdc++.so.6.0.14 b667b000-b6682000 rw-p 00000000 00:00 0 b6682000-b6694000 r-xp 00000000 08:06 1852809 /usr/lib/libXft.so.2.1.13 b6694000-b6695000 rw-p 00011000 08:06 1852809 /usr/lib/libXft.so.2.1.13 b6695000-b6699000 r-xp 00000000 08:06 1839482 /usr/lib/libXdmcp.so.6.0.0 b6699000-b669a000 rw-p 00003000 08:06 1839482 /usr/lib/libXdmcp.so.6.0.0 b669a000-b669c000 r-xp 00000000 08:06 1839495 /usr/lib/libXau.so.6.0.0 b669c000-b669d000 rw-p 00001000 08:06 1839495 /usr/lib/libXau.so.6.0.0 b669d000-b669e000 rw-p 00000000 00:00 0 b669e000-b66c2000 r-xp 00000000 08:06 1850995 /usr/lib/libexpat.so.1.5.2 b66c2000-b66c4000 rw-p 00023000 08:06 1850995 /usr/lib/libexpat.so.1.5.2 b66c4000-b66d5000 r-xp 00000000 08:06 130823 /lib/libresolv-2.12.1.so b66d5000-b66d6000 r--p 00010000 08:06 130823 /lib/libresolv-2.12.1.so b66d6000-b66d7000 rw-p 00011000 08:06 130823 /lib/libresolv-2.12.1.so b66d7000-b66d9000 rw-p 00000000 00:00 0 b66d9000-b66db000 r-xp 00000000 08:06 134445 /lib/libdl-2.12.1.so b66db000-b66dc000 r--p 00001000 08:06 134445 /lib/libdl-2.12.1.so b66dc000-b66dd000 rw-p 00002000 08:06 134445 /lib/libdl-2.12.1.so b66dd000-b679e000 r-xp 00000000 08:06 1856693 /usr/lib/libasound.so.2.0.0 b679e000-b67a2000 rw-p 000c1000 08:06 1856693 /usr/lib/libasound.so.2.0.0 b67a2000-b67a3000 rw-p 00000000 00:00 0 b67a3000-b6835000 r-xp 00000000 08:06 1850532 /usr/lib/libfltk.so.1.1 b6835000-b683b000 rw-p 00091000 08:06 1850532 /usr/lib/libfltk.so.1.1 b683b000-b683e000 rw-p 00000000 00:00 0 b683e000-b6863000 r-xp 00000000 08:06 1850556 /usr/lib/libportaudio.so.2.0.0 b6863000-b6864000 rw-p 00025000 08:06 1850556 /usr/lib/libportaudio.so.2.0.0 b6864000-b6868000 r-xp 00000000 08:06 1856714 /usr/lib/libogg.so.0.7.0 b6868000-b6869000 rw-p 00004000 08:06 1856714 /usr/lib/libogg.so.0.7.0 b6869000-b688f000 r-xp 00000000 08:06 1856724 /usr/lib/libvorbis.so.0.4.4 b688f000-b6890000 rw-p 00026000 08:06 1856724 /usr/lib/libvorbis.so.0.4.4 b6890000-b69f5000 r-xp 00000000 08:06 1856727 /usr/lib/libvorbisenc.so.2.0.7 b69f5000-b6a06000 rw-p 00165000 08:06 1856727 /usr/lib/libvorbisenc.so.2.0.7 b6a06000-b6a07000 rw-p 00000000 00:00 0 b6a07000-b6a53000 r-xp 00000000 08:06 1859852 /usr/lib/libFLAC.so.8.2.0 b6a53000-b6a54000 rw-p 0004c000 08:06 1859852 /usr/lib/libFLAC.so.8.2.0 b6a54000-b6a6b000 r-xp 00000000 08:06 1839512 /usr/lib/libxcb.so.1.1.0 b6a6b000-b6a6c000 rw-p 00016000 08:06 1839512 /usr/lib/libxcb.so.1.1.0 b6a6c000-b6a72000 r-xp 00000000 08:06 1839591 /usr/lib/libxcb-render.so.0.0.0 b6a72000-b6a73000 rw-p 00005000 08:06 1839591 /usr/lib/libxcb-render.so.0.0.0 b6a73000-b6a76000 r-xp 00000000 08:06 1852759 /usr/lib/libxcb-render-util.so.0.0.0 b6a76000-b6a77000 rw-p 00002000 08:06 1852759 /usr/lib/libxcb-render-util.so.0.0.0 b6a77000-b6ad3000 r-xp 00000000 08:06 1844743 /usr/lib/libpixman-1.so.0.18.4 b6ad3000-b6ad6000 rw-p 0005c000 08:06 1844743 /usr/lib/libpixman-1.so.0.18.4 b6ad6000-b6ad7000 rw-p 00000000 00:00 0 b6ad7000-b6aeb000 r-xp 00000000 08:06 1831748 /usr/lib/libz.so.1.2.5 b6aeb000-b6aec000 rw-p 00014000 08:06 1831748 /usr/lib/libz.so.1.2.5 b6aec000-b6b11000 r-xp 00000000 08:06 1840833 /usr/lib/libpng14.so.14.3.0 b6b11000-b6b12000 rw-p 00024000 08:06 1840833 /usr/lib/libpng14.so.14.3.0 b6b12000-b6b19000 r-xp 00000000 08:06 130824 /lib/librt-2.12.1.so b6b19000-b6b1a000 r--p 00006000 08:06 130824 /lib/librt-2.12.1.so b6b1a000-b6b1b000 rw-p 00007000 08:06 130824 /lib/librt-2.12.1.so b6b1b000-b6b1d000 r-xp 00000000 08:06 1841489 /usr/lib/libgmodule-2.0.so.0.2400.1 b6b1d000-b6b1e000 rw-p 00002000 08:06 1841489 /usr/lib/libgmodule-2.0.so.0.2400.1 b6b1e000-b6b4a000 r-xp 00000000 08:06 1852752 /usr/lib/libfontconfig.so.1.4.4 b6b4a000-b6b4c000 rw-p 0002b000 08:06 1852752 /usr/lib/libfontconfig.so.1.4.4 b6b4c000-b6b4d000 rw-p 00000000 00:00 0 b6b4d000-b6bce000 r-xp 00000000 08:06 1840841 /usr/lib/libfreetype.so.6.6.0 b6bce000-b6bd2000 rw-p 00080000 08:06 1840841 /usr/lib/libfreetype.so.6.6.0 b6bd2000-b6c11000 r-xp 00000000 08:06 1852839 /usr/lib/libpango-1.0.so.0.2800.1 b6c11000-b6c13000 rw-p 0003e000 08:06 1852839 /usr/lib/libpango-1.0.so.0.2800.1 b6c13000-b6c3e000 r-xp 00000000 08:06 1852834 /usr/lib/libpangoft2-1.0.so.0.2800.1 b6c3e000-b6c3f000 rw-p 0002b000 08:06 1852834 /usr/lib/libpangoft2-1.0.so.0.2800.1 b6c3f000-b6cd6000 r-xp 00000000 08:06 1841490 /usr/lib/libgio-2.0.so.0.2400.1 b6cd6000-b6cd8000 rw-p 00097000 08:06 1841490 /usr/lib/libgio-2.0.so.0.2400.1 b6cd8000-b6cf0000 r-xp 00000000 08:06 1840811 /usr/lib/libatk-1.0.so.0.3009.1 b6cf0000-b6cf2000 rw-p 00018000 08:06 1840811 /usr/lib/libatk-1.0.so.0.3009.1 b6cf2000-b6cf3000 rw-p 00000000 00:00 0 b6cf3000-b6cf7000 r-xp 00000000 08:06 1852857 /usr/lib/libXfixes.so.3.1.0 b6cf7000-b6cf8000 rw-p 00003000 08:06 1852857 /usr/lib/libXfixes.so.3.1.0 b6cf8000-b6cfa000 r-xp 00000000 08:06 1853017 /usr/lib/libXdamage.so.1.1.0 b6cfa000-b6cfb000 rw-p 00001000 08:06 1853017 /usr/lib/libXdamage.so.1.1.0 b6cfb000-b6cfd000 r-xp 00000000 08:06 1853012 /usr/lib/libXcomposite.so.1.0.0 b6cfd000-b6cfe000 rw-p 00001000 08:06 1853012 /usr/lib/libXcomposite.so.1.0.0 b6cfe000-b6e14000 r-xp 00000000 08:06 1840437 /usr/lib/libX11.so.6.3.0 b6e14000-b6e18000 rw-p 00115000 08:06 1840437 /usr/lib/libX11.so.6.3.0 b6e18000-b6e22000 r-xp 00000000 08:06 1852849 /usr/lib/libpangocairo-1.0.so.0.2800.1 b6e22000-b6e23000 rw-p 00009000 08:06 1852849 /usr/lib/libpangocairo-1.0.so.0.2800.1Aborted
On Tue, Aug 24, 2010 at 8:44 PM, Nathan O <ndowens.aur@gmail.com> wrote:
*** glibc detected *** algoscore: malloc(): memory corruption: 0x0a010ba8 *** ======= Backtrace: ========= /lib/libc.so.6(+0x6c7b1)[0xb6eec7b1] /lib/libc.so.6(+0x6e866)[0xb6eee866] /lib/libc.so.6(__libc_malloc+0x63)[0xb6ef0d03] algoscore[0x8062591] algoscore(naHash_set+0x41)[0x80627d1] algoscore(naInternSymbol+0x95)[0x805f835] algoscore(naNewContext+0x46a)[0x805eb3a] algoscore(main+0x57)[0x8055637] /lib/libc.so.6(__libc_start_main+0xe6)[0xb6e96c76] algoscore[0x8054f71] ======= Memory map: ======== 08048000-0807d000 r-xp 00000000 08:06 1850602 /usr/bin/algoscore 0807d000-0807f000 rw-p 00035000 08:06 1850602 /usr/bin/algoscore 0a00f000-0a030000 rw-p 00000000 00:00 0 [heap] b6400000-b6421000 rw-p 00000000 00:00 0 b6421000-b6500000 ---p 00000000 00:00 0 b6573000-b6578000 rw-p 00000000 00:00 0 b6578000-b6593000 r-xp 00000000 08:06 1842823 /usr/lib/libgcc_s.so.1 b6593000-b6594000 rw-p 0001a000 08:06 1842823 /usr/lib/libgcc_s.so.1 b6594000-b6676000 r-xp 00000000 08:06 1834581 /usr/lib/libstdc++.so.6.0.14 b6676000-b667a000 r--p 000e2000 08:06 1834581 /usr/lib/libstdc++.so.6.0.14 b667a000-b667b000 rw-p 000e6000 08:06 1834581 /usr/lib/libstdc++.so.6.0.14 b667b000-b6682000 rw-p 00000000 00:00 0 b6682000-b6694000 r-xp 00000000 08:06 1852809 /usr/lib/libXft.so.2.1.13 b6694000-b6695000 rw-p 00011000 08:06 1852809 /usr/lib/libXft.so.2.1.13 b6695000-b6699000 r-xp 00000000 08:06 1839482 /usr/lib/libXdmcp.so.6.0.0 b6699000-b669a000 rw-p 00003000 08:06 1839482 /usr/lib/libXdmcp.so.6.0.0 b669a000-b669c000 r-xp 00000000 08:06 1839495 /usr/lib/libXau.so.6.0.0 b669c000-b669d000 rw-p 00001000 08:06 1839495 /usr/lib/libXau.so.6.0.0 b669d000-b669e000 rw-p 00000000 00:00 0 b669e000-b66c2000 r-xp 00000000 08:06 1850995 /usr/lib/libexpat.so.1.5.2 b66c2000-b66c4000 rw-p 00023000 08:06 1850995 /usr/lib/libexpat.so.1.5.2 b66c4000-b66d5000 r-xp 00000000 08:06 130823 /lib/libresolv-2.12.1.so b66d5000-b66d6000 r--p 00010000 08:06 130823 /lib/libresolv-2.12.1.so b66d6000-b66d7000 rw-p 00011000 08:06 130823 /lib/libresolv-2.12.1.so b66d7000-b66d9000 rw-p 00000000 00:00 0 b66d9000-b66db000 r-xp 00000000 08:06 134445 /lib/libdl-2.12.1.so b66db000-b66dc000 r--p 00001000 08:06 134445 /lib/libdl-2.12.1.so b66dc000-b66dd000 rw-p 00002000 08:06 134445 /lib/libdl-2.12.1.so b66dd000-b679e000 r-xp 00000000 08:06 1856693 /usr/lib/libasound.so.2.0.0 b679e000-b67a2000 rw-p 000c1000 08:06 1856693 /usr/lib/libasound.so.2.0.0 b67a2000-b67a3000 rw-p 00000000 00:00 0 b67a3000-b6835000 r-xp 00000000 08:06 1850532 /usr/lib/libfltk.so.1.1 b6835000-b683b000 rw-p 00091000 08:06 1850532 /usr/lib/libfltk.so.1.1 b683b000-b683e000 rw-p 00000000 00:00 0 b683e000-b6863000 r-xp 00000000 08:06 1850556 /usr/lib/libportaudio.so.2.0.0 b6863000-b6864000 rw-p 00025000 08:06 1850556 /usr/lib/libportaudio.so.2.0.0 b6864000-b6868000 r-xp 00000000 08:06 1856714 /usr/lib/libogg.so.0.7.0 b6868000-b6869000 rw-p 00004000 08:06 1856714 /usr/lib/libogg.so.0.7.0 b6869000-b688f000 r-xp 00000000 08:06 1856724 /usr/lib/libvorbis.so.0.4.4 b688f000-b6890000 rw-p 00026000 08:06 1856724 /usr/lib/libvorbis.so.0.4.4 b6890000-b69f5000 r-xp 00000000 08:06 1856727 /usr/lib/libvorbisenc.so.2.0.7 b69f5000-b6a06000 rw-p 00165000 08:06 1856727 /usr/lib/libvorbisenc.so.2.0.7 b6a06000-b6a07000 rw-p 00000000 00:00 0 b6a07000-b6a53000 r-xp 00000000 08:06 1859852 /usr/lib/libFLAC.so.8.2.0 b6a53000-b6a54000 rw-p 0004c000 08:06 1859852 /usr/lib/libFLAC.so.8.2.0 b6a54000-b6a6b000 r-xp 00000000 08:06 1839512 /usr/lib/libxcb.so.1.1.0 b6a6b000-b6a6c000 rw-p 00016000 08:06 1839512 /usr/lib/libxcb.so.1.1.0 b6a6c000-b6a72000 r-xp 00000000 08:06 1839591 /usr/lib/libxcb-render.so.0.0.0 b6a72000-b6a73000 rw-p 00005000 08:06 1839591 /usr/lib/libxcb-render.so.0.0.0 b6a73000-b6a76000 r-xp 00000000 08:06 1852759 /usr/lib/libxcb-render-util.so.0.0.0 b6a76000-b6a77000 rw-p 00002000 08:06 1852759 /usr/lib/libxcb-render-util.so.0.0.0 b6a77000-b6ad3000 r-xp 00000000 08:06 1844743 /usr/lib/libpixman-1.so.0.18.4 b6ad3000-b6ad6000 rw-p 0005c000 08:06 1844743 /usr/lib/libpixman-1.so.0.18.4 b6ad6000-b6ad7000 rw-p 00000000 00:00 0 b6ad7000-b6aeb000 r-xp 00000000 08:06 1831748 /usr/lib/libz.so.1.2.5 b6aeb000-b6aec000 rw-p 00014000 08:06 1831748 /usr/lib/libz.so.1.2.5 b6aec000-b6b11000 r-xp 00000000 08:06 1840833 /usr/lib/libpng14.so.14.3.0 b6b11000-b6b12000 rw-p 00024000 08:06 1840833 /usr/lib/libpng14.so.14.3.0 b6b12000-b6b19000 r-xp 00000000 08:06 130824 /lib/librt-2.12.1.so b6b19000-b6b1a000 r--p 00006000 08:06 130824 /lib/librt-2.12.1.so b6b1a000-b6b1b000 rw-p 00007000 08:06 130824 /lib/librt-2.12.1.so b6b1b000-b6b1d000 r-xp 00000000 08:06 1841489 /usr/lib/libgmodule-2.0.so.0.2400.1 b6b1d000-b6b1e000 rw-p 00002000 08:06 1841489 /usr/lib/libgmodule-2.0.so.0.2400.1 b6b1e000-b6b4a000 r-xp 00000000 08:06 1852752 /usr/lib/libfontconfig.so.1.4.4 b6b4a000-b6b4c000 rw-p 0002b000 08:06 1852752 /usr/lib/libfontconfig.so.1.4.4 b6b4c000-b6b4d000 rw-p 00000000 00:00 0 b6b4d000-b6bce000 r-xp 00000000 08:06 1840841 /usr/lib/libfreetype.so.6.6.0 b6bce000-b6bd2000 rw-p 00080000 08:06 1840841 /usr/lib/libfreetype.so.6.6.0 b6bd2000-b6c11000 r-xp 00000000 08:06 1852839 /usr/lib/libpango-1.0.so.0.2800.1 b6c11000-b6c13000 rw-p 0003e000 08:06 1852839 /usr/lib/libpango-1.0.so.0.2800.1 b6c13000-b6c3e000 r-xp 00000000 08:06 1852834 /usr/lib/libpangoft2-1.0.so.0.2800.1 b6c3e000-b6c3f000 rw-p 0002b000 08:06 1852834 /usr/lib/libpangoft2-1.0.so.0.2800.1 b6c3f000-b6cd6000 r-xp 00000000 08:06 1841490 /usr/lib/libgio-2.0.so.0.2400.1 b6cd6000-b6cd8000 rw-p 00097000 08:06 1841490 /usr/lib/libgio-2.0.so.0.2400.1 b6cd8000-b6cf0000 r-xp 00000000 08:06 1840811 /usr/lib/libatk-1.0.so.0.3009.1 b6cf0000-b6cf2000 rw-p 00018000 08:06 1840811 /usr/lib/libatk-1.0.so.0.3009.1 b6cf2000-b6cf3000 rw-p 00000000 00:00 0 b6cf3000-b6cf7000 r-xp 00000000 08:06 1852857 /usr/lib/libXfixes.so.3.1.0 b6cf7000-b6cf8000 rw-p 00003000 08:06 1852857 /usr/lib/libXfixes.so.3.1.0 b6cf8000-b6cfa000 r-xp 00000000 08:06 1853017 /usr/lib/libXdamage.so.1.1.0 b6cfa000-b6cfb000 rw-p 00001000 08:06 1853017 /usr/lib/libXdamage.so.1.1.0 b6cfb000-b6cfd000 r-xp 00000000 08:06 1853012 /usr/lib/libXcomposite.so.1.0.0 b6cfd000-b6cfe000 rw-p 00001000 08:06 1853012 /usr/lib/libXcomposite.so.1.0.0 b6cfe000-b6e14000 r-xp 00000000 08:06 1840437 /usr/lib/libX11.so.6.3.0 b6e14000-b6e18000 rw-p 00115000 08:06 1840437 /usr/lib/libX11.so.6.3.0 b6e18000-b6e22000 r-xp 00000000 08:06 1852849 /usr/lib/libpangocairo-1.0.so.0.2800.1 b6e22000-b6e23000 rw-p 00009000 08:06 1852849 /usr/lib/libpangocairo-1.0.so.0.2800.1Aborted
The above is what I get when I try to start algoscore, it seems to be glibc related
Nathan O <ndowens.aur@gmail.com> writes:
On Tue, Aug 24, 2010 at 8:44 PM, Nathan O <ndowens.aur@gmail.com> wrote:
*** glibc detected *** algoscore: malloc(): memory corruption: 0x0a010ba8
*SNIP lots of backtrace*
The above is what I get when I try to start algoscore, it seems to be glibc related
Actually, it has very little to do with glibc. There's a memory-related bug in that program. I'm curious to see what valgrind has to say about it. Here's what I would do. Edit /etc/makepkg.conf. Disable the strip option in the OPTIONS array. Change CFLAGS to read: CFLAGS='-g -O0' Next, rebuild the package. Run it under valgrind, like this: valgrind --leak-check=full --log-file=valg.log PROGRAM_NAME PROGRAM_OPTIONS If you send me the log file off-list, I'll look over it. You should probably undo the edits to /etc/makepkg.conf when you are done. I keep two copies of makepkg.conf: one for building normal packages, and one for building packages with debugging symbols. -- Chris
On Tue, Aug 24, 2010 at 9:21 PM, Christopher Brannon <cmbrannon79@gmail.com>wrote:
Nathan O <ndowens.aur@gmail.com> writes:
On Tue, Aug 24, 2010 at 8:44 PM, Nathan O <ndowens.aur@gmail.com> wrote:
*** glibc detected *** algoscore: malloc(): memory corruption: 0x0a010ba8
*SNIP lots of backtrace*
The above is what I get when I try to start algoscore, it seems to be glibc related
Actually, it has very little to do with glibc. There's a memory-related bug in that program. I'm curious to see what valgrind has to say about it. Here's what I would do.
Edit /etc/makepkg.conf. Disable the strip option in the OPTIONS array. Change CFLAGS to read: CFLAGS='-g -O0' Next, rebuild the package. Run it under valgrind, like this: valgrind --leak-check=full --log-file=valg.log PROGRAM_NAME PROGRAM_OPTIONS If you send me the log file off-list, I'll look over it. You should probably undo the edits to /etc/makepkg.conf when you are done. I keep two copies of makepkg.conf: one for building normal packages, and one for building packages with debugging symbols.
-- Chris
Thanks for the pointer, to make myself not seem so bad at this. I am currently getting BES to work, which was giving errors at compile time :)
Excerpts from Christopher Brannon's message of 2010-08-25 04:21:13 +0200:
Nathan O <ndowens.aur@gmail.com> writes:
On Tue, Aug 24, 2010 at 8:44 PM, Nathan O <ndowens.aur@gmail.com> wrote:
*** glibc detected *** algoscore: malloc(): memory corruption: 0x0a010ba8
*SNIP lots of backtrace*
The above is what I get when I try to start algoscore, it seems to be glibc related
Actually, it has very little to do with glibc. There's a memory-related bug in that program. I'm curious to see what valgrind has to say about it. Here's what I would do.
Edit /etc/makepkg.conf. Disable the strip option in the OPTIONS array. Change CFLAGS to read: CFLAGS='-g -O0' Next, rebuild the package. Run it under valgrind, like this: valgrind --leak-check=full --log-file=valg.log PROGRAM_NAME PROGRAM_OPTIONS If you send me the log file off-list, I'll look over it. You should probably undo the edits to /etc/makepkg.conf when you are done. I keep two copies of makepkg.conf: one for building normal packages, and one for building packages with debugging symbols.
-- Chris
Another note: Don't forget to change the 'strip' option in the PKGBUILD. !strip should disable it, or just remove it to control it from makepkg.conf alone. -- Philipp -- "Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
Philipp Überbacher <hollunder@lavabit.com> writes:
Another note: Don't forget to change the 'strip' option in the PKGBUILD. !strip should disable it, or just remove it to control it from makepkg.conf alone.
You know what? The advice I gave last night was bogus. The package in question uses cmake as its build system; it fails to respect CFLAGS. I don't know enough about cmake to make it behave, either. -- Chris
Excerpts from Christopher Brannon's message of 2010-08-25 15:08:33 +0200:
Philipp Überbacher <hollunder@lavabit.com> writes:
Another note: Don't forget to change the 'strip' option in the PKGBUILD. !strip should disable it, or just remove it to control it from makepkg.conf alone.
You know what? The advice I gave last night was bogus. The package in question uses cmake as its build system; it fails to respect CFLAGS. I don't know enough about cmake to make it behave, either.
-- Chris
As it happens, this article about algoscore says that it does require either -O2 or -O3 as CFLAGS: http://www.linuxjournal.com/content/algoscore-music-numbers -- Philipp -- "Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
Philipp Überbacher <hollunder@lavabit.com> writes:
As it happens, this article about algoscore says that it does require either -O2 or -O3 as CFLAGS: http://www.linuxjournal.com/content/algoscore-music-numbers
Sorry, but this doesn't seem plausible. I did get some useful output from valgrind. The invalid reads and writes are happening in src/nasal/hash.c, at line 132, in the resize function. The malloc call in that function doesn't seem to be allocating enough memory. The author is aligning his pointers, and the malloc call doesn't account for the padding. I added a fudge factor to malloc's size argument. The patch is here: <http://pastebin.ca/1925235>. Unfortunately, I can't do much to test this program, but I can say that it no longer crashes with a backtrace. -- Chris
Excerpts from Christopher Brannon's message of 2010-08-25 20:12:38 +0200:
Philipp Überbacher <hollunder@lavabit.com> writes:
As it happens, this article about algoscore says that it does require either -O2 or -O3 as CFLAGS: http://www.linuxjournal.com/content/algoscore-music-numbers
Sorry, but this doesn't seem plausible. I did get some useful output from valgrind. The invalid reads and writes are happening in src/nasal/hash.c, at line 132, in the resize function. The malloc call in that function doesn't seem to be allocating enough memory. The author is aligning his pointers, and the malloc call doesn't account for the padding. I added a fudge factor to malloc's size argument. The patch is here: <http://pastebin.ca/1925235>.
Unfortunately, I can't do much to test this program, but I can say that it no longer crashes with a backtrace.
-- Chris
The strange thing here is that it didn't crash when it was built from ROX-filer, which I believe just executes AppRun, a simple shell script to compile algoscore. One thing that causes it to crash here is 'csound_test.as' in the examples folder. The midi_test.as example works fine though. -- Philipp -- "Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
On Wed, Aug 25, 2010 at 1:26 PM, Philipp Überbacher <hollunder@lavabit.com>wrote:
Excerpts from Christopher Brannon's message of 2010-08-25 20:12:38 +0200:
Philipp Überbacher <hollunder@lavabit.com> writes:
As it happens, this article about algoscore says that it does require either -O2 or -O3 as CFLAGS: http://www.linuxjournal.com/content/algoscore-music-numbers
Sorry, but this doesn't seem plausible. I did get some useful output from valgrind. The invalid reads and writes are happening in src/nasal/hash.c, at line 132, in the resize function. The malloc call in that function doesn't seem to be allocating enough memory. The author is aligning his pointers, and the malloc call doesn't account for the padding. I added a fudge factor to malloc's size argument. The patch is here: <http://pastebin.ca/1925235>.
Unfortunately, I can't do much to test this program, but I can say that it no longer crashes with a backtrace.
-- Chris
The strange thing here is that it didn't crash when it was built from ROX-filer, which I believe just executes AppRun, a simple shell script to compile algoscore.
One thing that causes it to crash here is 'csound_test.as' in the examples folder. The midi_test.as example works fine though. -- Philipp
-- "Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
Does anybody want to take over algoscore http://aur.archlinux.org/packages.php?ID=23577 ? I can't get it to work no matter what I try, or delete the package.
Thanks
Excerpts from Nathan O's message of 2010-08-26 02:52:33 +0200:
On Wed, Aug 25, 2010 at 1:26 PM, Philipp Überbacher <hollunder@lavabit.com>wrote:
Excerpts from Christopher Brannon's message of 2010-08-25 20:12:38 +0200:
Philipp Überbacher <hollunder@lavabit.com> writes:
As it happens, this article about algoscore says that it does require either -O2 or -O3 as CFLAGS: http://www.linuxjournal.com/content/algoscore-music-numbers
Sorry, but this doesn't seem plausible. I did get some useful output from valgrind. The invalid reads and writes are happening in src/nasal/hash.c, at line 132, in the resize function. The malloc call in that function doesn't seem to be allocating enough memory. The author is aligning his pointers, and the malloc call doesn't account for the padding. I added a fudge factor to malloc's size argument. The patch is here: <http://pastebin.ca/1925235>.
Unfortunately, I can't do much to test this program, but I can say that it no longer crashes with a backtrace.
-- Chris
The strange thing here is that it didn't crash when it was built from ROX-filer, which I believe just executes AppRun, a simple shell script to compile algoscore.
One thing that causes it to crash here is 'csound_test.as' in the examples folder. The midi_test.as example works fine though. -- Philipp
-- "Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
Does anybody want to take over algoscore http://aur.archlinux.org/packages.php?ID=23577 ? I can't get it to work no matter what I try, or delete the package.
Thanks
What I do when there's an upstream bug is reporting it. Use the bugtracker or some other means to get in touch with the author. -- Philipp -- "Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
On 25 August 2010 21:08, Christopher Brannon <cmbrannon79@gmail.com> wrote:
Philipp Überbacher <hollunder@lavabit.com> writes:
Another note: Don't forget to change the 'strip' option in the PKGBUILD. !strip should disable it, or just remove it to control it from makepkg.conf alone.
You know what? The advice I gave last night was bogus. The package in question uses cmake as its build system; it fails to respect CFLAGS. I don't know enough about cmake to make it behave, either.
A nice way to check whether it actually honoured the environment variables is to invoke: ccmake . -- GPG/PGP ID: B42DDCAD
participants (4)
-
Christopher Brannon
-
Nathan O
-
Philipp Überbacher
-
Ray Rashif