Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge completely shut because of unterminated string
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
Cygon
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2006
Posts: 89
Location: Germany

PostPosted: Mon Jul 21, 2008 5:54 pm    Post subject: emerge completely shut because of unterminated string Reply with quote

Hi!

Over the weekend, I switched my home server from Windows Server 2008 Enterprise (trial - before anyone asks :p) to Gentoo Linux 2008.0 (amd64). I was seeing some strange unterminated string being passed to the kernel:

Quote:

Linux version 2.6.24-gentoo-r7 (root@poseidon) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) #1 SMP Sat Jun 21 06:59:43 UTC 2008
Command line: root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot vga=791Y^ÛóØÐö^A^È´þ¸<v^×å^FÈõA^ÕÑ^KÓú¹O«Ô:^W^Òr=@|_yùÁº^Ü^رþ®öý/o^Ú^Mëá«^_OMØ^F^×ì&^ÄÿÉ»Óü]^À^Ë6^Üß rÇSGò^ÓYõ[lñ)>\7Õ^Fð>å)\Ë6B¿u^Cª^×ÎV^Gé^K¿ú^Éþ¢Xm.^ÍdrRW½Y^×g^Ú^C¤^ÛQ'ñ÷^5÷Vb²Iuf2õ^Ê°ý^ÁÀ¶^U§^Ï7ãÞ÷;9^U^Òg^Y^SÛKÈÅd^Ù_^Óê|äKºpN» ðK´¸¼ "NÇ@ܹ¤À×ÉTÊHõ^Rùc;¨øÁ²^Ñ=PcûmMùÒû^É^YH^Óò^É!


However, the install, chrooting and initial compile from the chrooted environment all worked fine, so I just ignored this.

Well, it came back to haunt me when I changed some compiler flags in my make.conf and ran 'emerge -e world'. Upon unmerging the installed packages, some packages (may very well be those I installed from the original gentoo install cd) fail with

Quote:

/usr/lib/portage/bin/ebuild.sh: line 1496: /bin/touch: Argument list too long


When I look at my environment, I can see nothing wrong. However, in the 'environment' of the affected packages, eg under /var/tmp/binpkgs/app-text/ghostscript-gpl-8.62/temp/environment, the unterminated string pops up again:

Quote:

conf=ghostscript-gpl-8.62-r0
loop=/image.squashfs
looptype=squashfs
vga=$'791Y\233\363\330\320\366\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001
\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001
\001\001\001\001\001\001\001\001\001\001...


That vga string actually goes on until column 262386 :D
It appears a second time at the end of the file:

Quote:

declare -x loop="/image.squashfs"
declare -x looptype="squashfs"
declare -x vga="791Y^ÛóØÐö^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A
^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A
^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A...


I'm a bit lost here. If I understand all this correctly, emerge saves the original environment each package was installed with and, when the package needs to be unmerged, restores that environment in a sandbox or something. Is that right?

That would mean that the kernel/bash/whatever on the gentoo 2008.0 install CD could cope with the unterminated string, but my installed system cannot.

So I guess the question is, how can I persuade my kernel/bash/whatever to handle these huge environments at least until I've done one complete rebuild of my box?
Or is there a way I can removed the $vga environment variable from all affected saved environments?
I would even consider a reinstall as a last measure, however, I need to be sure about how I can avoid this happening again. Would it be enough to unset $vga before emerging anything having booted from the install CD?
Back to top
View user's profile Send private message
Cygon
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2006
Posts: 89
Location: Germany

PostPosted: Mon Jul 21, 2008 5:55 pm    Post subject: Reply with quote

Oh, and FYI, this is already on bugs.gentoo.org from another user:
https://bugs.gentoo.org/222091
Back to top
View user's profile Send private message
Cygon
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2006
Posts: 89
Location: Germany

PostPosted: Tue Jul 22, 2008 5:37 am    Post subject: Reply with quote

Yesterday I erm... sort of deleted my entire /var/db folder in an attempt to extract the environment.bz2 files in there with the --remove-files option (move files to archive).

Well, I've done a reinstall with 'unset vga' before even touching emerge. It's happily building away now with 'emerge -e system', I'll see whether the issues are gone now when I come home.
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