Segmentation fault in ncurses
Hello, I am not on this mailing list and I am not able to debug the following issue. It is just for information since a segmentation fault may be an issue on a OpenBSD base system library. The system I am using is very old (Oct. 2016) but ncurses likely does not have changed much since then: OpenBSD 6.0-current (GENERIC) #2384: Fri Oct 14 00:06:17 MDT 2016 What I am trying to do is to display UTF-8 chars using wadd_wchnstr(). Then it crashes in lib_addstr.c:186 (I don't have the source). If this is not relevant, just ignore the mail and sorry for the noise. Program received signal SIGSEGV, Segmentation fault. wadd_wchnstr (win=0x15c8a6049a00, astr=0x15c664e47e28, n=4) at /usr/src/lib/libcurses/base/lib_addstr.c:186 186 /usr/src/lib/libcurses/base/lib_addstr.c: No such file or directory. in /usr/src/lib/libcurses/base/lib_addstr.c (gdb) bt #0 wadd_wchnstr (win=0x15c8a6049a00, astr=0x15c664e47e28, n=4) at /usr/src/lib/libcurses/base/lib_addstr.c:186 #1 0x15c664c20f56 in putmbs (w=0x15c8a6049a00, s=0x15c885e05100 "�\207İ", n=4) at ui2.c:1287 ... following trace is not relevant.
Re: Encrypted data partition
Stefan Sperling wrote: > > So it would really be great to have an up-to-date EncFS... > > This might be a good opportunity for you to give ports development a go > ;-) I even would be interested, but I need it for both OpenBSD *and* NetBSD. A year ago I tried to update their pkgsrc version 1.2 to a current version, which did compile but not work. My hope was to port the working OpenBSD package to NetBSD :) If upstream would have any interest to give debug support on NetBSD, I'd like to update the OpenBSD package too. Carsten
Re: Encrypted data partition
Julian Suschlik wrote: > What about an encrypted backup to the USB drive and restore on the other > host? Preserves links and permissions. Can do deduplication and updates. > Borgbackup does this. You can carry binaries of the software for Linux and > OpenBSD on the USB drive. Indeed an interesting tool. Unfortunately I already have a special data sync tool (does not encrypt). So I need a transparent encryption file system layer :) Carsten
Re: Encrypted data partition
OpenBSD lists wrote: > For sharing encrypted data between OpenBSD and Linux, I just use an > OpenBSD-based file server and connect to it over NFS (using SSH to > secure the connection) > > The file server is an old Intel Core-2 box with 4x 1 TB hard drives in a > softraid-5 configuration and a pair of 10 GB IDE disks for the OS using > hardware RAID. I shut the machine down each night to keep the data safe. > > > Much simpler configuration than hoping that the disk encryption software > stays compatible between builds (EG, the Linux version may upgrade to > use some kind of Linux-only technology that can't be adapted to work on > OpenBSD) or that the disk encryption software is even secure in the > first place. This is for two reasons not of use for me: The Linux and the OpenBSD systems are kilometers apart and the OpenBSD system is in a network which allows no access from the internet. So I have to transfer data with a USB flash drive. Also in most cases ssh does not support changing mtime of symlinks, which is required for fast data synchronization (compare mtime instead of readlink). For this reason I even use USB when the two systems are in the same network. So it would really be great to have an up-to-date EncFS... Carsten
Re: Encrypted data partition
Gregor Best wrote: > I just installed EncFS from ports, the version there is 1.7.4 > > With some short testing, it looks like it works nicely. Thank you for this information and the test. But it should be taken into account that this version is 6 years old, current release is 1.9.1. (It would be great of course if the package maintainer would find the time to update the package to a somewhat newer version some day :) Carsten
Re: Encrypted data partition
Gregor Best wrote: > EncFS seems to be the most sensible option. Are you using EncFS on OpenBSD? Which EncFS version? Carsten
Re: Encrypted data partition
Jan Betlach wrote: > I'd like to have an encrypted Ext2 data partition, which can be shared > between OpenBSD and Linux. LUKS probably does not work in OpenBSD. Maybe > something like EncFS is the way to go? I need the same and tried EncFS (cloned from GitHub) a year ago. It compiles but doesn't work. I asked upstream for support but they are not interested, they don't care for anything but Linux. Which makes EncFS pointless--since there is LUKS--why should anyone use EncFS? (rhetorical question, don't answer) If you get (a current version of) EncFS or any other portable encryption method to work, I would be very interested! (But don't code it yourself, if you're not already an expert in this field.) Carsten
[OT] cwm: Keep window above all other windows
Hi, is there an *easy way* for put and always keep a window above all other windows (like "layer 0 " in fvwm)? It did not find something (working) in the manpage. --Carsten
OT: groff issue
Ingo Schwarze wrote: > No. Pure run-time configuration. Read > > /usr/local/share/doc/pkg-readmes/groff-1.22.3p2 I am not sure if it is really necessary to change the general groff settings just to use this settings for man pages. I had the same problem long time ago. Indeed there is a readme and it's the users fault to not read it. But groff is expected to work out of the box, so I assume many others may not be aware of this readme. Would it not be better to just patch the -man and -mdoc macros and not changing groff's settings for typesetting? --Carsten
ncursesw header not found
Hello, in /usr/lib there seems to be the ncursesw library but I don't find a ncursesw header file (expected as something like .../ncursesw/curses.h). I also don't find a curses package to install. Is there ncursesw support for OpenBSD? I found threads from 2010, but I'm not sure if they are still valid today. --Carsten
ncurses and ncursesw share same header?
curses, ncurses and ncursesw library seem to be hard links to one file. So that means that with the -l option I decide which functions I use and always simply include ? (At least this states the curses manpage.)
Inconsistency in utimes(2) manpage
Hello, the DESCRIPTION section of utimes(2) refers to "path" while the SYNOPSIS section uses the term "file". Maybe the term "path" should be used instead of "file" in SYNOPSIS. Carsten
Re: text-mode gui
Luke Small wrote: >[...] It would be very easy to write a > C >program to parse and edit fstab to make all the partitions softdep. I >wouldn't know how to automate a disklabel call in the way that >https://www.vultr.com/docs/setup-openbsd-5-6-with-full-disk-encryption >performs it. [...] Not necessary that you tinker with a C programm, there is already sed(1) which can change fstab and disklabel. The current installer is just perfect. For any additional task a generic method would be that you write a shell script which does your complete personal system configuration.
Re: "cp -p" does not preserve the mtime of symlinks
Ted Unangst wrote: > Probably not intended. Just an artifact left over from the era before you > could set times on symlinks. (not likely that many people care, either.) I do care--I have a sync software (similar to rsync) which compares mtime and length. lstat needs do be done anyway so there are just two integer compares instead of two readlink and strcmp. This software "failes" after a "cp -RpP". If a patch is accepted I'd like to file a bug report with a patch. Carsten
"cp -p" does not preserve the mtime of symlinks
Hello, "cp -p" seems to not preserve the modification time of symlinks. This is not mentioned in the man page. Other systems I tested (others BSDs and Linux) do preserve the mtime of symlinks with e.g. "cp -a". The OpenBSD kernel also does support to set it with e.g. utimensat(2). Is this intented? If not--is it an known issue? How to reproduce: ln -s foo bar ... wait some time ... cp -p bar blah -> bar and blah have different mtimes. Carsten
Re: Install snapshot failes
Hello, > In this particular case I would like to know if you're booting off > softraid or not. A dmesg would have told me. installboot still fails with the latest snapshot. This time I have a dmesg: OpenBSD 5.8-current (RAMDISK_CD) #1514: Fri Nov 27 22:55:36 MST 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 8474304512 (8081MB) avail mem = 8215760896 (7835MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xed6e0 (97 entries) bios0: vendor Dell Inc. version "A14" date 04/10/2015 bios0: Dell Inc. Latitude E6540 acpi0 at bios0: rev 2 acpi0: tables DSDT FACP APIC FPDT SLIC LPIT SSDT SSDT SSDT SSDT HPET SSDT MCFG SSDT ASF! SSDT DMAR SSDT TCPA acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz, 3193.05 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (RP01) acpiprt2 at acpi0: bus 3 (RP03) acpiprt3 at acpi0: bus 4 (RP05) acpiprt4 at acpi0: bus 5 (RP06) acpiprt5 at acpi0: bus 6 (RP07) acpiprt6 at acpi0: bus 14 (RP08) acpiprt7 at acpi0: bus 1 (PEG0) acpiprt8 at acpi0: bus -1 (PEG1) acpiprt9 at acpi0: bus -1 (PEG2) acpiec0 at acpi0 pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x06 ppb0 at pci0 dev 1 function 0 "Intel Core 4G PCIE" rev 0x06: msi pci1 at ppb0 bus 1 "ATI Radeon HD 8790M" rev 0x00 at pci1 dev 0 function 0 not configured vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4600" rev 0x06 wsdisplay1 at vga1 mux 1: console (80x25, vt100 emulation) "Intel Core 4G HD Audio" rev 0x06 at pci0 dev 3 function 0 not configured "Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured "Intel 8 Series KT" rev 0x04 at pci0 dev 22 function 3 not configured em0 at pci0 dev 25 function 0 "Intel I217-LM" rev 0x04: msi, address f0:1f:af:4e:d5:85 ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x04: apic 8 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 "Intel 8 Series HD Audio" rev 0x04 at pci0 dev 27 function 0 not configured ppb1 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd4: msi pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 2 "Intel 8 Series PCIE" rev 0xd4: msi pci3 at ppb2 bus 3 iwn0 at pci3 dev 0 function 0 "Intel Centrino Advanced-N 6235" rev 0x24: msi, MIMO 2T2R, AGN, address b4:b6:76:df:7f:00 ppb3 at pci0 dev 28 function 4 "Intel 8 Series PCIE" rev 0xd4: msi pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 5 "Intel 8 Series PCIE" rev 0xd4: msi pci5 at ppb4 bus 5 ppb5 at pci0 dev 28 function 6 "Intel 8 Series PCIE" rev 0xd4: msi pci6 at ppb5 bus 6 ppb6 at pci0 dev 28 function 7 "Intel 8 Series PCIE" rev 0xd4: msi pci7 at ppb6 bus 14 sdhc0 at pci7 dev 0 function 0 vendor "O2 Micro", unknown product 0x8520 rev 0x01: apic 8 int 19 sdmmc0 at sdhc0 ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 8 int 21 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 "Intel QM87 LPC" rev 0x04 at pci0 dev 31 function 0 not configured ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI 1.3 ahci0: port 0: 6.0Gb/s ahci0: port 1: 1.5Gb/s scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.5000c5006ac12137 sd0: 476940MB, 512 bytes/sector, 976773168 sectors cd0 at scsibus0 targ 1 lun 0: ATAPI 5/cdrom removable "Intel 8 Series SMBus" rev 0x04 at pci0 dev 31 function 3 not configured isa0 at mainbus0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay1 uhub2 at uhub0 port 1 "vendor 0x8087 product 0x8008" rev 2.00/0.04 addr 2 uhub3 at uhub1 port 1 "vendor 0x8087 product 0x8000" rev 2.00/0.04 addr 2 umass0 at uhub3 port 1 configuration 1 interface 0 "Kingston DataTraveler 2.0" rev 2.00/1.00 addr 3 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: SCSI2 0/direct removable serial.09511665BE60A9C60611 sd1: 30008MB, 512 bytes/sector, 61457664 sectors softraid0 at root scsibus2 at softraid0: 256 targets root on rd0a swap on rd0b dump on rd0b
Re: Install snapshot failes
Hi Stefan, > Carsten, a dmesg please, *every time* you report an issue. > We need to know how your system is set up and dmesg output will > usually tell us what we need to know. > > In this particular case I would like to know if you're booting off > softraid or not. A dmesg would have told me. the sysem doesn't boot since there is no boot block. Only install58.fs itself did boot so there is only the dmesg if the standard installer image. That doesn't use softraid. As suggested I wait for the next snapshot. If the issue with installboot is still there I'll send a dmesg. Carsten
Install snapshot failes
Hello, installing a todays amd64 snapshot with image install58.fs ends with "installboot: No blocks to load". What can be the problem? Carsten
Linker warnings from libX11
Hello, on linking something with libX11 I got the warnings /usr/X11R6/lib/libX11.so.16.1: warning: warning: strcpy() is almost always misused, please use strlcpy() /usr/X11R6/lib/libX11.so.16.1: warning: warning: strcat() is almost always misused, please use strlcat() /usr/X11R6/lib/libX11.so.16.1: warning: warning: sprintf() is often misused, please use snprintf() I am surprised that OpenBSD had not cleaned it's own libs. Or is libX11(.so) not used by OpenBSD itself? Carsten
Re: March 8 snapshot does not boot on Dell E6540
Hello Martin, Martin Pieuchot wrote: > I got some similar reports before and it seems related to anything in > the BIOS. It seems that turning the USB setting to USB3 "On" or "Off" > but not "Auto" prevent this hang. Sadly I don't have access to such > hardware and investigate further. In the BIOS setup of this laptop USB3 can only be switched "on" or "off". It had been switched "on". When switching it to "off" the problem does not occur anymore, the 5.7-snapshot is now running on this laptop. Thank you for your help! If it would help I could apply patches from you to the kernel source and do some tests. But if you're not interessted in that it is ok for me to live without USB3. Thanks, Carsten
March 8 snapshot does not boot on Dell E6540
Hello, the snapshot amd64/install57.fs (or .iso) from March 8 does not boot on a Dell Latitude E6540. The last output line during boot is: uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 This is the first snapshot I try on this laptop. Currently the 5.6 release is installed. Its dmesg is: OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug 8 00:20:21 MDT 2014 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8474476544 (8081MB) avail mem = 8240103424 (7858MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xed6e0 (102 entries) bios0: vendor Dell Inc. version "A05" date 09/03/2013 bios0: Dell Inc. Latitude E6540 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT SLIC SSDT SSDT SSDT SSDT HPET SSDT MCFG SSDT ASF! SSDT DMAR SSDT TCPA acpi0: wakeup devices UAR1(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz, 3193.11 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz, 3192.61 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz, 3192.61 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 1, core 0, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz, 3192.61 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpihpet0 at acpi0: 14318179 Hz acpimcfg0 at acpi0 addr 0xf800, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (RP01) acpiprt2 at acpi0: bus 3 (RP03) acpiprt3 at acpi0: bus 4 (RP05) acpiprt4 at acpi0: bus 5 (RP06) acpiprt5 at acpi0: bus 6 (RP07) acpiprt6 at acpi0: bus 14 (RP08) acpiprt7 at acpi0: bus 1 (PEG0) acpiprt8 at acpi0: bus -1 (PEG1) acpiprt9 at acpi0: bus -1 (PEG2) acpiec0 at acpi0 acpicpu0 at acpi0: C1, PSS acpicpu1 at acpi0: C1, PSS acpicpu2 at acpi0: C1, PSS acpicpu3 at acpi0: C1, PSS acpitz0 at acpi0: critical temperature is 107 degC acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PBTN acpibtn2 at acpi0: SBTN acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "DELL GCJ4839" serial 396 type LION oem "Samsung SDI" acpibat1 at acpi0: BAT1 not present acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: LCD_ cpu0: Enhanced SpeedStep 3193 MHz: speeds: 2601, 2600, 2500, 2300, 2200, 2100, 2000, 1800, 1700, 1600, 1400, 1300, 1200, 1100, 900, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x0c04 rev 0x06 ppb0 at pci0 dev 1 function 0 "Intel Core 4G PCIE" rev 0x06: msi pci1 at ppb0 bus 1 "ATI Radeon HD 8790M" rev 0x00 at pci1 dev 0 function 0 not configured vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4600" rev 0x06 intagp at vga1 not configured inteldrm0 at vga1 drm0 at inteldrm0 drm: Memory usable by graphics device = 2048M error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before writing
Re: March 8 snapshot does not boot on Dell E6540
Hello Martin, Martin Pieuchot I got some similar reports before and it seems related to anything in > the BIOS. It seems that turning the USB setting to USB3 "On" or "Off" > but not "Auto" prevent this hang. Sadly I don't have access to such > hardware and investigate further. Thank you for your helpful answer! I do these test tomorrow since today there is no admin available to insert the BIOS password ... ;-) Carsten
Re: OpenBSD projects
Todd wrote: > Not sure, but what about cwm(1) and mg(1)? I think cwm had been started as evilwm elsewhere, derived as cwm from evilwm (outside?) OpenBSD and later imported to the OpenBSD code base.
Re: OpenBSD projects
jungle Boogie wrote: > Here's a list of projects that I'm aware of that openBSD created. Is > that correct? (p) is for portable. What else am I missing? How about tmux (p)?
make does try BSDmakefile anymore?
Hello, in OpenBSD 5.5 make did try makefiles in order BSDmakefile -> makefile -> Makefile. In Current BSDmakefile is not tried anymore, at least not with highest priority. Is this intended? Carsten
firefox crashes very often on amd64 5.5
Hello, firefox-26.0p1 craches very oftern (once per hour) on amd64 OpenBSD 5.5. Is this a known problem? --Carsten
Re: Problem with cwm and tabbed
There is a problem in OpenBSD 5.5 cwm with using pointers like cc->group->shortcut without testing cc->group for being NULL This is (should be) fixed in current. It leads to crashes of cwm (in 5.5) but may be not the cause for what happens on your system. (Had been very annoying for me since it always had happend during beamer presentations at work :-) --Carsten
Re: sshfs does not seem to work correctly
> Again I am guessing, but OpenBSD might disconnect if there is a > sufficient period of inactivity on the sshfs file system. Usb drives > disconnect if left long enough, for example. A running process, such as > an open terminal on the usb prevents this. It is a security feature. There had only be seconds (at least one or two minutes) of inactivity. Can this feature be disabled? I'd like to use sshfs just as nfs so it should not disconnect if possible. A ssh session does not disconnect too, I see no difference between ssh and sshfs regarding security here. Carsten
sshfs does not seem to work correctly
I use sshfs to synchronize a filesystem of 15 GB between two machines. Read access seems to be ok but on writing the mount point does not seem to work anymore. Error message of cp(1) is No such file or directory ls(1) to the mount point gives the same message. (Nothing in /var/log/messages) Is it a known problem for sshfs that the mount point may disappear? (OpenBSD 5.5 amd64) --Carsten
Re: sshfs as non-root: fuse_mount: Permission d enied
> I'll regroup. I don't have access to an OpenBSD system at the moment > but I'm trying to recall the readme and man page for ntfs-3g which also > uses fuse. > > Using fuse which may lead to a privilege escalation, I think, ... and > that is why ntfs-3g has to be run as root and pass uid and gid options. > I'm guessing that sshfs will be similar. Fabian suggested to set kern.usermount to a non-zero value, now it works as expected. Maybe this could help ntfs-3g also, I don't know. (Setting uid/gid is not a nice solution. But if it's necessary ...) Cheers, Carsten
Re: sshfs as non-root: fuse_mount: Permission d enied
- Original Nachricht Von: Fabian Raetz An: Carsten Kunze Datum: 03.08.2014 21:56 Betreff: Re: sshfs as non-root: fuse_mount: Permission d enied > The sysctl "kern.usermount" must be set to some nozero value. > You may want to take a look at mount(8). > > Cheers, > Fabian That works, thank you! (I did not see the relation of sshfs(1) and mount(8). That's why I had not looked in the mount manpage.) --Carsten
Re: sshfs as non-root: fuse_mount: Permission d enied
> I may be completely off the mark here but I believe that in OpenBSD all > mount points _must be owned by root. So you have to pass options for uid > and gid with the mount command. I had expected that that works. But that is not really comfortable and kind of faking and overriding the uid. Ok, if that is required, then I need to do this. But it should not be a security issue to use sshfs on a directory owned by a user. So I do not really understand this requirement. --Carsten
Re: sshfs as non-root: fuse_mount: Permission denied
> This is probably why... > > % ls -lao /dev/fuse0 > crw--- 1 root wheel - 92, 0 Jul 5 05:38 /dev/fuse0 Not completely. With 660 or 666 permissions the response now is: "Operation not permitted"
sshfs as non-root: fuse_mount: Permission denied
Hello, I am using OpenBSD as guest on a Linux host. For accessing the host filesystems I've tried to use sshfs(1) as a non-root user. I've created a directory and typed: $ sshfs :/ The output is: fuse_mount: Permission denied But login via ssh(1) on that IP works. sshfs from other OSes to that host also work. Why is it not possible for a user to use sshfs? It does work as root (I'd like to avoid that) but then every file created on the host gets owner root. (NetBSD mount_psshfs also seems to require root but there the file owner is set as expected.) --Carsten
Slow display of embedded EPS with gv
I tried to reproduce this with the EPS file an gv alone. That did not work, i.e. it opens without delay. Unfortunately this now becomes groff dependent. But anyway it's also OpenBSD specific. I tried with http://www.openbsd.org/images/poster31.jpg: jpegtopnm poster31.jpg > poster31.pnm pnmtops poster31.pnm > poster31.ps gv poster31.ps # -> opens at once File t.tr: .PSPIC poster31.ps troff -Tps t.tr|grops >t.ps gv t.ps # -> opens at once troff -Tps -dpaper=a4 t.tr|grops -pa4 >t.ps gv t.ps # -> opens very slow (15 seconds) Embedded in a real document it took about 40 seconds for a picture of that size. As mentioned in the previous mail there is no delay on e.g. Linux. --Carsten
Slow display of embedded EPS with gv
Hello, when I include a large EPS file into a PostScript file using the colorimage command (actually done bei groff macro .PSPIC) and view this PS file with the gv viewer it takes very long until the image is displayed. For example it takes 40 seconds until a 2 MB image is displayed on a rather fast DELL E6540. On a years old Linux PC there is no noticeable delay. With many images in a document gv is unuseable. (So I convert the PS to PDF, then it's ok.) What may be the reason? --Carsten
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: InterNetX - Robert Garrett An: misc@openbsd.org Datum: 12.06.2014 17:45 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > If this does not return something, your configuration is broken. period. > > this one little thing, that so many people ignore, slows down > everything.. even if you have dns properly configured. Set the hosts > file on your machine properly. > > You will be surprised at how much faster it boots, and everything else > runs. This is true on all forms of unix. My mistake--to send the mails I had been connected to internet. The name in /etc/myname is only vaild in the local net. When I change the network connection the output of getent hosts `hostname` is of the form So everything seems to be ok... --Carsten
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: InterNetX - Robert Garrett An: misc@openbsd.org Datum: 12.06.2014 17:45 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > If this does not return something, your configuration is broken. period. > > this one little thing, that so many people ignore, slows down > everything.. even if you have dns properly configured. Set the hosts > file on your machine properly. > > You will be surprised at how much faster it boots, and everything else > runs. This is true on all forms of unix. /etc/hosts is: # cat /etc/hosts # $OpenBSD: hosts,v 1.12 2009/03/10 00:42:13 deraadt Exp $ # # Host Database # # RFC 1918 specifies that these networks are "internal". # 10.0.0.0 10.255.255.255 # 172.16.0.0172.31.255.255 # 192.168.0.0 192.168.255.255 # 127.0.0.1 localhost ::1 localhost What would you expect there? (DNS resolution in general is fast on my system.) --Carsten
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: David Coppa An: Chris Cappuccio Datum: 11.06.2014 16:55 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > Chris is right. It's a Dell, so you probably need this patch: > > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pckbc/pms.c.diff?r1=1.49;r > 2=1.50 > > Ciao! > David Ok, my old laptop had this problem too, it had also been a Dell ;) Thank you all! Cheers, Carsten
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: Chris Cappuccio An: Carsten Kunze Datum: 11.06.2014 16:45 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > I believe this is fixed in -current. ps/2 mouse driver issue compared to > modern hardware Ok, thanx for this!
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: David Coppa An: Carsten Kunze Datum: 11.06.2014 16:35 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > # cat /etc/myname It's a company hostname, I don't know, if I get legal issues It's like a146.b.com a and b are words with lowercase letters. b.com is known to external name servers. > # cat /etc/hosts # $OpenBSD: hosts,v 1.12 2009/03/10 00:42:13 deraadt Exp $ # # Host Database # # RFC 1918 specifies that these networks are "internal". # 10.0.0.0 10.255.255.255 # 172.16.0.0172.31.255.255 # 192.168.0.0 192.168.255.255 # 127.0.0.1 localhost ::1 localhost Cheers, Carsten
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: Fred An: Carsten Kunze , misc@openbsd.org Datum: 11.06.2014 16:28 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > Sent to quickly :~( if `hostname` is not returning anything then the > current system does not have an /etc/myname file. No, it has this file ... It contains a name of the form a.b.c where "b.c" is an offical domain name, but "a" is unkown to an external name server. (But a.b.c is known to our intranet name server.) --Carsten
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: Fred An: Carsten Kunze , misc@openbsd.org Datum: 11.06.2014 16:25 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > `hostname` should be replaced with a host...eg: > > port:fred ~> getent hosts 'google.com' > 173.194.41.160 google.com > 173.194.41.163 google.com > 173.194.41.168 google.com > 173.194.41.167 google.com > 173.194.41.161 google.com > 173.194.41.165 google.com > 173.194.41.164 google.com > 173.194.41.169 google.com > 173.194.41.174 google.com > 173.194.41.162 google.com > 173.194.41.166 google.com > 2a00:1450:4009:809::1003google.com In this case I have similar output. Also without delay.
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: Rodrigo Mosconi An: Carsten Kunze Datum: 11.06.2014 16:05 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > What is the output from "echo $?", after you run the "getent ... " command? $ getent hosts `hostname` $ echo $? 0
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: Stuart Henderson An: misc@openbsd.org Datum: 11.06.2014 13:50 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > This may be a hostname lookup issue. Is this slow too? > > $ getent hosts `hostname` No, it returns fast (but does not print anything).
Re: Vision 2020: Making OpenBSD the world's fastest OS
- Original Nachricht Von: STeve Andre' An: OpenBSD Misc Datum: 11.06.2014 00:40 Betreff: Re: Vision 2020: Making OpenBSD the world's fastest OS > But I think you agree with the general tone of this? In some aspects OpenBSD is *very* slow. After booting the X Windows System appears without delay but then it takes 23 seconds until xdm screen opens (on a fast Dell E6540). Also after changing from X to a virtual console and back (in the test case xlock was active) X appears without delay but it takes 10 seconds until the keyboard works. There is no delay in this cases on NetBSD or Linux even on my very old Dell D830 and even with a nvidia card. What can be the reason for this large delays? --Carsten
Re: AR9462 WLAN support
Hello, > Hi. I've just realized that my laptop has the same chip. Do you have any > updates? Maybe I can help somehow? Thanks I've spended a lot of time but some day a gave up. Now I have a Dell E6540 where really everything works (sincere thanx to all developers!), so I think I leave the other laptop unused (it has another problem--with the current gfx driver the C70 GPU gets near to 100 degree celsius). There is a working driver for FreeBSD. Initially I thought I could port it, but it is very FreeBSD dependent. Then I tried to extend the athn by looking at the FreeBSD code. Maybe the better way--since if you want to distribute it it has to have OpenBSD quality anyway. But if you look at the amount of code of this driver you see that it's a lot of work to do. There is also a driver for Linux, but one could assume that there would be more work to do than using the FreeBSD code. With my current time budget I can do testing and small code changes but real development I can't do in the near future, unfortunately. Regards, Carsten
Re: ffs2
> i just want to know how to format a partition in OpenBSD for ffs2 ? You could have a look in the newfs(8) manpage for the option "-O". -O 2 should be FFS2.
Re: AR9462 WLAN support
> Are you asking because you're interested in hacking on this yourself? If there would already be some work in progress I'd like to use this one day instead of hacking myself. If not I'd intend to work on it. Not really short term though. > It has also been suggested to port FreeBSD's ath driver to OpenBSD. > I don't believe that is less work than extending the existing athn > driver, though. I'd prefer to extend the athn driver, I'd investigate at first in that. Thank you for your extensive information.
AR9462 WLAN support
Hello, are there any plans to support the Atheros AR9462 WLAN IC (aka AR5B22, aka WB222)? In my case I'd like to use it in a Acer AO725 laptop. If not, might it be possible to port code from the ath9k driver (Linux) or would that not be a feasible way? Regards, Carsten