Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75020 - Bacula 1.36.0 ebuild problem: ACCESS VIOLATION
Summary: Bacula 1.36.0 ebuild problem: ACCESS VIOLATION
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 01:53 UTC by Dirk Heinrichs
Modified: 2006-08-08 04:47 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bacula-1.36.0.ebuild.diff (bacula-1.36.0.ebuild.diff,388 bytes, patch)
2005-01-19 02:34 UTC, INODE64 Sistemas
Details | Diff
cdrecord-configure.patch (cdrecord-configure.patch,522 bytes, patch)
2005-01-19 02:34 UTC, INODE64 Sistemas
Details | Diff
fix typos in bacula-1.36.0.ebuild (fix_typos.diff,1.09 KB, patch)
2005-02-04 10:30 UTC, Carsten Frewert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Heinrichs 2004-12-20 01:53:30 UTC
When I emerge app-admin/bacula-1.36.0, I get the following error:

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-admin_-_bacula-1.36.0-25319.log"

open_wr:   /dev/sg0
open_wr:   /dev/sg0
--------------------------------------------------------------------------------


Reproducible: Always
Steps to Reproduce:
1. emerge bacula

Actual Results:  
 


Portage 2.0.51-r8 (!/linux26-x86-2004.2.profile, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.9 i686) 
================================================================= 
System uname: 2.6.9 i686 Intel(R) Pentium(R) M processor 1500MHz 
Gentoo Base System version 1.6.8 
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 21 2004, 14:22:16)] 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 
sys-devel/binutils:  2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r2 
virtual/os-headers:  2.6.8.1-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" 
DISTDIR="/gentoo/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox" 
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/ 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/gentoo/build" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X Xaw3d aalib acl alsa apm arts avi berkdb bitmap-fonts bluetooth cddb 
cdparanoia cdr crypt cups doc dvd emacs encodefoomaticdb ftp gdbm gif gnokii 
gphoto2 gpm gstreamer gtk2 guile hardened hbci icq imap imlib irda jpeg kde 
koffice-plugin lcms libg++ libwww mad maildir mbox mime motif mpeg mule 
ncurses nls no-old-linux noamazon noantlr nobcel nobeanutils 
nobshnocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro 
noregexp norhino noxalan noxerces nptl nptlonly objcofx oggvorbis opengl oss 
pam pcre pdflib perl perlsuid pic pie png postgres ppds pwdb python qt 
quicktime readline savedconfig sdl slang sms speex spell sse ssl tcltk tcpd 
tetex theora threads tiff truetype unicode wifi wxwindows x86 xine xml2 xmms 
xosd xprint xscreensaver xv zlib linguas_de"
Comment 1 Jacobo Cabaleiro 2004-12-23 11:49:13 UTC
This ebuild also has another small problem: the patch for the configure script in files/ dir is incorrectly named and the ebuild can't find the .diff. Solution: simply rename bacula-3.6.0-configure.diff to bacula-1.36.0-configure.diff and rerun a digest.
Comment 2 INODE64 Sistemas 2005-01-11 03:56:17 UTC
If you have a Pentium M (centrino), no is best uses -march=pentium-m
I have the equal problem, my info is:

Gentoo Base System version 1.4.16
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 AMD Athlon(TM) XP 2100+
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://pupas/Gentoo-portage"
USE="x86 3dnow acpi alsa apache2 avi bitmap-fonts cups curl encode ethereal foomaticdb fortran gif gimpprint hal imagemagick imap javascript jpeg libwww lzw-tiff maildir mikmod mmx ncurses nls nptl oggvorbis opengl pam pdflib pic pie png ppds quicktime readline samba scanner sdl spell sse ssl tiff truetype usb v4l v4l2 vhost xv zlib"


But in this workstation compile ok:

Gentoo Base System version 1.4.16
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/fax /usr/share/config /var/bind /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm avi bitmap-fonts crypt curl encode fam foomaticdb fortran gd gdbm gif gtk2 imap javascript jpeg kde libwww lzw-tiff mad maildir mikmod motif ncurses nls nptl oggvorbis opengl pam pdflib pic pie png ppds quicktime readline samba sdl slang spell ssl tiff usb vhosts xml2 xmms xv zlib"

Comment 3 Michael Hill 2005-01-15 14:50:39 UTC
I have had the same problem ever since the 1.36.0 upgrade ebuild came out, on an Athlon XP system.  I had 1.34.6, which built with no problems.  Up until about a week ago, I was running 2.4.28 kernels; now I'm at 2.6.10-r4.  One thing that *might* have changed since 1.34.6 built:  I might not have had MySQL installed at the time, so it would have defaulted to SQLite.  Now I have MySQL 4.0.23.

I find the following error during the build:

i686-pc-linux-gnu-g++   -c  -DHAVE_WXCONSOLE -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I. \
   -I..   -O3 -march=athlon-xp -funroll-loops -pipe  wxbhistorytextctrl.cpp
i686-pc-linux-gnu-g++ main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o wxbconfigpanel.o wxbconfigfileeditor.o wxbhistorytextctrl.o  -o wx-console -lpthread  -L../lib -pthread -lwx_gtk2-2.4 -lbac
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libwx_gtk2-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[1]: *** [wx-console] Error 1
make[1]: Leaving directory `/var/tmp/portage/bacula-1.36.0/work/bacula-1.36.0/src/wx-console'


   ====== Error in /var/tmp/portage/bacula-1.36.0/work/bacula-1.36.0/src/wx-console ======

I have +wxwindows in my USE variable; I will try rebuilding with it off.
Comment 4 Michael Hill 2005-01-15 15:26:11 UTC
Grrrr...  nope, that would have been too easy.  :^/

I also renamed the patch file...  set "-acl", but the ebuild doesn't seem to reference that flag anyway.  Still always the "/dev/sg0" access error.  Unfortunately, the error is completely disconnected from the place it occurs, and there is no context whatsoever in that logfile.  :^(

Can we PLEASE get some developer attention on this bug??
Comment 5 Tarragon M. Allen 2005-01-18 21:33:54 UTC
The source of the problem is that build process at some point calls "cdrecord". To work around the problem I renamed my cdrecord binary to something else, and now the build works smoothly.
Comment 6 Tarragon M. Allen 2005-01-18 21:36:52 UTC
This bug has also been mentioned on the Bacula bug-tracker with a "can't reproduce" flag. I suspect the tester does not have cdrecord installed.

http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=0000181
Comment 7 INODE64 Sistemas 2005-01-19 02:34:17 UTC
Created attachment 48927 [details, diff]
bacula-1.36.0.ebuild.diff

This fix solver this problem
The configure search the cdr, remove this check and compile ok
Comment 8 INODE64 Sistemas 2005-01-19 02:34:46 UTC
Created attachment 48928 [details, diff]
cdrecord-configure.patch

remove check of cdr
Comment 9 Carsten Frewert 2005-02-04 10:30:43 UTC
Created attachment 50355 [details, diff]
fix typos in  bacula-1.36.0.ebuild

The attached patch fixes a typo in a use flag, a make target, a directory name
and a comment, respectively.
Comment 10 D. Scott Barninger 2005-02-06 06:21:06 UTC
This bug has been fixed with a configure patch in bacula-1.36.1-r3.ebuild released to the bacula sourceforge page.
Comment 11 Jesse D. Guardiani 2005-03-10 10:10:04 UTC
This problem seems to persist in 1.36.2, so I've sent a reminder to the bugs.bacula.org tracker.
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-13 17:42:38 UTC
zul: would you like to join app-backup?
Comment 13 Josiah Ritchie (flickerfly) 2005-04-01 12:39:56 UTC
Basically an affirmation and confirmation of all stated above me:

Installed with 'FEATURES="-sandbox" emerge -uDv bacula' as suggested and it seems to have worked nicely. Another machine without cdrecord on it did not need this.
Comment 14 Fernando Serboncini (RETIRED) gentoo-dev 2005-07-02 21:04:56 UTC
This is fixed in the new 1.36.3-r1.ebuild.
Please check and if the bug still persists, reopen the bug.
Comment 15 Thomas Veith 2006-02-17 08:35:23 UTC
with app-backup/bacula-1.36.3-r3 the problem reappears again :(

could someone reopen that bug?

>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-backup_-_bacula-1.36.3-r3-6844.log"

open_wr:   /dev/sg0
open_wr:   /dev/sg0
--------------------------------------------------------------------------------

Comment 16 Fabian Groffen gentoo-dev 2006-08-08 04:47:08 UTC
also on 1.38.9?