Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird emerge problem caused by minecraft script in /usr/bin?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mole
n00b
n00b


Joined: 07 Nov 2009
Posts: 19

PostPosted: Tue May 22, 2012 10:25 am    Post subject: Weird emerge problem caused by minecraft script in /usr/bin? Reply with quote

I'm getting a problem using zenity - *** glibc detected *** zenity: malloc(): memory corruption: 0x080ad8f0 *** - zenity was working OK a couple of days ago; re-emerged it and all packages it depends on but no change.

Very strange output from emerging gettext (also from emerging swig later) -
Code:
>>> Source configured.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-12731.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: remove
S: deny
P: ./world/level.dat_old
A: /data/graham-homedir/minecraft_server/world/level.dat_old
R: /data/graham-homedir/minecraft_server/world/level.dat_old
C: /usr/lib/jvm/sun-jdk-1.6/bin/java -Xms32M -Xmx512M -jar minecraft_server.jar nogui

F: rename
S: deny
P: ./world/level.dat
A: /data/graham-homedir/minecraft_server/world/level.dat
R: /data/graham-homedir/minecraft_server/world/level.dat
C: /usr/lib/jvm/sun-jdk-1.6/bin/java -Xms32M -Xmx512M -jar minecraft_server.jar nogui

repeated hundreds more times, then

F: remove
S: deny
P: ./world/level.dat
A: /data/graham-homedir/minecraft_server/world/level.dat
R: /data/graham-homedir/minecraft_server/world/level.dat
C: unable to read /proc/13755/cmdline


/var/log/sandbox/sandbox-12731.log just contains the same output.

Deleting the minecraft_server folder and also deleting the startup scripts /usr/bin/mine and /usr/bin/mcs solved it, but I can't understand why it seems to be parsing (one of) those files? They weren't present before I created them, and nothing by that name appeared after emerging gettext and swig.

Anyone able to shed any light on this? or the malloc() error running zenity?

I'm updating world at the moment then thinking emerge -e system if that doesn't work? Probably caused by old references to gcc 4.5.2 lying around when I'm using 4.5.3 (caused one emerge to fail until I re-emerged libtool)


Output of emerge --info:

Code:
emerge --info
Portage 2.1.10.57 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.15-r2, 2.6.38.7 i686)
=================================================================
System uname: Linux-2.6.38.7-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.1
Timestamp of tree: Tue, 22 May 2012 00:05:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.3-r2, 3.1.3-r1
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.3.4, 4.5.3-r2
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo seden ltsp
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://rsync.uk.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/seden /var/lib/layman/ltsp"
SYNC="rsync://home/gentoo-portage"
USE="X aac accessibility acl alsa amr apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdr cgi cli cracklib crypt css ctype cups cxx dba dbus dri dvd dvdr emboss encode ethereal exif expat faac faad fam fastbuild firefox foomaticdb force-cgi-redirect ftp gd gdbm gecko-mediaplayer gif glibc-omitfp glut gmp gpm gsm gstreamer guile hal iconv idn ieee1394 imlib jack java javascript jpeg jpeg2k kde lcms libg++ libwww ltsp mad maildir memlimit midi mikmod mmx mmxext mng modules motif mozilla mp3 mpeg mudflap mysql ncurses networking nls nptl nsplugin ntplonly objc objc++ objc-gc ogg opengl openmp oss pam pcre pdflib perl png posix ppds pppd python qt3 qt3support qt4 quicktime readline rtc samba scanner sdl semantic-desktop server session simplexml slang soap sockets speex spell spl sqlite sse sse2 sse3 ssl svg tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb utempter v4l v4l2 valias vdpau vhosts vmware_guest_windows vorbis win32codecs x86 xine xml xml2 xmms xorg xscreensaver xsl xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 8864
Location: beyond the rim

PostPosted: Tue May 22, 2012 12:01 pm    Post subject: Reply with quote

Quote:
and also deleting the startup scripts /usr/bin/mine and /usr/bin/mcs solved it, but I can't understand why it seems to be parsing (one of) those files?

Well, those names are generic enough that they might be used by other packages as well with a completely different purpose, and the build system tries to call those but encounters your scripts first during PATH lookup. Just a guess though.
Back to top
View user's profile Send private message
mole
n00b
n00b


Joined: 07 Nov 2009
Posts: 19

PostPosted: Tue May 22, 2012 1:01 pm    Post subject: Reply with quote

Genone wrote:
Quote:
and also deleting the startup scripts /usr/bin/mine and /usr/bin/mcs solved it, but I can't understand why it seems to be parsing (one of) those files?

Well, those names are generic enough that they might be used by other packages as well with a completely different purpose, and the build system tries to call those but encounters your scripts first during PATH lookup. Just a guess though.


Yes, I think you're right -

Code:
Summary   Configuration file abstraction system
Description   mcs is a library and set of userland tools which abstract the storage of
configuration settings away from userland applications.

It is hoped that by using mcs, that the applications which use it will
generally have a more congruent feeling in regards to settings.

There have been other projects like this before (such as GConf), but unlike
those projects, mcs strictly handles abstraction. It does not impose any
specific data storage requirement, nor is it tied to any desktop environment or
software suite.


Although there's no mcs in portage, there's a few RPM's of it appearing on Google. Maybe testing for mcs hasn't been disabled in sandbox (or ...?), even though mcs isn't used on Gentoo (equery can't find it).

Zenity is working again 300 emerges into world update (of over 900 in total), guess it needed doing anyway.... :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum