Subject: | crashes in FreeBSD |
Date: | Thu, 09 Aug 2007 00:01:39 +0400 |
To: | bug-audio-akodeplayer [...] rt.cpan.org |
From: | Oleg Baranov <ol [...] csa.ru> |
Hi!
I'm trying to use your just released perl module which interface looks
very nice for me, but I cannot get anything but perl crashes :(
akodeplayer binary works fine on this system.
What I have is:
--------------------------------------------------------------------------------------------------------
cli# uname -a
FreeBSD cli.maris.local 6.2-STABLE FreeBSD 6.2-STABLE #9: Thu Aug 2
21:08:52 UTC 2007 root@cli.maris.local:/usr/src
/sys/i386/compile/CLI i386
cli# akode-config --libs
-L/usr/local/lib -lakode
cli# akode-config --cflags
-I/usr/local/include
cli# akode-config --version
2.0.2
cli# ldd /usr/local/bin/akodeplay
/usr/local/bin/akodeplay:
libakode.so.2 => /usr/local/lib/libakode.so.2 (0x2807b000)
libpthread.so.2 => /lib/libpthread.so.2 (0x28097000)
libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x280bc000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x280c4000)
libm.so.4 => /lib/libm.so.4 (0x2818f000)
libc.so.6 => /lib/libc.so.6 (0x281a5000)
cli# ldd /usr/local/lib/libakode.so.2
/usr/local/lib/libakode.so.2:
libpthread.so.2 => /lib/libpthread.so.2 (0x2817f000)
libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x281a4000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x281ac000)
libm.so.4 => /lib/libm.so.4 (0x28277000)
--------------------------------------------------------------------------------------------------------
I install Audio-aKodePlayer via CPAN shell:
cpan[2]> install Audio::aKodePlayer
Running install for module 'Audio::aKodePlayer'
Running make for P/PA/PAJAS/Audio-aKodePlayer-0.01.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
Checksum for
/root/.cpan/sources/authors/id/P/PA/PAJAS/Audio-aKodePlayer-0.01.tar.gz ok
Scanning cache /root/.cpan/build for sizes
...........................................................-----------------DONE
DEL(1/4): /root/.cpan/build/TermReadKey-2.30
DEL(2/4): /root/.cpan/build/Term-ReadLine-Perl-1.0302
DEL(3/4): /root/.cpan/build/YAML-0.65
DEL(4/4): /root/.cpan/build/Text-Glob-0.08
x Audio-aKodePlayer-0.01/
x Audio-aKodePlayer-0.01/example/
x Audio-aKodePlayer-0.01/example/sample.ogg
x Audio-aKodePlayer-0.01/example/player.pl
x Audio-aKodePlayer-0.01/example/sample.wav
x Audio-aKodePlayer-0.01/example/sample.mp3
x Audio-aKodePlayer-0.01/t/
x Audio-aKodePlayer-0.01/t/01-sinks.pl
x Audio-aKodePlayer-0.01/t/boilerplate.t
x Audio-aKodePlayer-0.01/t/pod-coverage.t
x Audio-aKodePlayer-0.01/t/00-load.t
x Audio-aKodePlayer-0.01/t/10-player.t
x Audio-aKodePlayer-0.01/t/pod.t
x Audio-aKodePlayer-0.01/lib/
x Audio-aKodePlayer-0.01/lib/Audio/
x Audio-aKodePlayer-0.01/lib/Audio/aKodePlayer.pm
x Audio-aKodePlayer-0.01/Changes
x Audio-aKodePlayer-0.01/player.pl
x Audio-aKodePlayer-0.01/MANIFEST
x Audio-aKodePlayer-0.01/typemap
x Audio-aKodePlayer-0.01/aKodePlayer.xs
x Audio-aKodePlayer-0.01/.cvsignore
x Audio-aKodePlayer-0.01/perlobject.map
x Audio-aKodePlayer-0.01/Makefile.PL
x Audio-aKodePlayer-0.01/README
x Audio-aKodePlayer-0.01/META.yml
CPAN: File::Temp loaded ok (v0.18)
CPAN.pm: Going to build P/PA/PAJAS/Audio-aKodePlayer-0.01.tar.gz
Using libs: -L/usr/local/lib -lakode
Using cflags: -I/usr/local/include
Checking if your kit is complete...
Looks good
Writing Makefile for Audio::aKodePlayer
CPAN: YAML loaded ok (v0.65)
cp lib/Audio/aKodePlayer.pm blib/lib/Audio/aKodePlayer.pm
cp player.pl blib/lib/Audio/player.pl
/usr/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -C++
-prototypes -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/
typemap -typemap perlobject.map -typemap typemap aKodePlayer.xs >
aKodePlayer.xsc && mv aKodePlayer.xsc aKodePlayer.c
c++ -c -I/usr/local/include
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -f
no-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -O2 -fno-strict-aliasing -pipe -DVERSION=
\"0.01\" -DXS_VERSION=\"0.01\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.8.8/mach/CORE" aKodePlayer.c
cc1plus: warning: command line option "-Wdeclaration-after-statement" is
valid for C/ObjC but not for C++
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_open(CV*)':
aKodePlayer.c:66: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_DESTROY(CV*)':
aKodePlayer.c:90: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_close(CV*)':
aKodePlayer.c:112: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_load(CV*)':
aKodePlayer.c:136: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void
XS_Audio__aKodePlayer_setDecoderPlugin(CV*)':
aKodePlayer.c:161: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void
XS_Audio__aKodePlayer_setResamplerPlugin(CV*)':
aKodePlayer.c:184: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_unload(CV*)':
aKodePlayer.c:206: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_play(CV*)':
aKodePlayer.c:228: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_stop(CV*)':
aKodePlayer.c:250: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_wait(CV*)':
aKodePlayer.c:272: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_detach(CV*)':
aKodePlayer.c:294: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_pause(CV*)':
aKodePlayer.c:316: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_resume(CV*)':
aKodePlayer.c:338: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_setVolume(CV*)':
aKodePlayer.c:361: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_volume(CV*)':
aKodePlayer.c:385: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_state(CV*)':
aKodePlayer.c:410: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_seek(CV*)':
aKodePlayer.c:435: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_length(CV*)':
aKodePlayer.c:466: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_position(CV*)':
aKodePlayer.c:496: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_seekable(CV*)':
aKodePlayer.c:525: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_eof(CV*)':
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_open(CV*)':
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_decoderError(CV*)':
aKodePlayer.c:585: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_setSampleRate(CV*)':
aKodePlayer.c:615: warning: cast to pointer from integer of different size
aKodePlayer.c: In function `void XS_Audio__aKodePlayer_setSpeed(CV*)':
aKodePlayer.c:641: warning: cast to pointer from integer of different size
Running Mkbootstrap for Audio::aKodePlayer ()
chmod 644 aKodePlayer.bs
rm -f blib/arch/auto/Audio/aKodePlayer/aKodePlayer.so
LD_RUN_PATH="/usr/local/lib" c++ -shared -L/usr/local/lib
aKodePlayer.o -o blib/arch/auto/Audio/aKodePlayer/aKodePlay
er.so -L/usr/local/lib -lakode
chmod 755 blib/arch/auto/Audio/aKodePlayer/aKodePlayer.so
cp aKodePlayer.bs blib/arch/auto/Audio/aKodePlayer/aKodePlayer.bs
chmod 644 blib/arch/auto/Audio/aKodePlayer/aKodePlayer.bs
Manifying blib/man3/Audio::aKodePlayer.3
Manifying blib/man3/Audio::player.3
PAJAS/Audio-aKodePlayer-0.01.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.........ok 1/1# Testing Audio::aKodePlayer 0.01, Perl
5.008008, /usr/bin/perl
t/00-load.........ok
t/10-player.......dubious
Test returned status 0 (wstat 140, 0x8c)
DIED. FAILED tests 2-46
Failed 45/46 tests, 2.17% okay
t/boilerplate.....ok
t/pod-coverage....skipped
all skipped: Test::Pod::Coverage 1.04 required for testing POD
coverage
t/pod.............skipped
all skipped: Test::Pod 1.14 required for testing POD
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/10-player.t 0 140 46 90 2-46
2 tests skipped.
Failed 1/5 test scripts. 45/50 subtests failed.
Files=5, Tests=50, 1 wallclock secs ( 0.23 cusr + 0.11 csys = 0.34 CPU)
Failed 1/5 test programs. 45/50 subtests failed.
*** Error code 255
Stop in /root/.cpan/build/Audio-aKodePlayer-0.01-6pq51a.
PAJAS/Audio-aKodePlayer-0.01.tar.gz
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Failed during this command:
PAJAS/Audio-aKodePlayer-0.01.tar.gz : make_test NO
------------------------------------------------------------------------------------------------------------------------
And if I force-install the module
cli# perl player.pl
Bad system call (core dumped)
First-look investigation showed crash on
my $player = Audio::aKodePlayer->new;
line.
to repeat:
1) set up FreeBSD, add perl from ports
2) set up aKodePlayer from ports (binary or build from source - the same
result)
3) use CPAN to install Audio::aKodePlayer