Debian Bug report logs - #688785
xbmc: Fatal: can't open /dev/urandom: Bad address

version graph

Package: xbmc; Maintainer for xbmc is Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>; Source for xbmc is src:xbmc.

Reported by: Julian Andres Klode <jak@debian.org>

Date: Tue, 25 Sep 2012 16:33:04 UTC

Severity: important

Tags: moreinfo, unreproducible

Found in version xbmc/2:11.0~git20120510.82388d5-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jak@debian.org, Team XBMC <team-xbmc@lists.launchpad.net>:
Bug#688785; Package xbmc. (Tue, 25 Sep 2012 16:33:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julian Andres Klode <jak@debian.org>:
New Bug report received and forwarded. Copy sent to jak@debian.org, Team XBMC <team-xbmc@lists.launchpad.net>. (Tue, 25 Sep 2012 16:33:07 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Julian Andres Klode <jak@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: xbmc: Fatal: can't open /dev/urandom: Bad address
Date: Tue, 25 Sep 2012 18:29:23 +0200
[Message part 1 (text/plain, inline)]
Package: xbmc
Version: 2:11.0~git20120510.82388d5-1
Severity: grave

I installed xbmc and ran xmbc from the command-line, but it crashed.

jak@jak-thinkpad:~$ xbmc
Fatal: can't open /dev/urandom: Bad address
Aborted (core dumped)
find: "/home/jak/.xbmc/": Datei oder Verzeichnis nicht gefunden
Crash report available at /home/jak/xbmc_crashlog-20120925_182815.log
jak@jak-thinkpad:~$ cat /home/jak/xbmc_crashlog-20120925_182815.log
############## XBMC CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Tue Sep 25 18:28:15 CEST 2012
 XBMC Options: 
 Arch: x86_64
 Kernel: Linux 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012
 Release: 
    Distributor ID:	Debian
    Description:	Debian GNU/Linux unstable (sid)
    Release:	unstable
    Codename:	sid
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/jak/core (2012-09-25 18:28:15.220621179 +0200)
        =========================================
[New LWP 17855]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/lib/xbmc/xbmc.bin'.
Program terminated with signal 6, Aborted.
#0  0x00007f6294530475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64

Thread 1 (Thread 0x7f629efcc7a0 (LWP 17855)):
#0  0x00007f6294530475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f62945336f0 in *__GI_abort () at abort.c:92
#2  0x00007f629a428174 in _gcry_logv (level=40, fmt=0x7f629a48cd89 "can't open %s: %s\n", arg_ptr=0x7fff28d72608) at misc.c:141
#3  0x00007f629a428604 in _gcry_log_fatal (fmt=<optimized out>) at misc.c:229
#4  0x00007f629a46bc88 in open_device (name=0x7f629a48c881 "/dev/urandom") at rndlinux.c:66
#5  open_device (name=0x7f629a48c881 "/dev/urandom") at rndlinux.c:60
#6  0x00007f629a46bf50 in _gcry_rndlinux_gather_random (add=0x7f629a469550 <add_randomness>, origin=RANDOM_ORIGIN_SLOWPOLL, length=120, level=1) at rndlinux.c:122
#7  0x00007f629a4692d0 in read_random_source (orgin=<optimized out>, length=<optimized out>, level=<optimized out>) at random-csprng.c:1283
#8  0x00007f629a46a174 in random_poll () at random-csprng.c:1109
#9  read_pool (level=0, length=8, buffer=0x7f629a69b8e4 "") at random-csprng.c:1003
#10 _gcry_rngcsprng_randomize (buffer=0x7f629a69b8e4, length=8, level=<optimized out>) at random-csprng.c:551
#11 0x00007f629a46a8ed in _gcry_rngcsprng_create_nonce (buffer=0x7fff28d72bcf, length=1) at random-csprng.c:1377
#12 0x00007f6291f148d3 in wrap_gcry_rnd_init (ctx=<optimized out>) at rnd.c:39
#13 0x00007f6291ebfd19 in _gnutls_rnd_init () at random.c:39
#14 0x00007f6291eaefc5 in gnutls_global_init () at gnutls_global.c:236
#15 0x00007f629d26238b in MHD_init () at daemon.c:2727
#16 0x00007f629eee5f80 in ?? () from /lib64/ld-linux-x86-64.so.2
#17 0x00007f629eee6077 in ?? () from /lib64/ld-linux-x86-64.so.2
#18 0x00007f629eed8b2a in ?? () from /lib64/ld-linux-x86-64.so.2
#19 0x0000000000000001 in ?? ()
#20 0x00007fff28d745a8 in ?? ()
#21 0x0000000000000000 in ?? ()
############# END STACK TRACE ###############

################# LOG FILE ##################

Logfile not found in the usual place.
Please attach it seperately.
Use pastebin.com or similar for forums or IRC.

############### END LOG FILE ################

############ END XBMC CRASH LOG #############


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xbmc depends on:
ii  fonts-liberation [ttf-liberation]  1.07.2-5
ii  mesa-utils                         8.0.1-2+b3
ii  python                             2.7.3-2
ii  python-imaging                     1.1.7-4
ii  python-support                     1.0.15
ii  ttf-dejavu-core                    2.33-3
ii  x11-utils                          7.7~1
ii  xbmc-bin                           2:11.0~git20120510.82388d5-1+b1

Versions of packages xbmc recommends:
pn  python-qt3  <none>

xbmc suggests no packages.

-- no debconf information

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Team XBMC <team-xbmc@lists.launchpad.net>:
Bug#688785; Package xbmc. (Sat, 29 Sep 2012 22:24:20 GMT) Full text and rfc822 format available.

Acknowledgement sent to Catalin Patulea <cat@vv.carleton.ca>:
Extra info received and forwarded to list. Copy sent to Team XBMC <team-xbmc@lists.launchpad.net>. (Sat, 29 Sep 2012 22:24:20 GMT) Full text and rfc822 format available.

Message #10 received at 688785@bugs.debian.org (full text, mbox):

From: Catalin Patulea <cat@vv.carleton.ca>
To: 688785@bugs.debian.org
Subject: Re: xbmc: Fatal: can't open /dev/urandom: Bad address
Date: Sat, 29 Sep 2012 17:54:53 -0400
I can't repro this on sid, xbmc starts up just fine. What is the
output of this command:

dd if=/dev/urandom of=/dev/null bs=1k count=1

You should see something like this:

1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000531848 s, 1.9 MB/s



Information forwarded to debian-bugs-dist@lists.debian.org, Team XBMC <team-xbmc@lists.launchpad.net>:
Bug#688785; Package xbmc. (Tue, 02 Oct 2012 13:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to anarcat <anarcat@anarcat.ath.cx>:
Extra info received and forwarded to list. Copy sent to Team XBMC <team-xbmc@lists.launchpad.net>. (Tue, 02 Oct 2012 13:57:03 GMT) Full text and rfc822 format available.

Message #15 received at 688785@bugs.debian.org (full text, mbox):

From: anarcat <anarcat@anarcat.ath.cx>
To: Julian Andres Klode <jak@debian.org>, 688785@bugs.debian.org
Subject: Re: Bug#688785: xbmc: Fatal: can't open /dev/urandom: Bad address
Date: Tue, 2 Oct 2012 09:55:45 -0400
[Message part 1 (text/plain, inline)]
tags 688785 +unreproducible
thanks

I am running xbmc under wheezy with this exact same version without
problems.

A.

-- 
The idea that Bill Gates has appeared like a knight in shining armour to
lead all customers out of a mire of technological chaos neatly ignores
the fact that it was he who, by peddling second-rate technology, led
them into it in the first place. - Douglas Adams (1952-2001)
[signature.asc (application/pgp-signature, inline)]

Added tag(s) unreproducible. Request was from anarcat <anarcat@anarcat.ath.cx> to control@bugs.debian.org. (Tue, 02 Oct 2012 13:57:04 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Team XBMC <team-xbmc@lists.launchpad.net>:
Bug#688785; Package xbmc. (Sat, 13 Oct 2012 23:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steve McIntyre <steve@einval.com>:
Extra info received and forwarded to list. Copy sent to Team XBMC <team-xbmc@lists.launchpad.net>. (Sat, 13 Oct 2012 23:06:03 GMT) Full text and rfc822 format available.

Message #22 received at 688785@bugs.debian.org (full text, mbox):

From: Steve McIntyre <steve@einval.com>
To: 688785@bugs.debian.org
Subject: Also can't reproduce, downgrading
Date: Sun, 14 Oct 2012 00:02:29 +0100
severity 688785 important
thanks

I've also just installed and run that exact same version here with no
issues at all. Downgrading...

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
< liw> everything I know about UK hotels I learned from "Fawlty Towers"




Severity set to 'important' from 'grave' Request was from Steve McIntyre <steve@einval.com> to control@bugs.debian.org. (Sun, 14 Oct 2012 10:12:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian XBMC Packaging Team <pkg-xbmc-maintainers@lists.alioth.debian.org>:
Bug#688785; Package xbmc. (Wed, 11 Sep 2013 20:15:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Tautschnig <mt@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian XBMC Packaging Team <pkg-xbmc-maintainers@lists.alioth.debian.org>. (Wed, 11 Sep 2013 20:15:05 GMT) Full text and rfc822 format available.

Message #29 received at 688785@bugs.debian.org (full text, mbox):

From: Michael Tautschnig <mt@debian.org>
To: 688785@bugs.debian.org
Subject: /dev/urandom problem is reproducible
Date: Wed, 11 Sep 2013 20:56:57 +0100
[Message part 1 (text/plain, inline)]
tags 688785 -unreproducible
usertags 688785 +goto-cc
thanks

I am observing the problem reported by the op in any build (i.e., this is fully
reproducible) using pbuilder inside a clean wheezy chroot. Here, configure fails
as shown below, even though /dev/urandom appears to be fine:

dd if=/var/cache/pbuilder/build/cow.29648/dev/urandom of=/dev/null bs=1k count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000126361 s, 8.1 MB/s

configure:23921: ./conftest
Fatal: can't open /dev/urandom: Bad address
./configure: line 2092: 27840 Aborted                 ./conftest$ac_exeext
configure:23921: $? = 134
configure: program exited with status 134
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xbmc"
| #define PACKAGE_TARNAME "xbmc"
| #define PACKAGE_VERSION "11.0"
| #define PACKAGE_STRING "xbmc 11.0"
| #define PACKAGE_BUGREPORT "http://trac.xbmc.org"
| #define PACKAGE_URL ""
| #define PACKAGE "xbmc"
| #define VERSION "11.0"
| #define LIRC_DEVICE "/dev/lircd"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CHOWN 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FSEEKO 1
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_ALARM 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| #define RETSIGTYPE void
| #define HAVE_STRCOLL 1
| #define HAVE_STRFTIME 1
| #define HAVE_UTIME_NULL 1
| #define HAVE_VPRINTF 1
| #define HAVE_ATEXIT 1
| #define HAVE_DUP2 1
| #define HAVE_FDATASYNC 1
| #define HAVE_FTIME 1
| #define HAVE_FTRUNCATE 1
| #define HAVE_GETCWD 1
| #define HAVE_GETHOSTBYADDR 1
| #define HAVE_GETHOSTBYNAME 1
| #define HAVE_GETHOSTNAME 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_GETPASS 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_INET_NTOA 1
| #define HAVE_LCHOWN 1
| #define HAVE_LOCALECONV 1
| #define HAVE_MEMCHR 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MEMSET 1
| #define HAVE_MKDIR 1
| #define HAVE_MODF 1
| #define HAVE_MUNMAP 1
| #define HAVE_RMDIR 1
| #define HAVE_SELECT 1
| #define HAVE_SETENV 1
| #define HAVE_SETLOCALE 1
| #define HAVE_SOCKET 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRCHR 1
| #define HAVE_STRCSPN 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_STRPBRK 1
| #define HAVE_STRRCHR 1
| #define HAVE_STRSPN 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOL 1
| #define HAVE_STRTOUL 1
| #define HAVE_SYSINFO 1
| #define HAVE_TZSET 1
| #define HAVE_UTIME 1
| #define SIZEOF_INT 4
| #define SIZEOF_SIZE_T 8
| #define HAVE_INOTIFY 1
| #define HAVE_LIBGL 1
| #define HAVE_LIBGLEW 1
| #define HAVE_LIBGLU 1
| #define HAVE_OPENSSL 1
| #define HAVE_LIBGCRYPT 1
| #define HAVE_GCRYPT 1
| #define HAVE_LIBBZ2 1
| #define HAVE_LIBJPEG 1
| #define HAVE_LIBTIFF 1
| #define HAVE_LIBPTHREAD 1
| #define HAVE_LIBLZO2 1
| #define HAVE_LIBZ 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_LIBSSL 1
| #define HAVE_LIBMYSQLCLIENT 1
| #define HAVE_LIBBLUETOOTH 1
| #define HAVE_LIBYAJL 1
| #define HAVE_LIBTINYXML 1
| #define HAVE_LIBPCRE 1
| #define HAVE_LIBPCRECPP 1
| #define HAVE_LIBBLURAY 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBRESOLV 1
| #define HAVE_LIBJASPER 1
| #define HAVE_LIBRT 1
| #define HAVE_DBUS 1
| #define HAVE_LIBSDL_MIXER 1
| #define HAVE_LIBSDL_IMAGE 1
| #define HAVE_SDL 1
| #define HAVE_LIBMICROHTTPD 1
| #define HAS_DVD_DRIVE 1
| #define HAVE_LIBPULSE 1
| #define HAS_HAL 1
| #define HAVE_LIBAVAHI_COMMON 1
| #define HAVE_LIBAVAHI_CLIENT 1
| #define HAVE_X11 1
| #define HAVE_LIBXRANDR 1
| #define HAVE_LIBRTMP_LOG_H 1
| #define HAVE_LIBRTMP_AMF_H 1
| #define HAVE_LIBRTMP_RTMP_H 1
| #define HAS_LIBRTMP 1
| #define HAVE_LIBSMBCLIENT 1
| #define HAVE_LIBSMBCLIENT 1
| #define HAVE_NFSC_LIBNFS_H 1
| #define HAVE_LIBNFS 1
| #define HAVE_LIBPLIST 1
| #define HAVE_LIBSHAIRPORT 1
| #define HAVE_LIBUDEV 1
| #define HAVE_LIBAVCODEC_AVCODEC_H 1
| #define HAVE_LIBAVFILTER_AVFILTER_H 1
| #define HAVE_LIBAVFORMAT_AVFORMAT_H 1
| #define HAVE_LIBAVUTIL_AVUTIL_H 1
| #define HAVE_LIBPOSTPROC_POSTPROCESS_H 1
| #define HAVE_LIBSWSCALE_SWSCALE_H 1
| #define HAVE_LIBAVUTIL_MEM_H 1
| #define HAVE_LIBAVUTIL_SAMPLEFMT_H 1
| #define HAVE_LIBAVUTIL_OPT_H 1
| #define USE_EXTERNAL_FFMPEG 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| int
| main ()
| {
| avcodec_register_all();
|         AVCodec *codec = avcodec_find_decoder_by_name("vc1_vdpau");
|         return (codec) ? 0 : 1;
|   ;
|   return 0;
| }
configure:23925: error: == External ffmpeg doesn't support VDPAU. VDPAU support disabled. ==

Best,
Michael


[Message part 2 (application/pgp-signature, inline)]

Removed tag(s) unreproducible. Request was from Michael Tautschnig <mt@debian.org> to control@bugs.debian.org. (Wed, 11 Sep 2013 20:15:08 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian XBMC Packaging Team <pkg-xbmc-maintainers@lists.alioth.debian.org>:
Bug#688785; Package xbmc. (Mon, 23 Dec 2013 21:12:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Balint Reczey <balint@balintreczey.hu>:
Extra info received and forwarded to list. Copy sent to Debian XBMC Packaging Team <pkg-xbmc-maintainers@lists.alioth.debian.org>. (Mon, 23 Dec 2013 21:12:04 GMT) Full text and rfc822 format available.

Message #36 received at 688785@bugs.debian.org (full text, mbox):

From: Balint Reczey <balint@balintreczey.hu>
To: Michael Tautschnig <mt@debian.org>
Cc: 688785@bugs.debian.org, control <control@bugs.debian.org>
Subject: Re: /dev/urandom problem is reproducible
Date: Mon, 23 Dec 2013 22:07:27 +0100
[Message part 1 (text/plain, inline)]
tags 688785 unreproducible moreinfo
thanks

Hi Michael,

To my understanding the original (xbmc) bug is about xbmc crashing.
What you reproduced looks more like [1].

Please consider closing the bug or moving it to pbuilder.

Thanks,
Balint

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603744

On 09/11/2013 09:56 PM, Michael Tautschnig wrote:
> tags 688785 -unreproducible
> usertags 688785 +goto-cc
> thanks
> 
> I am observing the problem reported by the op in any build (i.e., this is fully
> reproducible) using pbuilder inside a clean wheezy chroot. Here, configure fails
> as shown below, even though /dev/urandom appears to be fine:
> 
> dd if=/var/cache/pbuilder/build/cow.29648/dev/urandom of=/dev/null bs=1k count=1
> 1+0 records in
> 1+0 records out
> 1024 bytes (1.0 kB) copied, 0.000126361 s, 8.1 MB/s
> 
> configure:23921: ./conftest
> Fatal: can't open /dev/urandom: Bad address
> ./configure: line 2092: 27840 Aborted                 ./conftest$ac_exeext
> configure:23921: $? = 134
> configure: program exited with status 134
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "xbmc"
> | #define PACKAGE_TARNAME "xbmc"
> | #define PACKAGE_VERSION "11.0"
> | #define PACKAGE_STRING "xbmc 11.0"
...
> | #define HAVE_LIBSWSCALE_SWSCALE_H 1
> | #define HAVE_LIBAVUTIL_MEM_H 1
> | #define HAVE_LIBAVUTIL_SAMPLEFMT_H 1
> | #define HAVE_LIBAVUTIL_OPT_H 1
> | #define USE_EXTERNAL_FFMPEG 1
> | /* end confdefs.h.  */
> | #include <libavcodec/avcodec.h>
> | int
> | main ()
> | {
> | avcodec_register_all();
> |         AVCodec *codec = avcodec_find_decoder_by_name("vc1_vdpau");
> |         return (codec) ? 0 : 1;
> |   ;
> |   return 0;
> | }
> configure:23925: error: == External ffmpeg doesn't support VDPAU. VDPAU support disabled. ==
> 
> Best,
> Michael
> 
> 


[signature.asc (application/pgp-signature, attachment)]

Added tag(s) unreproducible and moreinfo. Request was from Balint Reczey <balint@balintreczey.hu> to control@bugs.debian.org. (Mon, 23 Dec 2013 21:12:08 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 13:04:49 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.