Re: obfs4proxy-0.0.14 in packages for 7.2 (amd64)?

2022-11-29 Thread Pascal Stumpf
On Tue, 29 Nov 2022 12:31:23 +0100, Raimo Niskanen wrote:
> On Tue, Nov 22, 2022 at 08:31:30AM +, Stuart Henderson wrote:
> > On 2022-11-22, Raimo Niskanen  wrote:
> > > Hello
> > >
> > > I note the updated package in snapshots/packages, and wonder
> > > if the "fixes of important obfusction bugs" that are in
> > > obfs4proxy 0.0.14 will also appear in 7.2/packages?
> > 
> > I've just applied it to -stable so it should show up soon.
> > 
> 
> How soonish?
> 
> https://ftp.lysator.liu.se/pub/OpenBSD/7.2/packages/amd64/
> still shows obfs4proxy-0.0.13p0.tgz; is that a right place
> to see the updated package?

No.  Look in 7.2/packages-stable/amd64.


> > -- 
> > Please keep replies on the mailing list.
> 
> Best regards
> -- 
> 
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
> 



Re: Advices for a new laptop

2015-10-29 Thread Pascal Stumpf
On Thu, 29 Oct 2015 18:47:43 +0100, Domovoy wrote:
> Thanks for the advices everyone.
> That would tend to send me toward a x220 then (even if i'm usually 
> reluctant to buy second hand laptops).
> 
> Only question remaining: would it allow me to make a comfortable use of 
> FreeCad/blender? (nothing too complex, mainly last minute adjustments on 
> models for 3D printing)

Blender definitely, but someone (e.g. you) would have to port FreeCAD.

> Le 2015-10-29 18:24, Kim Zeitler a écrit :
> >> What about the B50-80 (80LT003C): i3, Intel HD 4400, wifi B/G/N/AC,
> >> Gigabit Ethernet, 2x USB3.
> > Got some for testing here ( meant to run Windows actually) and had
> > some minor issues with them and sadly not enough time to look
> > fully into it. But first impressions weren't that 'impressive'
> > 
> >>> My x220 is outstanding. The only device that isn't supported is the
> >>> fingerprint reader.  Also the mSATA slot is great for a second SSD. I
> >>> dual boot OpenBSD and Arch (for when I need a Virtual Machine) and
> >>> just use the F12 key at boot to select the drive I boot off of. 
> >>> Really
> >>> simplifies the set up. Also you can put 16gb of ram in this model
> >>> (even with an i5 processor) even though the specs say max of 8gb.
> > Can only second this, running on an older x220 with an i7 on a fully
> > encrypted mSATA SSD. Still faster than my coworkers newer kits.
> > Only thing I had to replace was one battery. Otherwise fine even after
> > several years of service.
> > 
> > Money on an x220 is well spent. Also they feel more solid than the 
> > B50s.
> > 
> > Need to try extending my RAM to 16GB - thanks for the hint Bryan.
> > 
> > Cheers,
> > Kim



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Pascal Stumpf
On Fri, 20 Jun 2014 11:14:31 +0100, =?iso-8859-1?Q?Z=E9?= Loff wrote:
 On Fri, Jun 20, 2014 at 11:40:02AM +0200, Roger Wiklund wrote:
  No problems so far with Intel mSATA 525 30GB.
  
  On a side note I'm a bit worried about the CPU temperate, almost 70
  degrees C during normal load.
 
 Same here: 70-75C, for a 0.2 average load. The case gets pretty hot, so
 I'm guessing I installed the heatsink correctly... Does anyone have
 (much) lower figures?
 
 

61.5C here at 0.14 load, but I flipped the case upside down so the
heatsink faces upwards.  Still gets up to 67C on a hot day.



Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Pascal Stumpf
On Mon, 2 Sep 2013 12:13:22 +0200, Stefan Sperling wrote:
 On Sun, Sep 01, 2013 at 12:52:32PM -0700, Bryan Vyhmeister wrote:
  Yes, I have a Synaptics touchpad and the freeze has only happened under
  X as far as I know but I am pretty much always running X. Thank you.
 
  pckbc0: using irq 12 for aux slot
  wsmouse0 at pms0 mux 0
  wsmouse1 at pms0 mux 0
  pms0: Synaptics clickpad, firmware 8.1
 
 One way I found to reliably hard lock my system (which has the same
 device with firmware version 8.0) is to have both wsmoused and xdm
 running, and run this command as root:
 while sleep 3; do wsconsctl display.focus=0; sleep 3; wsconsctl 
 display.focus=4; done
 The hangs appear during or shortly after switching virtual consoles from
 text to X. So far I could figure out that there seems to be some race
 with closing the mouse device when wsmoused(8) tries to relinquish it to X.
 The hang also happens when I disable the special synaptics code,
 forcing the driver to treat the pad as a normal PS/2 mouse.

I can confirm that disabling wsmoused(8) makes switching to and from
virtual consoles/X work for me.  But it probably doesn't help for the
random hangs I'm seeing once in a while (yes, jsg@ knows about it).

 If your system locks up over night without being used (which I've seen
 happen once, too, but it's hard to reproduce), or you don't have
 wsmoused running in the first place, then it's probably some other issue.
 
 OpenBSD 5.4-current (GENERIC.MP) #108: Mon Sep  2 11:17:35 CEST 2013
 s...@noel.stsp.name:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 3849388032 (3671MB)
 avail mem = 3738832896 (3565MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9d00 (58 entries)
 bios0: vendor LENOVO version 8RET52WW (1.15 ) date 11/15/2011
 bios0: LENOVO 0627A41
 acpi0 at bios0: rev 4
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP HPET APIC MCFG UEFI UEFI SSDT SSDT UEFI
 acpi0: wakeup devices PB4_(S4) PB5_(S4) PB6_(S4) PB7_(S4) OHC1(S3) EHC1(S3) 
 OHC2(S3) SBAZ(S4) GEC_(S4) P2P_(S5) SPB0(S4) SPB1(S4) SPB2(S4) SPB3(S4) 
 LID_(S4)
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpihpet0 at acpi0: 14318180 Hz
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.71 MHz
 cpu0: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
 cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu0: 8 4MB entries fully associative
 cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: smt 0, core 0, package 0
 cpu0: apic clock running at 271MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 2239.23 MHz
 cpu1: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
 cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu1: 8 4MB entries fully associative
 cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
 cpu1: smt 0, core 1, package 0
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpimcfg0 at acpi0 addr 0xf800, bus 0-31
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (PB4_)
 acpiprt2 at acpi0: bus 2 (PB5_)
 acpiprt3 at acpi0: bus 3 (PB6_)
 acpiprt4 at acpi0: bus 4 (PB7_)
 acpiprt5 at acpi0: bus 5 (P2P_)
 acpiprt6 at acpi0: bus -1 (SPB0)
 acpiprt7 at acpi0: bus -1 (SPB1)
 acpiprt8 at acpi0: bus -1 (SPB2)
 acpiprt9 at acpi0: bus -1 (SPB3)
 acpiec0 at acpi0
 acpicpu0 at acpi0: C2, PSS
 acpicpu1 at acpi0: C2, PSS
 acpitz0 at acpi0: critical temperature is 100 degC
 acpibtn0 at acpi0: PWRB
 acpibtn1 at acpi0: SLPB
 acpithinkpad0 at acpi0
 acpiac0 at acpi0: AC unit online
 acpibat0 at acpi0: BAT1 model 42T4957 serial  1495 type LION oem SANYO
 acpibtn2 at acpi0: LID_
 cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
 radeondrm0 at pci0 dev 1 function 0 ATI Radeon HD 6320 rev 0x00: apic 2 int 
 18
 drm0 at radeondrm0
 azalia0 at pci0 dev 1 function 1 ATI Radeon HD 6310 HD Audio rev 0x00: msi
 azalia0: no supported codecs
 ppb0 at pci0 dev 4 function 0 AMD AMD64 14h PCIE rev 0x00: msi
 pci1 at ppb0 bus 1
 Atheros AR9485 rev 0x01 at pci1 dev 0 function 0 not configured
 ppb1 at pci0 dev 5 function 0 AMD AMD64 14h PCIE rev 0x00: msi
 pci2 at ppb1 bus 2
 Realtek 8188CE rev 0x01 at pci2 dev 0 function 0 not configured
 ppb2 at pci0 dev 6 function 0 AMD AMD64 14h PCIE rev 0x00: msi
 pci3 at ppb2 bus 3
 alc0 at pci3 dev 0 function 0 

Re: Default software in the base

2013-07-29 Thread Pascal Stumpf
On Mon, 29 Jul 2013 11:57:42 -0700, Chris Cappuccio wrote:
 h...@riseup.net [h...@riseup.net] wrote:
  
  On the other hand XTerm is an old code and memory hog that relies on X
  toolkit and supports features you'll find nowhere thus will never need
  (like Tektronix).
  
 
 Xenocara is the classic X tree, as much as possible. Any replacement for
 xterm needs to be really good :)
 
  LLVM/Clang
  
  * BSD license - we're not stuck with the old GCC crap
  * The code is cleaner
  * Lack of linuxisms, better follows the standars
  * Much better error handling
  * Building the compiller itself is easier
  
  I realize that everything has its pros and cons (like URXVT is
  GPL-licensed, st is pretty much hackish for an ordinary user and Clang
  is not, well, mature yet). But ain't pros of the programs above not
  enough to actually make it in the base?
  
 
 Replacing GCC is no trivial task, but Bitrig already did it. 

Did it aka now rely on packages to build base, some of them with a
non-free license.

 And they 
 don't support most of the platforms that OpenBSD does. LLVM doesn't either.

See the connection? :)

 Frankly, if you want to play with OpenBSD compiled with LLVM, try Bitrig. 
 OpenBSD still keeps ancient versions of GCC in-tree (and Miod maintains them)
 to support platforms like m88k, vax, m68k, and so on. OpenBSD has the only
 working m88k GCC 3 implementation, for instance.
 
 Maybe at some point in the future, OpenBSD might include LLVM if there
 is some compelling reason to do so. But that hasn't happened yet.



Re: DVD Video Ripping Tools

2013-07-13 Thread Pascal Stumpf
On Sat, 13 Jul 2013 11:06:58 +0100, James Griffin wrote:
 Hi
 
 I want to rip some DVD's to my hard disk for viewing later. I've searched and 
 found some old threads going back a few years which have some good 
 suggestions and examples. As some of this stuff is a bit dated, can anyone 
 recommend some decent software from packages/ports that will do the job?
 
 Cheers, any hints welcome. 

multimedia/ogmrip, and multimedia/shrip (CLI frontend)

 
 Jamie. 
 
 
 -- 
 
 
 James Griffin: jmz at kontrol.kode5.net 
 
 A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38



Re: PHP mini_sendmail problems

2013-03-14 Thread Pascal Stumpf
On Thu, 14 Mar 2013 20:12:52 +0100, Stefan Sperling wrote:
 On Thu, Mar 14, 2013 at 06:51:54PM +, Alexey E. Suslikov wrote:
  John Tate john at johntate.org writes:
  
   
   I've been trying to get PHP to be able to email from a chrooted apache
   server. Running without chroot is not an option. I can't find clear
   documentation on doing this, and the logs don't contain any errors I can
   find about the problem.
  
  you need femail from ports.
 
 More precisely, the femail-chroot package.
 
 And you need /usr/libexec/ld.so inside of the /var/www chroot dir.

Not any more.  -static now implies -nopie when linking.

 Else, femail won't run inside chroot (on 5.3, not sure if 5.2 requires this).



Re: vnconfig: /dev/rsvnd0c: Device not configured

2012-01-15 Thread Pascal Stumpf
On Sun, 15 Jan 2012 19:33:33 +0100, marc wrote:
 Hi everybody,
 
 I wonder if anybody knows a solution for this:
 
 I had an encrypted partition working wonderfully in my system.
 
 my /etc/fstab is:
 /dev/sdXX /dev/svnd0c vnd rw,noauto,-k 0 0
 /dev/svnd0c /mnt/ZZ ffs rw,noauto,nodev 0 0
 
 so I used to do:
 mount /dev/sdXX
 Encryption key:
 
 enter my key and it would work.
 
 Now (after upgrading to 5.0 from the previous release) it returns:
 
 mount_vnd: /dev/rsvnd0c: Device not configured
 
 I try to configure it again:
 vnconfig -ck svnd0 /dev/sdXX
 
 but it returns again:
 
 vnconfig: /dev/rsvnd0c: Device not configured
 
 This is probably due to the fact that I overwrote the old /etc folder but I d
 on't know
 where the problem is...
 
 Thanks in advance,
 Marc
 
 

http://www.openbsd.org/faq/upgrade50.html#vnd



spello and grammatical mistake in fortune

2011-12-02 Thread Pascal Stumpf
Even a generalising relative clause takes the indicative in Latin.

Romanes eunt domus!

ok?

Index: fortunes
===
RCS file: /cvs/src/games/fortune/datfiles/fortunes,v
retrieving revision 1.41
diff -u -p -r1.41 fortunes
--- fortunes20 Nov 2011 08:31:07 -  1.41
+++ fortunes2 Dec 2011 10:48:01 -
@@ -10716,7 +10716,7 @@ Quick!!  Act as if nothing has happened!
 %
 Quick, sing me the BUDAPEST NATIONAL ANTHEM!!
 %
-Quidquid latine dictum sit, altum viditur.
+Quidquid latine dictum est, altum videtur.
 
 (Whatever is said in Latin sounds profound.)
 %



Re: spello and grammatical mistake in fortune

2011-12-02 Thread Pascal Stumpf
On Fri, 2 Dec 2011 08:08:53 -0600, Carson Chittom wrote:
 On Fri, Dec 2, 2011 at 4:53 AM, Pascal Stumpf pascal.stu...@cubes.de wrot=
 e:
 
  Even a generalising relative clause takes the indicative in Latin.
 
  Romanes eunt domus!
 
  ok?
 
  Index: fortunes
  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  RCS file: /cvs/src/games/fortune/datfiles/fortunes,v
  retrieving revision 1.41
  diff -u -p -r1.41 fortunes
  --- fortunes =C2=A0 =C2=A020 Nov 2011 08:31:07 - =C2=A0 =C2=A0 =C2=A0=
 1.41
  +++ fortunes =C2=A0 =C2=A02 Dec 2011 10:48:01 -
  @@ -10716,7 +10716,7 @@ Quick!! =C2=A0Act as if nothing has happened!
  =C2=A0%
  =C2=A0Quick, sing me the BUDAPEST NATIONAL ANTHEM!!
  =C2=A0%
  -Quidquid latine dictum sit, altum viditur.
  +Quidquid latine dictum est, altum videtur.
 
  =C2=A0(Whatever is said in Latin sounds profound.)
  =C2=A0%
 
 Are you sure? It's been over fifteen years since my last Latin class,
 so I cannot speak on my own authority, but a Google search with sit
 yielded about 1.8 million results, while est only got me 128,000.
 
 

Yup, seems it was just copied by people not knowing Latin. :)  I
can't point you to a grammar in English, sorry, but Kuehner-Stegmann
II,2, pages 197-9, is pretty clear the subjunctive may only be used
in very special cases like mood attraction/assimilation or a
(generalising) second person singular.  You might also consider:
Quidquid id *est*, timeo Danaos et dona ferentes.



Re: makewhatis on /usr

2011-11-19 Thread Pascal Stumpf
On Sat, 19 Nov 2011 18:05:42 +0100, Ingo Schwarze wrote:
 Hi Marc,
 
 Marc Espie wrote on Sat, Nov 19, 2011 at 05:40:38PM +0100:
  On Sat, Nov 19, 2011 at 04:31:57PM +0100, Ingo Schwarze wrote:
  Thomas de Grivel wrote on Sat, Nov 19, 2011 at 03:32:03PM +0100:
 
  From weekly output :
  Rebuilding whatis databases:
  /usr/libexec/makewhatis: Can't create /usr/share/man/whatis.db:
  Read-only file system
  Should not whatis.db be in /var/... ?
 
  I think you have a point.  Specifically, /var/db/man/.
  Having cron(8) scripts write to /usr is ugly.
  I don't see why mounting /usr readonly should require
  disabling makewhatis(8).
 
  I disagree: manpage directories are self-contained.  
  
  If I add or remove a directory to my man configuration, it shouldn't
  require a rebuild of the database for other directories.
  Hence having a whatis.db per-man directory root.
  
  If you want to move those to /var/db/man or something, you'd better be
  prepared to have database file names that depend on the root directory
  being used.
 
 I fully agree with all that, and having per-hierarchy databases
 in /var/db/man - one for /usr/share/man, one for /usr/X11R6/man,
 one for /usr/local/man, one for each additional directory the
 user configures in man.conf(5) - is indeed what i hope to do.

I think what Marc meant is that whatis.db/mandoc.db should be in the
same directory as their corresponding manpages.  And I agree on that
point, especially in the case of NFS-mounted /usr: One shouldn't have to
run mandocdb to be able to run apropos(1) for the pages on the remote
machine.  And even worse, what happens if the remote machine is updated
or packages are added?  The client in such a setup will have an outdated
database without being aware of it.

mandoc.db should be in the same directory as the manpages it was
generated from, and need not be writable by machines that don't have
write access to the pages themselves.

With respect to the weekly makewhatis, I think that's a bug in the
weekly(8) script: It should not blindly assume that every database
listed in man.conf(5) is on a writable filesystem.



Re: Are some packages safer to compile from source?

2011-11-11 Thread Pascal Stumpf
On Fri, 11 Nov 2011 08:02:59 -0800 (PST), James Hozier wrote:
 I was just grabbing Tor from the amd64 packages on the ftp server
 (ftp://ftp.OpenBSD.org/pub/OpenBSD/) and the version of Tor is 0.2.1.30.
 The current version is 2.2.34, which recently had a very important
 security update pertaining to anonymity.
 
 In cases like these, would grabbing software by source from their main
 website and compiling it manually be the safest way to obtain programs?

No.  tor-2.2.34 has been MFCed to -stable, so it's easiest to compile
from a -stable ports tree.



Re: systat colors?

2011-11-10 Thread Pascal Stumpf
On Thu, 10 Nov 2011 13:17:21 -0800, Joe wrote:
 Has anyone already modified systat to support colored text? 
 
 

Easy:
1. xterm -fg red systat

2. Profit!



Re: lpd printing problem

2011-10-14 Thread Pascal Stumpf
On Fri, 14 Oct 2011 10:24:05 +0200, Otto Moerbeek wrote:
 On Wed, Oct 12, 2011 at 05:39:48PM +0200, Pascal Stumpf wrote:
 
  On Wed, 12 Oct 2011 17:25:06 +0200, Otto Moerbeek wrote:
   On Wed, Oct 12, 2011 at 04:03:57PM +0200, Pascal Stumpf wrote:
   
I have two printers on the local network (laser and lexmark) and I want
to use lpd(8) to print on them. It seems to me that lpd is having some
sort of local problem (it does not even create lock and status files in
the spool directories, and both lpr and lpq do not see the daemon). But
some info first:

lpd is started with -s, manually or with rc.d makes no difference (nor
removing -s).
   
   Check your /var/log/lpd.errs.
  
  Doesn't contain anything but restarted messages.
  
   Also, ktracing lpd with the the -i flag might give a clue to what the
   lpd child is doing.
  
  Apparently, it segfaults:
 
 The problem appears in cgetnext();
 
 I can see two (probably related) problems there:

Thanks for the analysis. :)
 
 1. if (toprec  !gottoprec) the goto lookup is done, leading to a
 strcspn with record still being NULL.
 
 2. After the toprec = record; statement is executed at the bottom op
 the loop, a free(record) is done. That makes toprec point into the
 wild. If a file is closed and reopened, toprec will be non-NULL (but
 wild) and gottoprec will be 0 (due to cgetclose().

Can we set toprec = NULL if gottoprec = 1 in cgetclose()? I can't test
right now because I'm at the university, but it should fix both
problems.

Cheers,
Pascal

 Cc:ing this to millert@ so he can have a look. I'm not completely
 following the toprec logic, I must say.
 
 Easiest way for me to trigger was:
 Use malloc option S, have at least one entry in printcap, and run lpc.
 On the lpc command line type status twice.
 
   -Otto


Excellent day for putting Slinkies on an escalator.



Re: lpd printing problem

2011-10-14 Thread Pascal Stumpf
On Fri, 14 Oct 2011 11:37:29 +0200, Otto Moerbeek wrote:
 On Fri, Oct 14, 2011 at 11:28:22AM +0200, Pascal Stumpf wrote:
 
  On Fri, 14 Oct 2011 10:24:05 +0200, Otto Moerbeek wrote:
   On Wed, Oct 12, 2011 at 05:39:48PM +0200, Pascal Stumpf wrote:
   
On Wed, 12 Oct 2011 17:25:06 +0200, Otto Moerbeek wrote:
 On Wed, Oct 12, 2011 at 04:03:57PM +0200, Pascal Stumpf wrote:
 
  I have two printers on the local network (laser and lexmark) and I 
 want
  to use lpd(8) to print on them. It seems to me that lpd is having s
 ome
  sort of local problem (it does not even create lock and status file
 s in
  the spool directories, and both lpr and lpq do not see the daemon).
  But
  some info first:
  
  lpd is started with -s, manually or with rc.d makes no difference (
 nor
  removing -s).
 
 Check your /var/log/lpd.errs.

Doesn't contain anything but restarted messages.

 Also, ktracing lpd with the the -i flag might give a clue to what the
 lpd child is doing.

Apparently, it segfaults:
   
   The problem appears in cgetnext();
   
   I can see two (probably related) problems there:
  
  Thanks for the analysis. :)
   
   1. if (toprec  !gottoprec) the goto lookup is done, leading to a
   strcspn with record still being NULL.
   
   2. After the toprec = record; statement is executed at the bottom op
   the loop, a free(record) is done. That makes toprec point into the
   wild. If a file is closed and reopened, toprec will be non-NULL (but
   wild) and gottoprec will be 0 (due to cgetclose().
  
  Can we set toprec = NULL if gottoprec = 1 in cgetclose()? I can't test
  right now because I'm at the university, but it should fix both
  problems.
 
 It could stil happen that toprec becomes a wild pointer in that case,
 because of the free(record). And the goto with record == NULL wil not
 be fixed (well, maybe it will never be executed...). 
 
   -Otto

Right. Here's another try, still untested:

Index: getcap.c
===
RCS file: /cvs/src/lib/libc/gen/getcap.c,v
retrieving revision 1.29
diff -u -r1.29 getcap.c
--- getcap.c10 Jul 2011 13:31:02 -  1.29
+++ getcap.c14 Oct 2011 11:28:07 -
@@ -677,6 +677,7 @@
 */
if (toprec  !gottoprec) {
gottoprec = 1;
+   record = toprec;
goto lookup;
}
 
@@ -788,6 +789,7 @@
 done:
serrno = errno;
free(record);
+   record = toprec = NULL;
if (status = 0)
(void)cgetclose();
errno = serrno;


On a side note, did the goto even work before (even without S flag)? I
imagine cgetset() isn't used all that often, but still ...



lpd printing problem

2011-10-12 Thread Pascal Stumpf
I have two printers on the local network (laser and lexmark) and I want
to use lpd(8) to print on them. It seems to me that lpd is having some
sort of local problem (it does not even create lock and status files in
the spool directories, and both lpr and lpq do not see the daemon). But
some info first:

lpd is started with -s, manually or with rc.d makes no difference (nor
removing -s).


/etc/printcap:
#   $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

#lp|local line printer:\
#   :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#   :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

lexmark|Lexmark:\
:sh:lp=:rm=lexmark:\
:sd=/var/spool/output/lexmark:\
:lf=/var/log/lpd-errs:

laser|Laser:\
:sh:lp=:rm=laser:rp=raw:\
:sd=/var/spool/output/laser:\
:lf=/var/log/lpd-errs:


Permissions:
-r-xr-s---  1 root  daemon  72368 Oct 12 01:56 /usr/sbin/lpd
-r-sr-sr-x  1 root  daemon  25104 Oct 12 01:56 /usr/bin/lpr
-r-xr-sr-x  1 root  daemon  24656 Oct 12 01:56 /usr/bin/lpq

srw-rw  1 root  daemon  0 Oct 12 15:09 /var/run/printer
drwxr-xr-x  28 root  wheel  512 Sep 26 21:27 /var
drwxr-xr-x  13 root  wheel  512 Oct 12 15:09 /var/spool
drwxrwxr-x  4 root  daemon  512 Oct 12 14:27 /var/spool/output
drwxrwx---  2 root  daemon  512 Oct 12 15:10 /var/spool/output/lexmark
drwxrwx---  2 root  daemon  512 Oct 12 14:27 /var/spool/output/laser


ps -auwwx | grep lpd:
daemon   29820  0.0  0.0   328   912 ??  Is 3:09PM0:00.01 lpd -s
pascal8535  0.0  0.0   224   388 p3  R+/0   3:59PM0:00.00 grep lpd

ls -l /var/spool/output/lexmark:
-rw-rw---x  1 daemon  daemon  4 Oct 12 15:10 .seq
-rw-rw  1 daemon  daemon114 Oct 12 15:09 cfA004aias.local.cubes.de
-rw-rw  1 daemon  daemon114 Oct 12 15:10 cfA005aias.local.cubes.de
-rw-rw  1 daemon  daemon  16000 Oct 12 15:09 dfA004aias.local.cubes.de
-rw-rw  1 daemon  daemon  16000 Oct 12 15:10 dfA005aias.local.cubes.de

lptest | lpr -p: (with PRINTER=lexmark)
jobs queued, but cannot start daemon.

lpq:
aias.local.cubes.de: Warning: no daemon present
Rank   Owner  Job  Files Total Size
1stpascal 4(standard input)  16000 bytes
2ndpascal 5(standard input)  16000 bytes
3rdpascal 6(standard input)  16000 bytes

No entries


Ktracing the lpd process gives this when a job is submitted by lpr:
 29820 lpd  EMUL  native
 29820 lpd  RET   select 1
 29820 lpd  CALL  accept(0x5,0x7f7ec060,0x7f7ebd48)
 29820 lpd  STRU  struct sockaddr { AF_LOCAL,  }
 29820 lpd  RET   accept 6
 29820 lpd  CALL  fork()
 29820 lpd  RET   fork 15081/0x3ae9
 29820 lpd  CALL  close(0x6)
 29820 lpd  RET   close 0
 29820 lpd  CALL  select(0x6,0x7f7ebc10,0,0,0)
 29820 lpd  PSIG  SIGCHLD caught handler=0x403560 mask=0x0
 29820 lpd  RET   select -1 errno 4 Interrupted system call
 29820 lpd  CALL  wait4(0x,0x7f7eb814,0x1WNOHANG,0)
 29820 lpd  RET   wait4 15081/0x3ae9
 29820 lpd  CALL  wait4(0x,0x7f7eb814,0x1WNOHANG,0)
 29820 lpd  RET   wait4 -1 errno 10 No child processes
 29820 lpd  CALL  sigreturn(0x7f7eb830)
 29820 lpd  RET   sigreturn JUSTRETURN
 29820 lpd  CALL  select(0x6,0x7f7ebc10,0,0,0)

Trying to restart all via lpc:
lexmark:
cannot open lock file
lexmark:
couldn't start daemon
laser:
cannot open lock file
laser:
couldn't start daemon

Daemon user:
daemon:*:1:1:The devil himself:/root:/sbin/nologin
uid=1(daemon) gid=1(daemon) groups=1(daemon)


Of course I searched the web and mailing lists, but nothing really
helped. The printcap entries have been verified to work on Linux (for
laser) and FreeBSD (for lexmark).

I'm sure what I'm missing is something very basic and simple, but I just
can't seem to figure it out. Does anyone have an idea?


New crypt.  See /usr/news/crypt.



Re: lpd printing problem

2011-10-12 Thread Pascal Stumpf
On Wed, 12 Oct 2011 17:25:06 +0200, Otto Moerbeek wrote:
 On Wed, Oct 12, 2011 at 04:03:57PM +0200, Pascal Stumpf wrote:
 
  I have two printers on the local network (laser and lexmark) and I want
  to use lpd(8) to print on them. It seems to me that lpd is having some
  sort of local problem (it does not even create lock and status files in
  the spool directories, and both lpr and lpq do not see the daemon). But
  some info first:
  
  lpd is started with -s, manually or with rc.d makes no difference (nor
  removing -s).
 
 Check your /var/log/lpd.errs.

Doesn't contain anything but restarted messages.

 Also, ktracing lpd with the the -i flag might give a clue to what the
 lpd child is doing.

Apparently, it segfaults:

 10436 lpd  EMUL  native
 10436 lpd  RET   select 1
 10436 lpd  CALL  sigprocmask(SIG_BLOCK,0x)
 10436 lpd  RET   sigprocmask 0
 10436 lpd  CALL  mprotect(0x71,0x2000,0x3PROT_READ|PROT_WRITE)
 10436 lpd  RET   mprotect 0
 10436 lpd  CALL  mprotect(0x71,0x2000,0x1PROT_READ)
 10436 lpd  RET   mprotect 0
 10436 lpd  CALL  sigprocmask(SIG_SETMASK,0)
 10436 lpd  RET   sigprocmask 4294901503/0xfffefeff
 10436 lpd  CALL  accept(0x5,0x7f7e05c0,0x7f7e02a8)
 10436 lpd  STRU  struct sockaddr { AF_LOCAL,  }
 10436 lpd  RET   accept 8
 10436 lpd  CALL  fork()
 10436 lpd  RET   fork 25687/0x6457
 25687 lpd  RET   fork 0
 10436 lpd  CALL  sigprocmask(SIG_BLOCK,0x)
 10436 lpd  RET   sigprocmask 0
 10436 lpd  CALL  mprotect(0x71,0x2000,0x3PROT_READ|PROT_WRITE)
 10436 lpd  RET   mprotect 0
 10436 lpd  CALL  mprotect(0x71,0x2000,0x1PROT_READ)
 10436 lpd  RET   mprotect 0
 25687 lpd  CALL  sigaction(SIGCHLD,0x7f7e00e0,0x7f7e00d0)
 10436 lpd  CALL  sigprocmask(SIG_SETMASK,0)
 10436 lpd  RET   sigprocmask 4294901503/0xfffefeff
 25687 lpd  RET   sigaction 0
 10436 lpd  CALL  close(0x8)
 10436 lpd  RET   close 0
 25687 lpd  CALL  sigaction(SIGHUP,0x7f7e00e0,0x7f7e00d0)
 25687 lpd  RET   sigaction 0
 10436 lpd  CALL  select(0x8,0x7f7e0170,0,0,0)
 25687 lpd  CALL  sigaction(SIGINT,0x7f7e00e0,0x7f7e00d0)
 25687 lpd  RET   sigaction 0
 25687 lpd  CALL  sigaction(SIGQUIT,0x7f7e00e0,0x7f7e00d0)
 25687 lpd  RET   sigaction 0
 25687 lpd  CALL  sigaction(SIGTERM,0x7f7e00e0,0x7f7e00d0)
 25687 lpd  RET   sigaction 0
 25687 lpd  CALL  sigprocmask(SIG_BLOCK,0x)
 25687 lpd  RET   sigprocmask 0
 25687 lpd  CALL  mprotect(0x71,0x2000,0x3PROT_READ|PROT_WRITE)
 25687 lpd  RET   mprotect 0
 25687 lpd  CALL  mprotect(0x71,0x2000,0x1PROT_READ)
 25687 lpd  RET   mprotect 0
 25687 lpd  CALL  sigprocmask(SIG_SETMASK,0)
 25687 lpd  RET   sigprocmask 4294901503/0xfffefeff
 25687 lpd  CALL  close(0x5)
 25687 lpd  RET   close 0
 25687 lpd  CALL  close(0x6)
 25687 lpd  RET   close 0
 25687 lpd  CALL  close(0x7)
 25687 lpd  RET   close 0
 25687 lpd  CALL  sigprocmask(SIG_BLOCK,0x)
 25687 lpd  RET   sigprocmask 0
 25687 lpd  CALL  mprotect(0x71,0x2000,0x3PROT_READ|PROT_WRITE)
 25687 lpd  RET   mprotect 0
 25687 lpd  CALL  mprotect(0x71,0x2000,0x1PROT_READ)
 25687 lpd  RET   mprotect 0
 25687 lpd  CALL  sigprocmask(SIG_SETMASK,0)
 25687 lpd  RET   sigprocmask 4294901503/0xfffefeff
 25687 lpd  CALL  dup2(0x8,0x1)
 25687 lpd  RET   dup2 1
 25687 lpd  CALL  close(0x8)
 25687 lpd  RET   close 0
 25687 lpd  CALL  sigprocmask(SIG_BLOCK,0x)
 25687 lpd  RET   sigprocmask 0
 25687 lpd  CALL  mprotect(0x71,0x2000,0x3PROT_READ|PROT_WRITE)
 25687 lpd  RET   mprotect 0
 25687 lpd  CALL  mprotect(0x71,0x2000,0x1PROT_READ)
 25687 lpd  RET   mprotect 0
 25687 lpd  CALL  sigprocmask(SIG_SETMASK,0)
 25687 lpd  RET   sigprocmask 4294901503/0xfffefeff
 25687 lpd  CALL  read(0x1,0x8121e0,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   \^A
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e1,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   l
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e2,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   e
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e3,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   x
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e4,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   m
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e5,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   a
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e6,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   r
 25687 lpd  RET   read 1
 25687 lpd  CALL  read(0x1,0x8121e7,0x1)
 25687 lpd  GIO   fd 1 read 1 bytes
   k
 25687 lpd  RET   read 1
 25687 lpd  CALL  read

Re: ksh: bad number (with leading zeroes) should not work for 0 - 7

2011-09-15 Thread Pascal Stumpf
On Thu, Sep 15, 2011 at 12:06:14PM +, Thorsten Glaser wrote:
 Abel Abraham Camarillo Ojeda acamari at verlet.org writes:
 
  Some of our shell scripts that work with dates and do something like:
  
  month=`date +%m`
  something  month=$((month-1))
 
 month=10#$(date +%m)

Is that a mkshism?


The easiest solution here is:

typeset -Z2 month



Re: ksh: bad number (with leading zeroes) should not work for 0 - 7

2011-09-15 Thread Pascal Stumpf
On Thu, Sep 15, 2011 at 04:24:37PM -0500, Abel Abraham Camarillo Ojeda wrote:
 Yep, I did that in some scripts, just
 don't know how portable it is...

I haven't come across a single ksh that doesn't support that. Even the
old ksh88 on AIX 4.3.3 at my university has it.



Re: ksh: bad number (with leading zeroes) should not work for 0 - 7

2011-09-15 Thread Pascal Stumpf
On Thu, Sep 15, 2011 at 09:58:13PM +, Thorsten Glaser wrote:
  typeset -Z2 month
 
 That can break as soon as month is made an integer someplace down.

And that's very likely to happen ...

 Padding is meant for output, not input.
 
You don't know if $month is input or output.

 tg@stinky:~ $ /bin/ksh -c 'i=10#08; print $((i)) $(uname -a)'
 8 SunOS stinky 5.8 Generic_117350-61 sun4u sparc SUNW,Sun-Fire-V210 Solaris
 
 So, portable across all Korn shells.

Based on the invalid assumption that i is always evaluated inside an
arithmetical expression.



faq8.html

2011-08-28 Thread Pascal Stumpf
FAQ 8.3 needs some updating.



Index: faq8.html
===
RCS file: /cvs/www/faq/faq8.html,v
retrieving revision 1.231
diff -u -r1.231 faq8.html
--- faq8.html   11 Aug 2011 10:27:03 -  1.231
+++ faq8.html   28 Aug 2011 20:24:27 -
@@ -259,7 +259,7 @@
 /tr
 
 tr valign=top
-tdC, C++/td
+td rowspan=2C, C++/td
 tdttcomp49.tgz/tt,
 a 
href=http://www.openbsd.org/cgi-bin/man.cgi?query=gccamp;sektion=1;gcc(1)/a
 /td
@@ -270,18 +270,18 @@
 for details.
 They will also emit warnings when using unsafe functions
 such as sprintf(), strcpy(), strcat(), tmpnam(), etc.
-Note that most platforms use gcc 3.3.5, but some still use 2.95.3.
+Note that most platforms use gcc 4.2.1, but some still use 3.3.5 or 2.95.3.
 /td
 /tr
 
 tr valign=top
-tdC, C++/td
 td
 a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/gcc/?only_with_tag=OPENBSD_4_9;lang/gcc/a
+a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/llvm/?only_with_tag=OPENBSD_4_9;lang/llvm/a
 /td
 tdThese compilers have not gone through the security audit and do not
 contain security enhancements like those in the base system.
-The compilers are renamed ttegcc/tt, tteg++/tt, etc. to avoid
+The gcc binaries are renamed ttegcc/tt, tteg++/tt, etc. to avoid
 confusion with their counterparts in the base system.
 /td
 /tr
@@ -312,8 +312,8 @@
 
 tr valign=top
 td rowspan=2Fortran/td
-tdttcomp49.tgz/tt,
-a 
href=http://www.openbsd.org/cgi-bin/man.cgi?query=g77amp;sektion=1;g77(1)/a
+td
+a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/g77/?only_with_tag=OPENBSD_4_9;lang/g77/a
 /td
 tdOnly Fortran 77 support./td
 /tr
@@ -323,7 +323,7 @@
 a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/gcc/?only_with_tag=OPENBSD_4_9;lang/gcc/a
 /td
 tdFortran 95 is also supported by ttegfortran/tt in gcc 4.0 and above.
-This new compiler is available as a subpackage (g95) of gcc.
+This new compiler is available as a subpackage (f95) of gcc.
 /td
 /tr
 
@@ -408,24 +408,24 @@
 /tr
 
 tr valign=top
-td rowspan=2PHP/td
+tdPerl 6/td
 td
-a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/www/php4/?only_with_tag=OPENBSD_4_9;www/php4/a
-/td
-td rowspan=2
-Plenty of subpackages are available for different PHP modules.
-/td
+a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/rakudo/?only_with_tag=OPENBSD_4_9;lang/rakudo/a
+td/td
 /tr
 
 tr valign=top
+tdPHP/td
+td
+a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/php/?only_with_tag=OPENBSD_4_9;lang/php/a
+/td
 td
-a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/www/php5/?only_with_tag=OPENBSD_4_9;www/php5/a
+Plenty of subpackages are available for different PHP modules.
 /td
 /tr
 
 tr valign=top
-tdProlog/td
-!-- this port is broken
+td rowspan=2Prolog/td
 td
 a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/gprolog/?only_with_tag=OPENBSD_4_9;lang/gprolog/a
 /td 
@@ -433,7 +433,6 @@
 /tr
 
 tr valign=top
---
 td
 a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/swi-prolog/?only_with_tag=OPENBSD_4_9;lang/swi-prolog/a
 /td 
@@ -445,7 +444,7 @@
 td
 a 
href=http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/?only_with_tag=OPENBSD_4_9;lang/python/a
 /td
-tdOther ports are using Python 2.5 by default./td
+tdOther ports are using Python 2.7 by default./td
 /tr
 
 tr valign=top



Re: ext42fs support?

2011-08-22 Thread Pascal Stumpf
On Mon, Aug 22, 2011 at 08:29:47AM +0200, Christian Barthel wrote:
 I am not quite sure (not an ext4 user) but you can mount ext4 the same
 way, you mount ext3 or ext2. 
 
 mount -t ext2fs dev mountpoint
 
 Maybe, it's dangerous and should be avoided (ext4 is a journaling
 filesystem, ext2 not!). So, be careful!

Iirc, this only works on ext3 (without journaling ofc), not ext4.

FreeBSD had a GSoC project last year to implement ext4fs (as a separate
module/driver): http://wiki.freebsd.org/SOC2010ZhengLiu But it's not
even in their main tree yet.

Code: http://p4db.freebsd.org/branchView.cgi?BRANCH=lz_ext4fs

 
 
 -- 
 Christian Barthel 
 Public-Key: http://bc.user-mode.org/bc.asc 
 Mail: b...@nyx.user-mode.org
 Web: http://bc.user-mode.org



Re: amd64-current GENERIC.MP kernel doesn't boot on ThinkPad SL510

2011-07-24 Thread Pascal Stumpf
On Sun, Jul 24, 2011 at 07:53:00PM +0300, Oleksii Zhmyrov wrote:
 Hi, misc@
 
 I have discovered that amd64-current SMP kernel doesn't boot on
 Lenovo Thinkpad SL510. The boot process stops after string:
 
 mtrr: Pentium Pro MTRR support
 
 and laptop becomes unresponsive. GENERIC kernel boots normally.
 Output of dmesg from GENERIC kernel and pcidump -xx is under the signature.
 How can I help to fix this issue?

Known issue. It's the webcam that fails to attach. Actually, sometimes
it will boot, sometimes it won't (randomly). Disable the webcam in the
BIOS as a workaround.



Re: Nmap and pf

2011-03-07 Thread Pascal Stumpf
On Mon, Mar 07, 2011 at 10:54:09AM +0100, Henrik Engmark wrote:
 Is there a way, good or bad, to relax pf enough to let nmap do its
 OS detection?
 I am on 4.8.
 
 
Try --send-eth.



Re: ATI Radeon HD 3470 problems with X

2011-03-07 Thread Pascal Stumpf
On Mon, Mar 07, 2011 at 06:50:36PM +0100, Tomas Bodzar wrote:
 Hi,
 
 when trying eg. glxgears I'm getting :
 
 $ glxgears
 drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command
 stream. See dmesg for more info.
 $
 [...]

There's no in-kernel support for 3D on those cards yet.



Re: Radeon HD 4850 and drmRadeonCmdBuffer: -22.

2011-02-28 Thread Pascal Stumpf
On Thu, Feb 24, 2011 at 10:03:06AM -0500, Joe Snikeris wrote:
 On Thu, Feb 24, 2011 at 3:09 AM, Andy Bradford
 amb-open...@bradfords.org wrote:
 
  Is it going to be possible to get acceleration working with this? If so,
  any pointers?
 
 +1
 

For the record: I've also tried the radeonhd driver instead of radeon.
'glxinfo' reports a lot more GLX Visuals and GLXFBConfigs, OpenGL
version 2.1 instead of 1.5, but glxgears does not seem any faster
(around 290 FPS). Other applications using GL (supertuxkart ...) still
crash when trying to use hardware acceleration.

For my part, I'd greatly appreciate *any* feedback from graphics people
on this. Is it being worked on? Which component is the culprit (kernel,
xorg driver, Mesa)?



Re: Radeon HD 4850 and drmRadeonCmdBuffer: -22.

2011-02-28 Thread Pascal Stumpf
On Mon, Feb 28, 2011 at 10:42:08PM +0300, Alexander Polakov wrote:
 * Pascal Stumpf pascal.stu...@cubes.de [110228 21:47]:
  On Thu, Feb 24, 2011 at 10:03:06AM -0500, Joe Snikeris wrote:
   On Thu, Feb 24, 2011 at 3:09 AM, Andy Bradford
   amb-open...@bradfords.org wrote:
   
Is it going to be possible to get acceleration working with this? If so,
any pointers?
   
   +1
   
  
  For the record: I've also tried the radeonhd driver instead of radeon.
  'glxinfo' reports a lot more GLX Visuals and GLXFBConfigs, OpenGL
  version 2.1 instead of 1.5, but glxgears does not seem any faster
  (around 290 FPS). Other applications using GL (supertuxkart ...) still
  crash when trying to use hardware acceleration.
  
  For my part, I'd greatly appreciate *any* feedback from graphics people
  on this. Is it being worked on? Which component is the culprit (kernel,
  xorg driver, Mesa)?
 
 I am not an openbsd dev, but I think this [1] is related.
 
 [1] http://www.mail-archive.com/source-changes@openbsd.org/msg16212.html
 
 -- 
 Alexander Polakov | plhk.ru
 
 

Thanks a lot.



Booting and radeon problems on ThinkPad SL510

2011-02-18 Thread Pascal Stumpf
Hi misc@,

I am too experiencing the booting problems described a few days ago for
the SL410. With the MP kernel, booting would sometines just stop at 
mtrr: Pentium Pro MTRR support,

forcing a hard reset of the machine. Other times it just works fine, not
following any apparent pattern.

How can I provide more info to debug this?

The second problem has already been reported multiple times. (Hardware
acceleration not working on some Radeon chips.) The corresponding PR is
user/6549, the symptoms are exactly as described there.

Maybe (?) related to that: Graphics are not resumed after suspend.
Xorg.0.log has lots of:

[607691.656] (EE) RADEON(0): Idle timed out, resetting engine...
[607691.875] (EE) RADEON(0): RADEONWaitForIdleCP: CP idle 16
[607691.875] (EE) RADEON(0): Idle timed out, resetting engine...
[607692.075] (EE) RADEON(0): RADEONWaitForIdleCP: CP idle 16
[607692.075] (EE) RADEON(0): Idle timed out, resetting engine...
[607692.275] (EE) RADEON(0): RADEONWaitForIdleCP: CP idle 16

messages after resume:
Feb 14 13:50:09 aias apmd: system resumed from APM sleep
Feb 14 13:50:09 aias /bsd: iwn0: RF switch: radio enabled
Feb 14 13:50:09 aias Tor[2339]: Your system clock just jumped 1436 seconds 
forward; assuming established circuits no longer work. 
Feb 14 13:50:09 aias Tor[2339]: Tried for 1470 seconds to get a connection to 
[scrubbed]:80. Giving up. (waiting for circuit) 
Feb 14 13:50:09 aias Tor[2339]: Tried for 1470 seconds to get a connection to 
[scrubbed]:80. Giving up. (waiting for circuit) 
Feb 14 13:50:10 aias /bsd: video0 detached
Feb 14 13:50:10 aias /bsd: uvideo0 detached
Feb 14 13:50:11 aias /bsd: uvideo0 at uhub1
Feb 14 13:50:11 aias /bsd:  port 6 configuration 1 interface 0 Chicony 
Electronics Co., Ltd. Integrated Camera rev 2.00/82.54 addr 2
Feb 14 13:50:11 aias /bsd: video0 at uvideo0
Feb 14 13:50:11 aias /bsd: ubt0 detached
Feb 14 13:50:11 aias /bsd: radeondrm0: wait idle failed status : 0xA0003028 
0x0002
Feb 14 13:50:14 aias last message repeated 14 times
Feb 14 13:50:14 aias /bsd: ubt0 at uhub7
Feb 14 13:50:14 aias /bsd: radeondrm0: wait idle failed status : 0xA0003028 
0x0002
Feb 14 13:50:15 aias /bsd:  port 1 Broadcom Corp Broadcom Bluetooth Device 
rev2.00/3.60 addr 2
Feb 14 13:50:15 aias /bsd: radeondrm0: wait idle failed status : 0xA0003028 
0x0002
Feb 14 13:50:46 aias last message repeated 154 times



OpenBSD 4.9-beta (GENERIC.MP) #780: Thu Jan 20 17:21:34 MST 2011
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3182116864 (3034MB)
avail mem = 3083386880 (2940MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe0010 (44 entries)
bios0: vendor LENOVO version 6JET85WW (1.43 ) date 12/24/2010
bios0: LENOVO 2847D8G
acpi0 at bios0: rev 4
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC SSDT SSDT SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) USB0(S3) USB1(S3) USB2(S3) USBR(S3) 
EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S4) PXSX(S4) RP01(S4) 
PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) 
RP06(S4) BLAN(S4) LID_(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T6670 @ 2.20GHz, 6803.39 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T6670 @ 2.20GHz, 2194.50 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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P2)
acpiprt2 at acpi0: bus 9 (P0P1)
acpiprt3 at acpi0: bus 2 (RP01)
acpiprt4 at acpi0: bus 3 (RP02)
acpiprt5 at acpi0: bus 4 (RP03)
acpiprt6 at acpi0: bus 5 (RP04)
acpiprt7 at acpi0: bus 6 (RP05)
acpiprt8 at acpi0: bus 8 (RP06)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature 105 degC
acpithinkpad0 at acpi0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model 42T4848 serial 55331 type LION oem LGC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
cpu0: Enhanced SpeedStep 2194 MHz: speeds: 2201, 2200, 1600, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq 10)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Mobility Radeon HD 4500 rev 0x00

Re: Booting and radeon problems on ThinkPad SL510

2011-02-18 Thread Pascal Stumpf
On Fri, Feb 18, 2011 at 09:45:22PM +0100, Joachim Schipper wrote:
 On Fri, Feb 18, 2011 at 06:41:26PM +0100, Pascal Stumpf wrote:
  I am too experiencing the booting problems described a few days ago for
  the SL410. With the MP kernel, booting would sometines just stop at 
  mtrr: Pentium Pro MTRR support,
  
  forcing a hard reset of the machine. Other times it just works fine, not
  following any apparent pattern.
  
  How can I provide more info to debug this?
 
 My SL510 works if I disable acpitz*. The debugging-only diff at the
 end of this message can help show that this is indeed the issue (by
 default, it doesn't do much; use boot -d and 'write
 acpitz_skip_first_setperfs 10' (if it's N = 0, skip the first N
 acpitz_cpu_setperf() calls; negative values drop you into ddb at
 acpitz_cpu_setperf() calls, which allows you to get a backtrace.)
 
 That said, I don't have the time or expertise to fix this myself, and I
 guess it's rather hard to fix it without the hardware...
 
Thanks a lot, but thatbs most likely not the issue in my case. I donbt
even seem to be able to get any negative values.

Bryanbs suggestion to disable the webcam via BIOS has most likely done
the trick. (I havenbt had any hangs since then, but you never knowB b)

Still, this solutions seems unsatisfying. Would the info provided by
UVIDEO_DEBUG help in tracking down the bug?