Open p5pRT opened 12 years ago
TRying to cross-debootstrap from x86 system to armhf i get an error configuring cron: Setting up cron (3.0pl1-120+b1) ... Can't set $0 with prctl(): Bad address at /usr/sbin/addgroup line 86.
related /usr/sbin/addgroup lines:
85 my $nogroup_id = getgrnam("nogroup") || 65534; 86 $0 =~ s+.*/++; 87 88 our $verbose = 1; # should we be verbose?
this does not happen if the target rootfs is armel instead of armhf. I've been discussing (asking for help better said)\, in arm-debian-mailing list and they 've pointed me in this direction.
Dominic Dumont said: Well\, according to perlvar(1) (look for \$0)\, modifying $0 is not portable. (In this case\, I don't see the point: addgroup program is short lived\, hence shortening the process name is not likely to be useful.)
Since perl5.14\, prctl is used to modify the process name through $0. prctl may have issues on older kernel.
This may be a perl 5.14 bug. OTOH\, changing $0 in addgroup is a bad idea.
The weird thing is if i install and amd64 kernel in my x86 system and try to debootstrap everithing works fine. So\, this bug may be only reproducible in x86 systems with 686 (or below) kernels.
Thanks.
Iker
@dcollinsn - Status changed from 'new' to 'stalled'
Migrated from rt.perl.org#108792 (status was 'stalled')
Searchable as RT108792$