Precise Puppy 5.7.1

Please post any bugs you have found
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#391 Post by mavrothal »

linuxcbon wrote:
mavrothal wrote:grub-probe was not in precise-5.7.1.
Use grub4dos
I know, but I am writing bugs here, I am not asking for tips :D . (I could also use syslinux or lilo or whatever bootloader, why do you only recommend grub4dos)...
Sorry. Posting after the 5.7.2 update I thought you are referring to the update rather than the 14-month old precise 5.7.1.

I'm sure you know it but for the others, grub-probe is part of the grub-common package that one can get through PPM from the ubuntu repo.
Anyway, I attach a pet that contains grub-probe only. Let us know if it is sufficient for grub to work, or if it also needs more of the grub-common utilities or libs.

The reason I pointed to grub4dos and not other boot loaders, is because this is in the menu and a puppy-staple.
Attachments
grub-probe-1.99.pet
extracted from the grub-common_1.99-21ubuntu3_i386.deb
(164.86 KiB) Downloaded 439 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#392 Post by linuxcbon »

Ah I see, you added some patches and called it precise 5.7.2, because there is no official precise 5.7.2.
Anyway grub-probe should be included by default. Still one program is missing, dpkg-query.
Last edited by linuxcbon on Sat 25 Oct 2014, 18:50, edited 2 times in total.

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#393 Post by linuxcbon »

Trying to install grub legacy (version 0.97) to a usb stick , it tries to detect hardware from bios and because my pc doesn't have a floppy disk, grub legacy takes CPU and memory to very full, takes a lot of time.

Code: Select all

# grub --version
grub (GNU GRUB 0.97)

Code: Select all

# grub-install --root-directory=/mnt/sdb1 /dev/sdb
Or

Code: Select all

# grub-install /dev/sdb
Causes :

Code: Select all

Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
And dmesg shows :

Code: Select all

[  455.203296] end_request: I/O error, dev fd0, sector 0
[  467.348881] end_request: I/O error, dev fd0, sector 0
[  467.348889] Buffer I/O error on device fd0, logical block 0
(old bug for version 0.97 https://bugs.launchpad.net/ubuntu/+sour ... bug/352787)
Last edited by linuxcbon on Tue 04 Nov 2014, 20:09, edited 1 time in total.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#394 Post by mavrothal »

linuxcbon wrote:Anyway grub-probe should be included by default. Still one program is missing, dpkg-query.
I thought I noticed you mentioned the grub worked OK on aHD with grub-probe. Did it or not?
dpkg-query is just informing grub of the installed packages (that's what dpkg-query does in general). Is not required for grub function.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#395 Post by linuxcbon »

mavrothal wrote:I thought I noticed you mentioned the grub worked OK on aHD with grub-probe. Did it or not?
dpkg-query is just informing grub of the installed packages (that's what dpkg-query does in general). Is not required for grub function.
No , grub didn't work, first try was a typo...I corrected the message.

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#396 Post by linuxcbon »

gparted : for fat32 , it needs these programs to work : dosfstools and mtools.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#397 Post by don570 »

For people using the Chinese language and Precise 5.7.1...

I made a special page on installing Chinese menus when using LANG=zh_CN
http://www.murga-linux.com/puppy/viewtopic.php?t=87045

Image

_____________________________________________

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#398 Post by LazY Puppy »

Hi.

While doing some work on this I have found a issue in precise 5.7.1.

The file /etc/DISTRO_SPECS in main sfs is different to the file /DISTRO_SPECS in initrd.gz. The one in initrd.gz is missing this:

Code: Select all

#multiarch distros, such as Ubuntu, will have this. ex: /usr/lib/i386-linux-gnu, so DISTRO_ARCHDIR=i386-linux-gnu
DISTRO_ARCHDIR='i386-linux-gnu'
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

RickGT351
Posts: 289
Joined: Tue 27 Sep 2011, 22:02
Location: Auckland, New Zealand

Precise Puppy 5.71

#399 Post by RickGT351 »

I have used Puppy Package Manager on several occasions today on a fresh install and after selecting the file and where to download it from, I get the message that the file is not available and to update PPM.
Did that and it made no difference.
I have had to resort to using a search engine to search for dependencies - which is a pain

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#400 Post by linuxcbon »

Anyone tried to install fglrx ? I installed omega-14.12 but it crashes the pc.

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#401 Post by linuxcbon »

Here are steps :
- install devx
- install kernel 3.9.11 patched
- run amd-driver-installer-14.501.1003-x86.x86_64.run
- modprobe fglrx
- I didnt reboot the machine, so maybe the bug comes from there
- exit from X with ctrl alt backspace
- start xwin
- X starts at 1920x1080 but with black borders, doesnt show full screen.
- starting firefox freezes computer

- dmesg :

Code: Select all

[24406.957122] fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[24406.957127] Disabling lock debugging due to kernel taint
[24406.972475] <6>[fglrx] Maximum main memory to use for locked dma buffers: 3886 MBytes.
[24406.972642] <6>[fglrx]   vendor: 1002 device: 6739 revision: 0 count: 1
[24406.972976] <6>[fglrx] ioport: bar 4, base 0xee00, size: 0x100
[24406.973186] <6>[fglrx] Kernel PAT support is enabled
[24406.973207] <6>[fglrx] module loaded - fglrx 14.50.2 [Nov 20 2014] with 1 minors
[24406.978688] <6>[fglrx] module unloaded - fglrx 14.50.2 [Nov 20 2014]
[24599.099139] <6>[fglrx] Maximum main memory to use for locked dma buffers: 3886 MBytes.
[24599.099307] <6>[fglrx]   vendor: 1002 device: 6739 revision: 0 count: 1
[24599.100296] <6>[fglrx] ioport: bar 4, base 0xee00, size: 0x100
[24599.100507] <6>[fglrx] Kernel PAT support is enabled
[24599.100529] <6>[fglrx] module loaded - fglrx 14.50.2 [Nov 20 2014] with 1 minors
[24659.372340] ------------[ cut here ]------------
[24659.372348] WARNING: at drivers/pci/msi.c:834 pci_enable_msi_block+0x85/0x21b()
[24659.372350] Hardware name: GA-MA78GM-UD2H
[24659.372352] Modules linked in: fglrx(PO) nls_cp850 cpufreq_ondemand acpi_cpufreq mperf pcspkr r8169 firewire_ohci firewire_core radeon drm_kms_helper ttm drm agpgart i2c_algo_bit k10temp snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore snd_page_alloc i2c_piix4 i2c_core shpchp wmi parport_pc parport evdev button processor thermal_sys hwmon fbcon font bitblit softcursor tileblit fuse aufs squashfs [last unloaded: fglrx]
[24659.372384] Pid: 684, comm: X Tainted: P           O 3.9.11 #1
[24659.372386] Call Trace:
[24659.372392]  [<c1024742>] ? warn_slowpath_common+0x69/0x7c
[24659.372395]  [<c11c25be>] ? pci_enable_msi_block+0x85/0x21b
[24659.372398]  [<c1024762>] ? warn_slowpath_null+0xd/0x10
[24659.372400]  [<c11c25be>] ? pci_enable_msi_block+0x85/0x21b
[24659.372484]  [<fbb9e4ff>] ? IRQMGR_initialize+0x28f/0x400 [fglrx]
[24659.372553]  [<fbbb73bf>] ? firegl_trace+0x1f/0x180 [fglrx]
[24659.372628]  [<fbb9c8a4>] ? irqmgr_wrap_initialize+0x24/0xd0 [fglrx]
[24659.372693]  [<fbb9df90>] ? firegl_irqmgr_init+0x60/0x130 [fglrx]
[24659.372760]  [<fbbb221b>] ? hal_init_gpu+0x26b/0x590 [fglrx]
[24659.372822]  [<fbbb73bf>] ? firegl_trace+0x1f/0x180 [fglrx]
[24659.372886]  [<fbb85884>] ? firegl_open+0x344/0x380 [fglrx]
[24659.372946]  [<fbb76f08>] ? ip_firegl_open+0xf/0x12 [fglrx]
[24659.373002]  [<fbb76b77>] ? firegl_stub_open+0x79/0xb5 [fglrx]
[24659.373007]  [<c108a061>] ? chrdev_open+0xf5/0x113
[24659.373010]  [<c1089f6c>] ? cdev_put+0x17/0x17
[24659.373012]  [<c1086115>] ? do_dentry_open.isra.16+0x12e/0x1c7
[24659.373014]  [<c10861c7>] ? finish_open+0x19/0x23
[24659.373017]  [<c1090a8f>] ? do_last.isra.51+0x791/0x924
[24659.373020]  [<c108e5b7>] ? __inode_permission+0x23/0x4d
[24659.373023]  [<c1090cbc>] ? path_openat.isra.52+0x9a/0x320
[24659.373025]  [<c109114a>] ? do_filp_open+0x23/0x5c
[24659.373028]  [<c10991e7>] ? __alloc_fd+0x46/0xb8
[24659.373031]  [<c1086b86>] ? do_sys_open+0xff/0x17a
[24659.373033]  [<c108819b>] ? __fput+0x183/0x193
[24659.373035]  [<c1086c20>] ? sys_open+0x1f/0x23
[24659.373039]  [<c136a8fe>] ? sysenter_do_call+0x12/0x26
[24659.373041] ---[ end trace 3c5e5e943e254f45 ]---
[24659.373079] radeon 0000:01:00.0: irq 45 for MSI/MSI-X
[24659.373089] radeon 0000:01:00.0: irq 46 for MSI/MSI-X
[24659.373098] ------------[ cut here ]------------
[24659.373101] WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0x6e/0x7f()
[24659.373102] Hardware name: GA-MA78GM-UD2H
[24659.373104] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:02.0/0000:01:00.0/msi_irqs'
[24659.373105] Modules linked in: fglrx(PO) nls_cp850 cpufreq_ondemand acpi_cpufreq mperf pcspkr r8169 firewire_ohci firewire_core radeon drm_kms_helper ttm drm agpgart i2c_algo_bit k10temp snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore snd_page_alloc i2c_piix4 i2c_core shpchp wmi parport_pc parport evdev button processor thermal_sys hwmon fbcon font bitblit softcursor tileblit fuse aufs squashfs [last unloaded: fglrx]
[24659.373128] Pid: 684, comm: X Tainted: P        W  O 3.9.11 #1
[24659.373129] Call Trace:
[24659.373131]  [<c1024742>] ? warn_slowpath_common+0x69/0x7c
[24659.373133]  [<c10c6104>] ? sysfs_add_one+0x6e/0x7f
[24659.373136]  [<c10247bd>] ? warn_slowpath_fmt+0x29/0x2d
[24659.373140]  [<c10c6104>] ? sysfs_add_one+0x6e/0x7f
[24659.373143]  [<c10c6230>] ? create_dir+0x54/0x8a
[24659.373145]  [<c10c648b>] ? sysfs_create_dir+0x77/0x90
[24659.373148]  [<c119dd4b>] ? kobject_add_internal+0x9f/0x161
[24659.373150]  [<c119e270>] ? kset_register+0x1c/0x30
[24659.373152]  [<c119e2ce>] ? kset_create_and_add+0x4a/0x5e
[24659.373154]  [<c11c21ff>] ? populate_msi_sysfs+0x1b/0xb7
[24659.373157]  [<c11c2702>] ? pci_enable_msi_block+0x1c9/0x21b
[24659.373217]  [<fbb9e4ff>] ? IRQMGR_initialize+0x28f/0x400 [fglrx]
[24659.373278]  [<fbbb73bf>] ? firegl_trace+0x1f/0x180 [fglrx]
[24659.373339]  [<fbb9c8a4>] ? irqmgr_wrap_initialize+0x24/0xd0 [fglrx]
[24659.373400]  [<fbb9df90>] ? firegl_irqmgr_init+0x60/0x130 [fglrx]
[24659.373462]  [<fbbb221b>] ? hal_init_gpu+0x26b/0x590 [fglrx]
[24659.373523]  [<fbbb73bf>] ? firegl_trace+0x1f/0x180 [fglrx]
[24659.373582]  [<fbb85884>] ? firegl_open+0x344/0x380 [fglrx]
[24659.373638]  [<fbb76f08>] ? ip_firegl_open+0xf/0x12 [fglrx]
[24659.373693]  [<fbb76b77>] ? firegl_stub_open+0x79/0xb5 [fglrx]
[24659.373697]  [<c108a061>] ? chrdev_open+0xf5/0x113
[24659.373699]  [<c1089f6c>] ? cdev_put+0x17/0x17
[24659.373701]  [<c1086115>] ? do_dentry_open.isra.16+0x12e/0x1c7
[24659.373705]  [<c10861c7>] ? finish_open+0x19/0x23
[24659.373707]  [<c1090a8f>] ? do_last.isra.51+0x791/0x924
[24659.373709]  [<c108e5b7>] ? __inode_permission+0x23/0x4d
[24659.373712]  [<c1090cbc>] ? path_openat.isra.52+0x9a/0x320
[24659.373715]  [<c109114a>] ? do_filp_open+0x23/0x5c
[24659.373717]  [<c10991e7>] ? __alloc_fd+0x46/0xb8
[24659.373719]  [<c1086b86>] ? do_sys_open+0xff/0x17a
[24659.373722]  [<c108819b>] ? __fput+0x183/0x193
[24659.373724]  [<c1086c20>] ? sys_open+0x1f/0x23
[24659.373726]  [<c136a8fe>] ? sysenter_do_call+0x12/0x26
[24659.373728] ---[ end trace 3c5e5e943e254f46 ]---
[24659.373730] ------------[ cut here ]------------
[24659.373732] WARNING: at lib/kobject.c:196 kobject_add_internal+0x123/0x161()
[24659.373734] Hardware name: GA-MA78GM-UD2H
[24659.373735] kobject_add_internal failed for msi_irqs with -EEXIST, don't try to register things with the same name in the same directory.
[24659.373736] Modules linked in: fglrx(PO) nls_cp850 cpufreq_ondemand acpi_cpufreq mperf pcspkr r8169 firewire_ohci firewire_core radeon drm_kms_helper ttm drm agpgart i2c_algo_bit k10temp snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore snd_page_alloc i2c_piix4 i2c_core shpchp wmi parport_pc parport evdev button processor thermal_sys hwmon fbcon font bitblit softcursor tileblit fuse aufs squashfs [last unloaded: fglrx]
[24659.373760] Pid: 684, comm: X Tainted: P        W  O 3.9.11 #1
[24659.373761] Call Trace:
[24659.373763]  [<c1024742>] ? warn_slowpath_common+0x69/0x7c
[24659.373765]  [<c119ddcf>] ? kobject_add_internal+0x123/0x161
[24659.373768]  [<c10247bd>] ? warn_slowpath_fmt+0x29/0x2d
[24659.373771]  [<c119ddcf>] ? kobject_add_internal+0x123/0x161
[24659.373773]  [<c119e270>] ? kset_register+0x1c/0x30
[24659.373775]  [<c119e2ce>] ? kset_create_and_add+0x4a/0x5e
[24659.373778]  [<c11c21ff>] ? populate_msi_sysfs+0x1b/0xb7
[24659.373780]  [<c11c2702>] ? pci_enable_msi_block+0x1c9/0x21b
[24659.373841]  [<fbb9e4ff>] ? IRQMGR_initialize+0x28f/0x400 [fglrx]
[24659.373905]  [<fbbb73bf>] ? firegl_trace+0x1f/0x180 [fglrx]
[24659.373966]  [<fbb9c8a4>] ? irqmgr_wrap_initialize+0x24/0xd0 [fglrx]
[24659.374029]  [<fbb9df90>] ? firegl_irqmgr_init+0x60/0x130 [fglrx]
[24659.374098]  [<fbbb221b>] ? hal_init_gpu+0x26b/0x590 [fglrx]
[24659.374180]  [<fbbb73bf>] ? firegl_trace+0x1f/0x180 [fglrx]
[24659.374256]  [<fbb85884>] ? firegl_open+0x344/0x380 [fglrx]
[24659.374330]  [<fbb76f08>] ? ip_firegl_open+0xf/0x12 [fglrx]
[24659.374402]  [<fbb76b77>] ? firegl_stub_open+0x79/0xb5 [fglrx]
[24659.374422]  [<c108a061>] ? chrdev_open+0xf5/0x113
[24659.374441]  [<c1089f6c>] ? cdev_put+0x17/0x17
[24659.374458]  [<c1086115>] ? do_dentry_open.isra.16+0x12e/0x1c7
[24659.374477]  [<c10861c7>] ? finish_open+0x19/0x23
[24659.374497]  [<c1090a8f>] ? do_last.isra.51+0x791/0x924
[24659.374515]  [<c108e5b7>] ? __inode_permission+0x23/0x4d
[24659.374534]  [<c1090cbc>] ? path_openat.isra.52+0x9a/0x320
[24659.374554]  [<c109114a>] ? do_filp_open+0x23/0x5c
[24659.374559]  [<c10991e7>] ? __alloc_fd+0x46/0xb8
[24659.374561]  [<c1086b86>] ? do_sys_open+0xff/0x17a
[24659.374563]  [<c108819b>] ? __fput+0x183/0x193
[24659.374566]  [<c1086c20>] ? sys_open+0x1f/0x23
[24659.374568]  [<c136a8fe>] ? sysenter_do_call+0x12/0x26
[24659.374570] ---[ end trace 3c5e5e943e254f47 ]---
[24659.374580] <6>[fglrx] Could not enable MSI; System prevented initialization
[24659.375487] <6>[fglrx] Firegl kernel thread PID: 686
[24659.375547] <6>[fglrx] Firegl kernel thread PID: 687
[24659.375603] <6>[fglrx] Firegl kernel thread PID: 688
[24659.375701] <6>[fglrx] IRQ 43 Enabled
[24659.474383] <6>[fglrx] Reserved FB block: Shared offset:0, size:1000000 
[24659.474389] <6>[fglrx] Reserved FB block: Unshared offset:fac2000, size:4000 
[24659.474393] <6>[fglrx] Reserved FB block: Unshared offset:fac6000, size:53a000 
[24659.474397] <6>[fglrx] Reserved FB block: Unshared offset:3fff3000, size:d000 

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#402 Post by linuxcbon »

Sometimes, it's impossible to umount a mounted partition, it says "kernel" is using it.
ps : I found out how, when mounting a SFS, then it's not possible to unmount the partition where that sfs is. (used by "kernel").
Last edited by linuxcbon on Tue 10 Mar 2015, 00:24, edited 3 times in total.

User avatar
bambuko
Posts: 578
Joined: Wed 14 Nov 2007, 14:03
Location: North Devon

#403 Post by bambuko »

session wrote:...full installation with Precise 5.7 is a bit off. For one thing, the universal installer insisted on seeing an existing puppy installation when I was installing to a completely empty ext2 partition...
I have experienced the same when doing full install on my PC:
Processor : 2x Intel(R) Pentium(R) Dual CPU E2140 @ 1.60GHz
Memory : 1022MB (45MB used)
Display Resolution : 1600x1200 pixels
Operating System : Precise Puppy - 5.7.1
Kernel : Linux 3.9.11 (i686)
Version : #1 SMP Sat Jul 27 19:40:54 GMT-8 2013
C Library : GNU C Library version 2.15 (stable)
Distribution : Precise Puppy - 5.7.1
The only real disappointment is grub load - my previous version of Puppy was Lucid 5.2.8 and grub was so simple (comparatively speaking)...

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#404 Post by don570 »

I tested the latest daily build of Audacity on Precise 5.7.1

http://www.murga-linux.com/puppy/viewtopic.php?t=97038

Only one bug found so far. Sliding Time Scale / Pitch Shift effect
_______________________________________________

User avatar
Billtoo
Posts: 3720
Joined: Tue 07 Apr 2009, 13:47
Location: Ontario Canada

#405 Post by Billtoo »

New install to a 32gb flash drive, pc is a hp desktop.

video-info-glx 1.5.3 Fri 2 Jan 2015 on Precise Puppy 5.7.1 Linux 3.9.11 i686
0.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Redwood PRO [Radeon HD 5500 Series]
oem: ATI ATOMBIOS
product: REDWOOD 01.00

X Server: Xorg Driver: fglrx
X.Org version: 1.11.3
dimensions: 3840x1080 pixels (1015x285 millimeters)
depth of root window: 24 planes

direct rendering: Yes
server glx vendor string: ATI
server glx version string: 1.4
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 5570
OpenGL version string: 4.4.13283 Compatibility Profile Context 14.501.1003

# glxgears
303 frames in 5.0 seconds = 60.555 FPS
301 frames in 5.0 seconds = 60.000 FPS
301 frames in 5.0 seconds = 60.000 FPS
#

AMD Phenom(tm) II X6 1045T Processor
Core 0: @800 1: @800 2: @800 3: @800 4: @800 5: @800 MHz

Network controller: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe

Using radky's FbBox.

Working well.
Attachments
image-2.jpg
(103.1 KiB) Downloaded 851 times
image-1.jpg
(90.57 KiB) Downloaded 868 times

yr1945
Posts: 212
Joined: Sat 17 Apr 2010, 18:38

Deleted... wrong thread.

#406 Post by yr1945 »

Deleted... wrong thread.

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#407 Post by s243a »

Edit Disregard this post. See following post.

Long and short bug synopsis

chroot isn't working for me.

My test script
I created a script called suEcho

Code: Select all

pwd
su -c "sh /scripts/echoHome" spot
and put it in:
/root/spot/usr/sbin/

The error I found within the strace output

running

Code: Select all

strace chroot /root/spot suEcho
I get this error:

Code: Select all

execve("/usr/sbin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOEXEC (Exec format error)
here is the full strace output

Code: Select all

execve("/sbin/chroot", ["chroot", "/root/spot", "suEcho"], [/* 57 vars */]) = 0
brk(0)                                  = 0x80f7000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7748000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/sse2/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2/cmov", 0xbfdd8ef0) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/sse2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2", 0xbfdd8ef0) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/cmov", 0xbfdd8ef0) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbfdd8ef0)     = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2/cmov", 0xbfdd8ef0) = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfdd8ef0)     = -1 ENOENT (No such file or directory)
open("/lib/tls/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/cmov", 0xbfdd8ef0)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbfdd8ef0)          = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2/cmov", 0xbfdd8ef0) = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbfdd8ef0)    = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/cmov", 0xbfdd8ef0)    = -1 ENOENT (No such file or directory)
open("/lib/i686/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbfdd8ef0)         = -1 ENOENT (No such file or directory)
open("/lib/sse2/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2/cmov", 0xbfdd8ef0)    = -1 ENOENT (No such file or directory)
open("/lib/sse2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfdd8ef0)         = -1 ENOENT (No such file or directory)
open("/lib/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/cmov", 0xbfdd8ef0)         = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\226\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1730024, ...}) = 0
mmap2(NULL, 1739484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb759f000
mmap2(0xb7742000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a3) = 0xb7742000
mmap2(0xb7745000, 10972, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7745000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb759e000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb759d000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb759d6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7742000, 8192, PROT_READ)   = 0
mprotect(0xb776a000, 4096, PROT_READ)   = 0
getpid()                                = 13626
brk(0)                                  = 0x80f7000
brk(0x8118000)                          = 0x8118000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb759c000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb759c000, 4096)                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=345, ...}) = 0
mmap2(NULL, 345, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb759c000
close(3)                                = 0
open("/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26256, ...}) = 0
mmap2(NULL, 26256, PROT_READ, MAP_SHARED, 3, 0) = 0xb7595000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7594000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=51, ...}) = 0
mmap2(NULL, 51, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7593000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=142, ...}) = 0
mmap2(NULL, 142, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7592000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap2(NULL, 62, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7591000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7590000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/en_CA.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb758f000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap2(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb758e000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1243766, ...}) = 0
mmap2(NULL, 1243766, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb745e000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2454, ...}) = 0
mmap2(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb745d000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb745c000
close(3)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=256356, ...}) = 0
mmap2(NULL, 256356, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb741d000
close(3)                                = 0
getuid32()                              = 0
chroot("/root/spot")                    = 0
chdir("/")                              = 0
execve("/bin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/bin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/sbin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/sbin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOEXEC (Exec format error)
execve("/bin/sh", ["/bin/sh", "/usr/sbin/suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/bin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/X11R7/bin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/root/my-applications/bin/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/games/suEcho", ["suEcho"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_CA.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_CA.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_CA/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_CA.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_CA.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_CA/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "chroot: can't execute 'suEcho': "..., 58chroot: can't execute 'suEcho': No such file or directory
More on what I was trying to do

Had chroot worked than suEcho would call echoHome which is this short script:

Code: Select all

cd ~
pwd
What I wanted to test is if I could create a jail in precise this way for sandboxing. I created a little discussion about sandboxing in the security forum (See thread).

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#408 Post by s243a »

Please disregard my previous post because:
1. chroot can't execute script files. but it can execute sh via busybox. If I use this command instead

Code: Select all

strace chroot /root/spot sh "suEcho"
then I get no error about not being able to find sh. However, I do get lots of errors about not finding libc which bings me to:

2. A sandbox will need access to a minimal set of libraries. As a minimum libc will be needed. I'm sure more will be needed as well.

In short this was not a bug in precise but a misunderstanding by me of how chroot works.

april

What is this release 32bit or 64 bit

#409 Post by april »

I have Precise Puppy 5.7.1 but what I don't understand is whether it is 32 bit or 64 bit .

I don't really understand what the difference is except that info is transfered 64 bits at a time I suppose.

I downloaded an Arduino IDE program and got the 32 bit version and it ran fine up until now . Now I downloaded the 64 bit IDE and I have some sort of a mismatch going on and the IDE refuses to start and run . It starts but complains "

Java HotSpot(TM) Server VM warning: You have loaded library /opt/arduino-1.6.4/lib/libastylej.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
java.lang.UnsatisfiedLinkError: /opt/arduino-1.6.4/lib/libastylej.so: /opt/arduino-1.6.4/lib/libastylej.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

/opt/arduino-1.6.4/lib/libastylej.so: /opt/arduino-1.6.4/lib/libastylej.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
Cannot load native library /opt/arduino-1.6.4/lib/libastylej.so
The program has terminated!
#

" and closes down

Can someone explain what is going on or maybe what to put in the command "execstack -c <libfile>', or link it with '-z noexecstack'." for <libfile> mentioned above ?

This is my processor
AMD Athlon 64 microprocessor family - CPU-World ...
AMD Athlon 64 is a 64-bit microprocessor based on K8 architecture and designed for desktop computers. These microprocessors include all basic features of K8 micro-architecture, such as split 128 KB level 1 cache, exclusive 512 KB or 1 MB level 2 cache, AMD64 technology, Enhanced Virus Protection

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#410 Post by dancytron »

Precise Puppy 5.7.1 is 32 bit.

Post Reply