#include #include int main(){ xine_t *xine; xine_stream_t * mstream; int rv; char *url = "/home/vikky/Shared/Dave Matthews Band - Two Step.mp3"; xine = xine_new(); xine_config_load(xine, "/home/vikky/.xine/config"); xine_init(xine); mstream = xine_stream_new(xine, NULL,NULL); printf("Status: %i\n",xine_get_error(mstream)); if(!mstream){ printf("stream error\n"); return 1; } rv = xine_open(mstream, url); printf("title=%s\n",xine_get_meta_info (mstream,XINE_META_INFO_TITLE )); xine_close(mstream); xine_dispose(mstream); xine_exit(xine); printf("return 0;\n"); return 0; } <> gcc test2.c -lxine -g <> ./a.out Status: 0 title=Two Step return 0; Segmentation fault (gdb) bt #0 0x00007fffedf7388d in ?? () from /lib64/libselinux.so.1 #1 0x00007fffedf6629f in selinux_file_context_cmp () from /lib64/libselinux.so.1 #2 0x0000000000000000 in ?? () (gdb) valgrind ./a.out [snip] ==19610== Invalid read of size 8 ==19610== at 0xF7EC88D: (within /lib64/libselinux.so.1) ==19610== by 0xF7DF29E: (within /lib64/libselinux.so.1) ==19610== by 0xF7EE820: (within /lib64/libselinux.so.1) ==19610== by 0x50B959C: exit (in /lib64/libc-2.9.so) ==19610== by 0x50A157C: (below main) (in /lib64/libc-2.9.so) ==19610== Address 0x88 is not stack'd, malloc'd or (recently) free'd ==19610== ==19610== Process terminating with default action of signal 11 (SIGSEGV) ==19610== Access not within mapped region at address 0x88 ==19610== at 0xF7EC88D: (within /lib64/libselinux.so.1) ==19610== by 0xF7DF29E: (within /lib64/libselinux.so.1) ==19610== by 0xF7EE820: (within /lib64/libselinux.so.1) ==19610== by 0x50B959C: exit (in /lib64/libc-2.9.so) ==19610== by 0x50A157C: (below main) (in /lib64/libc-2.9.so)