[vlc] Re: Cross Compile VLC for mips32

Arthur Chiu arthurchiu at gmail.com
Wed Oct 12 18:51:00 CEST 2005


Hi, thanks for your reply. The function that prints this error message out
is actually the "Read" function in <VLC-0.8.2>/modules/access/file.c, around
line 404 or so. It uses a function call "read", which is defined by the C
function "fread", which reads from a file stream to a buffer pointed by the
pointer passed in. Seems like it is returning a -1, meaning read failed. I
haven't find what function calls this "Read" function in file.c yet though.
Here's a more detailed log when I ran VLC.

[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: module bank initialized, found 155 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities
[00000001] main vlc debug: looking for memcpy module: 1 candidate
[00000021] main module debug: using memcpy module "memcpy"
[00000195] main playlist debug: waiting for thread completion
[00000195] main playlist debug: thread 1026 (playlist) created at priority 0
(src/playlist/playlist.c:152)
[00000196] main private debug: waiting for thread completion
[00000196] main private debug: thread 2051 (preparser) created at priority 0
(src/playlist/playlist.c:174)
[00000197] main interface debug: looking for interface module: 1 candidate
[00000123] main module debug: using interface module "hotkeys"
[00000197] main interface debug: interface initialized
[00000197] main interface debug: thread 3076 (interface) created at priority
0 (src/interface/interface.c:211)
[00000195] main playlist debug: adding playlist item `../complete_58.mp3' (
../complete_58.mp3 )
[00000198] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized, `h' for help
[00000121] main module debug: using interface module "rc"
[00000198] main interface debug: interface initialized
[00000198] main interface debug: thread 4101 (manager) created at priority 0
(src/interface/interface.c:196)
[00000195] main playlist debug: creating new input thread
[00000199] main input debug: waiting for thread completion
[00000199] main input debug: `../complete_58.mp3' gives access `' demux `'
path `../complete_58.mp3'
[00000199] main input debug: creating demux: access='' demux=''
path='../complete_58.mp3'
[00000200] main demuxer debug: looking for access_demux module: 0 candidates
[00000200] main demuxer warning: no access_demux module matched "any"
[00000199] main input debug: creating access '' path='../complete_58.mp3'
[00000201] main access debug: looking for access2 module: 2 candidates
[00000199] main input debug: thread 5126 (input) created at priority 0
(src/input/input.c:230)
[00000201] access_file access debug: opening file `../complete_58.mp3'
[00000106] main module debug: using access2 module "access_file"
[00000202] main private debug: pre buffering
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
 [00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
[00000201] access_file access error: read failed (Bad address)
signal 2 received, terminating vlc - do it again in case it gets stuck
<----------- WHEN I PRESS CTRL+C
[00000201] access_file access error: read failed (Bad address)
[00000001] main vlc debug: removing all interfaces
[00000198] main interface debug: thread 4101 joined
(src/interface/interface.c:238)
[00000121] main module debug: unlocking module "rc"
[00000197] main interface debug: thread 3076 joined
(src/interface/interface.c:238)
[00000123] main module debug: unlocking module "hotkeys"
[00000001] main vlc debug: removing all playlists
[00000196] main private debug: thread 2051 joined
(src/playlist/playlist.c:206)
[00000202] main private debug: prebuffering done 0 bytes in 4s - 0 kbytes/s
[00000202] main private error: cannot pre fill buffer
[00000199] main input warning: cannot create a stream_t from access
[00000106] main module debug: unlocking module "access_file"
[00000199] main input debug: thread 5126 joined (src/input/input.c:386)
[00000195] main playlist debug: thread 1026 joined
(src/playlist/playlist.c:207)
[00000195] main playlist: stopping playback
[00000195] main playlist debug: deleting playlist item `../complete_58.mp3'
[00000001] main vlc debug: removing all video outputs
[00000001] main vlc debug: removing all audio outputs
[00000001] main vlc debug: removing announce handler
[00000021] main module debug: unlocking module "memcpy"

The same file can be played by vlc-0.8.1 (on an x86 machine though) which is
downloaded directly through yum. So I wouldn't assume VLC-0.8.2 is broken
would it? Thanks a lot.

Cheers,

Arthur



On 10/12/05, Rémi Denis-Courmont <rem at videolan.org> wrote:
>
> Le Mardi 11 Octobre 2005 23:55, Arthur Chiu a écrit :
> > I tried to compile using --disable-plugins and make everything built
> > in, and I don't get the seg fault anymore. However, I am getting an
> > error saying:
> >
> > [00000178] access_file access error: read failed (Bad address)
>
> What errno is that ? I can't find it in the specification for POSIX
> read.
>
> Also, please try the latest 0.8.4-test release. I think some linking
> problems were fixed since 0.8.2.
>
> --
> Rémi Denis-Courmont
> http://www.simphalempin.com/home/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20051012/a28d8914/attachment.html>


More information about the vlc mailing list