Re: default value for MALLOC_OPTIONS?

2008-06-28 Thread Otto Moerbeek
On Sat, Jun 28, 2008 at 03:37:36PM -0600, Philip Guenther wrote:

> On Sat, Jun 28, 2008 at 3:06 PM, Mark B. <[EMAIL PROTECTED]> wrote:
> > What is the default value for MALLOC_OPTIONS?
> >
> > /usr/src/lib/libc/stdlib/malloc.c says NULL, which is suprising, given
> > that OpenBSD will alert me to memory issues for programs that
> > run fine on another BSD.
> 
> All the options default to off, with the partial exception of the a/A
> option: the default behavior is not quite the same as either 'a' or
> 'A'.
> 
> (By default, it'll complain and abort if the internal structures get
> corrupted, you make a recursive call, or you pass it particularly
> bogus pointers.  'a' disables all those, while 'A' makes it also
> complain and die if allocation would fail.   It's probably those
> default checks that are triggering the alerts you referred to.)
> 
> 
> > Also, what options do folks use when they want to really test things out?
> 
> I use this:
> 
> $ ls -l /etc/malloc.conf
> lrwxr-xr-x  1 root  wheel  4 May 23 21:49 /etc/malloc.conf -> FGJP
> $
> 
> If a program I don't have the time to debug has problems with that
> then I set MALLOC_OPTIONS=fgjp (or whatever is sufficient) for just
> that program.
> 
> 
> Philip Guenther

Yes, those are a preyy good pick, but note that they have a cost.

If you are interested, you can run my new malloc (on current only),
which (amongst other things) is faster and detects a few more cases of
wrong usage by default. 

http://www.drijf.net/openbsd/malloc/

-Otto



Re: Named and reverse zones help

2008-06-28 Thread Parvinder Bhasin
Thanks Rod!!  and Phillip!! for your help.  I had done what you had  
mentioned in your replies.  I was double checking with experts to make  
sure it was right.  And it seems like I got it right.


Oh yeah, the TTL is set very LOW for just in case there was a goof up  
on my side :) .  I will be changing them soon.


Once again, Thanks a bunch for your help guys!!.  I really appreciate  
it.


Cheers!
-Parvinder Bhasin

On Jun 28, 2008, at 10:14 PM, Rod Dorman wrote:


On Saturday, June 28, 2008, 16:32:18, Parvinder Bhasin wrote:

 ...
How should I write out the config in named.conf to reflect the  
reverse

zone?
Lets say my network is 192.168.1.0/25.
 ...
2.1/25.1.168.192.in-addr.arpa.  300  IN  PTR  foobar.mydns.com


It's simpler if you establish an origin
$ORIGIN 1.168.192.in-addr.arpa.

then you just have to use the identifying octet
2   300IN   PTR  foobar.mydns.com

From  the way you worded "Lets say my network is" I'm guessing that  
your
192.168.1.0/25  is  just an obfuscation of an allocated public  
range. If
so,  whoever  is authoritative for 168.192.in-addr.arpa. has to  
delegate
0.1.168.192.in-addr.arpa.  thru  127.1.168.192.in-addr.arpa.  to   
you in

order for the outside world to see your PTR records.

BTW, why only a 5 minute TTL?

--
[EMAIL PROTECTED] "The avalanche has already started, it is too
Rod Dorman  late for the pebbles to vote." - Ambassador  
Kosh




Re: Named and reverse zones help

2008-06-28 Thread Rod Dorman
On Saturday, June 28, 2008, 16:32:18, Parvinder Bhasin wrote:
>   ...
> How should I write out the config in named.conf to reflect the reverse
> zone?
> Lets say my network is 192.168.1.0/25.
>   ...
> 2.1/25.1.168.192.in-addr.arpa.  300  IN  PTR  foobar.mydns.com

It's simpler if you establish an origin
$ORIGIN 1.168.192.in-addr.arpa.

then you just have to use the identifying octet
2   300IN   PTR  foobar.mydns.com

>From  the way you worded "Lets say my network is" I'm guessing that your
192.168.1.0/25  is  just an obfuscation of an allocated public range. If
so,  whoever  is authoritative for 168.192.in-addr.arpa. has to delegate
0.1.168.192.in-addr.arpa.  thru  127.1.168.192.in-addr.arpa.  to  you in
order for the outside world to see your PTR records.

BTW, why only a 5 minute TTL?

--
[EMAIL PROTECTED] "The avalanche has already started, it is too
Rod Dorman  late for the pebbles to vote." - Ambassador Kosh



Re: Squid -> Privoxy -> Tor

2008-06-28 Thread Marco S Hyman
Peter_APIIT writes:
 > I very disappointed with this forum because no one willing to help me. 

It is not a web forum, it is a mailing list.

No one on the list has any obligation to help you.  If you want
support figure out your budget then call one of the commercial
organizations listed at http://www.openbsd.org/support.html

If you're not willing to pay for support and you're not willing
to wait for some fellow user to read your message and maybe reply
with something helpful spend your time reading the docs and figure
it out yourself.  Then, in the future when someone else asks
the question you'll be able to answer.

It is possible that you are the first on the mailing list to try
to do whatever it is you want to do.

// marc



Re: Squid -> Privoxy -> Tor

2008-06-28 Thread Philip Guenther
On Sat, Jun 28, 2008 at 9:41 PM, Peter_APIIT <[EMAIL PROTECTED]> wrote:
> I very disappointed with this forum because no one willing to help me.

Someone tried, but you didn't really seem to listen what he said.  He
pointed you at the privoxy FAQ entry that suggests verifying that
privoxy and tor operate correctly on their own before you try to make
them work together.  Your response was to note that the privoxy and
tor processes were running.  That doesn't say *anything* about whether
they work by themselves!  He also pointed out that you had a bogus
option in one of the configs, but you apparently ignored that.  If you
don't listen to what people say, they'll stop trying to talk to you...

Anyway, you're probably better off asking your question in the forums
for those specific packages.


Philip Guenther
(Not a privoxy or tor user)



Re: Squid -> Privoxy -> Tor

2008-06-28 Thread Peter_APIIT
I very disappointed with this forum because no one willing to help me. 
-- 
View this message in context: 
http://www.nabble.com/Squid--%3E-Privoxy--%3E-Tor-tp17880256p18177143.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: MaraDNS Issue

2008-06-28 Thread Peter_APIIT
No one willing to help me. 
-- 
View this message in context: 
http://www.nabble.com/MaraDNS-Issue-tp17880221p18177133.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: (solved) Azalia / HDA problems

2008-06-28 Thread Deanna Phillips
Rob Lytle writes:

> Using audioctl and mixerctl I just experimented until I got
> settings that workied, then put them in a file sourced upon
> logon.  Very simple hack.

Not really a hack.  It's documented in mixerctl.conf(5).



Re: (solved) Azalia / HDA problems

2008-06-28 Thread Rob Lytle
Using audioctl and mixerctl I just experimented until I got settings that
workied, then put them in a file sourced upon logon.  Very simple hack.

I used:

audioctl play.gain=255
mixerctl record.volume.mute=off
mixerctl record.source=mic  (uses mic line input- mic2 uses laptop mic)

I am sure there are other things that could be tweeked as well, but the
levels needed for the program I/O are perfect.

Rob.



Re: Azalia / HDA problems (1/2) solved

2008-06-28 Thread Rob Lytle
Hi,

I got the gmfsk program outputing digital data through the headphone jack
like I want, but no sound inputs work, either mic or line in.  Mixers show
input on 100% and not muted.

The solution for getting sound out of the Gmfsk program was taking its
/dev/audio out of "stereo mode."

I would like to run the Linux Baudline spectrum analyzer program to check
the inputs, but it sounds like compiling it could be a mess.

Rob



PF + nat + 2 C classes

2008-06-28 Thread Jose H.
Hi all, a little help needed with some networking and pf:
I have one public IP with forwards traffic to my LAN, I am using "rdr"
and nat, a lot of nat rules for specific cases like smtp and so on, I
am also using ftp-proxy for the crappy ftp I can't get rid of.

The problem is that now I need to add IPs from another C class to my
network, I was thinking on using another nic to assign the public IP
of the firewall and use that nic to do the same rdr rules I need for
the servers, and put the servers on the same lan as the rest BUT then
I am wondering how to manage the default gateway ?

For example I have the default gw in the first C class with will be
x.x.x.1, but now I am adding y.y.y.y address to the fw, the traffic
will get in thru the y.y.y.1 gw and I will reply using x.x.x.1 which
may lead to lots of problems like firewalls not able to maintain the
state of the connections and so on.

How do you guys do this kind of things !?

-- 
William Penn - "Time is what we want most, but what we use worst."



Re: Azalia / HDA problems

2008-06-28 Thread Rob Lytle
On Sat, Jun 28, 2008 at 04:48:20PM -0700, Rob Lytle wrote:
> Hi,
>
> I'm having a problem with the azalia HDA sound driver.  I've included a
> DMESG with option AZALIA_DEBUG in the kernel.
>
> Its important to me to have a pretty functional driver as I use digital
> sound card mutlimode-modems, gmfsk and gpsk31 in particular.
>
> Here is the error message I get from gmfsk:(gpsk31 won't even start)
>
> "sound_open_for_read: sndopen: setinfo failed: m" It kind of looks like
> the error message was truncated.
>
> I have attached my DMESG.  The problem is sort of an OS breaker as gmfsk is
> one of the main programs I use.
>
> I also have noticed that the OpenBSD HDA driver is lacking volume, just like
> the Vista version, whereas the FreeBSD HDA driver has plenty of it.

here we see that you only have a limited set of sampling frequencies:

> formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>

probably not what those apps you are using use, at least by default.

as for volume, use mixerctl(1).  by default azalia volumes are 120
on a scale of 0 to 255.  looks like you should have an outputs.master
that controls the output volume.

Thanks for responding Jacob,

Gmfsk uses 44.1khz as default, so the chip should handle that as you
show above.  Using a mixer I can increase
the master volume to 100% and the volume is sub-optimal.

I also notice that volume is on
a linear scale, but that may be the mixers (all of them do this
though)  Most audio devices use a log scale as thats
 how the ear responds to volume.  So the bulk of the volume control is
squeezed into the top 10% of the mixer scale.

Rob.



Re: Azalia / HDA problems

2008-06-28 Thread Jacob Meuser
On Sat, Jun 28, 2008 at 04:48:20PM -0700, Rob Lytle wrote:
> Hi,
> 
> I'm having a problem with the azalia HDA sound driver.  I've included a
> DMESG with option AZALIA_DEBUG in the kernel.
> 
> Its important to me to have a pretty functional driver as I use digital
> sound card mutlimode-modems, gmfsk and gpsk31 in particular.
> 
> Here is the error message I get from gmfsk:(gpsk31 won't even start)
> 
> "sound_open_for_read: sndopen: setinfo failed: m" It kind of looks like
> the error message was truncated.
> 
> I have attached my DMESG.  The problem is sort of an OS breaker as gmfsk is
> one of the main programs I use.
> 
> I also have noticed that the OpenBSD HDA driver is lacking volume, just like
> the Vista version, whereas the FreeBSD HDA driver has plenty of it.

here we see that you only have a limited set of sampling frequencies:

> formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>

probably not what those apps you are using use, at least by default.

as for volume, use mixerctl(1).  by default azalia volumes are 120
on a scale of 0 to 255.  looks like you should have an outputs.master
that controls the output volume.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org



application level failover

2008-06-28 Thread Juan Miscaro
Hi, using OpenBSD (4.3 current), what is the recommended way to set up
application level failover?  Let's say I have content that is
constantly edited by several internal users (like a webserver dishing
up text and images) and is available to the internet.  If I want to
have failover that content needs to synchronize real-time with a
second machine.  Apart from setting up the network part (with relayd I
think), how is the data synchronization done?  For a more complex
case, how is failover achieved for IMAP services?

Thanks everyone,

/juan



Re: PCMCIA slot not even turning on in Sony VAIO SZ460N/C

2008-06-28 Thread Rob Lytle
BTW, I think this TI multifunction (incl cardbus/PCMCIA) PCIXX12 (insert
remaining chip model number for XX) chip is becoming popular in laptops (at
least Sony) so I'm surprised its not supported.  I once looked it up on the
TI web site and it appears to be a space saving chip consolidating cardbus,
multimedia card, and Firewire, which of course would be good for laptops.

Rob

ps. I was going to cross post this to OpenBSD-mobile but it doesn't look
like from the MARC archives that it exists any more.  Is that correct?



On Sat, Jun 28, 2008 at 5:08 PM, Rob Lytle <[EMAIL PROTECTED]> wrote:

> Hi,
>
> It appears that the slot applies no power to any card.  I included as much
> debug code as I could in /usr/src/sys/dev/pci/pccbb.cI had to
> re-comment-out the lines:
>
> #define PCCBB_PCMCIA_POLL
>
> #define CB_PCMCIA_POLL
>
> or the kernel build would crash.  In the dmesg, it just looks like voltages
> are 0.  I need my Atheros PCMCIA card to run WAP as my internal WiFi is the
> Intel PRO Wireless 3945ABG which requires a firmware blob and only works
> with WEP (unless Intel updated it).  If I can get it to work, at least I
> will have "security theater," lol-   but better than WEP.
>
> Below is DMESG:
>
> Thanks,  Rob.
>
>
> ---
> OpenBSD 4.3-current (GENERIC-DEBUG) #1: Sat Jun 28 09:33:15 PDT 2008
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC-DEBUG
> cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class)
> 2.01 GHz
> cpu0:
> FPU,V86,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,CX16,xTPR
> real mem  = 2137026560 (2038MB)
> avail mem = 2058194944 (1962MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 04/12/07, BIOS32 rev. 0 @ 0xfdbd0,
> SMBIOS rev. 2.4 @ 0xdc010 (19 entries)
> bios0: vendor Phoenix Technologies LTD version "R0112N0" date 04/12/2007
> bios0: Sony Corporation VGN-SZ460N
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC HPET MCFG TCPA SLIC APIC BOOT SSDT SSDT SSDT
> SSDT SSDT
> acpi0: wakeup devices PWRB(S4) S1F0(S4) S1F1(S4) S1F2(S4) S1F3(S4) S1F4(S4)
> S1F5(S4) S1F6(S4) S1F7(S4) TLAN(S3) DLAN(S3) USB1(S3) USB2(S3) USB3(S3)
> USB4(S3) USB7(S3) SLT0(S4) EC0_(S5)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PEGP)
> acpiprt2 at acpi0: bus 2 (RP01)
> acpiprt3 at acpi0: bus 6 (RP02)
> acpiprt4 at acpi0: bus 7 (RP03)
> acpiprt5 at acpi0: bus 8 (RP04)
> acpiprt6 at acpi0: bus 9 (PCIB)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C2
> acpitz0 at acpi0: critical temperature 99 degC
> acpitz1 at acpi0: critical temperature 100 degC
> acpitz2 at acpi0: critical temperature 100 degC
> acpibtn0 at acpi0: LID0
> acpibtn1 at acpi0: PWRB
> acpibat0 at acpi0: BAT1 type LION oem "Sony Corp."
> acpiac0 at acpi0: AC unit online
> acpidock at acpi0 not configured
> bios0: ROM list: 0xc/0x1! 0xdc000/0x4000! 0xe/0x1c00!
> cpu0 at mainbus0
> cpu0: unknown Enhanced SpeedStep CPU, msr 0x060b0c2206000c22
> cpu0: using only highest and lowest power states
> cpu0: Enhanced SpeedStep 2000 MHz (1244 mV): speeds: 2000, 1000 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> agp0 at vga1: aperture at 0xd000, size 0x1000
> "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: irq 10
> azalia0: host: High Definition Audio rev. 1.0
> azalia0: host: 4 output, 4 input, and 0 bidi streams
> azalia_attach: resetting
> azalia_attach: reset counter = 5000
> azalia_attach: reset counter = 4986
> azalia0: found a codec at #0
> azalia0: found a codec at #1
> azalia_init_corb: CORB allocation succeeded.
> azalia_init_corb: CORBWP=0; size=256
> azalia_init_rirb: RIRB allocation succeeded.
> azalia_init_rirb: RIRBRP=0, size=256
> azalia0: codec[0] vid 0x83847662, subid 0x81e6104d, rev. 2.1, HDA version
> 1.0
> azalia_codec_init: nidstart=1 #functions=1
> azalia_codec_init: FTYPE result = 0x0101
> azalia_codec_init: There are 23 widgets in the audio function.
> encodings=1
> PCM
> formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>
> inamp: mute=1 size=5 steps=15 offset=0
> outamp: mute=1 size=2 steps=127 offset=127
> gpio: wake=1 unsol=1 gpis=0 gpos=0 gpios=5
> azalia0: dac02 wcap=d0c05
> azalia0: dac03 wcap=d0c05
> azalia0: dac04 wcap=d0c05
> azalia0: dac05 wcap=d0c05
> azalia0: adc06 wcap=1d0541
> connections=0x7; selected=0x7
> azalia0: sel07 wcap=300903
> connections=0xe; selected=0xe
> azalia0: adc08 wcap=1d0541
> connections=0x9; selected=0x9
> azalia0:

Re: default value for MALLOC_OPTIONS?

2008-06-28 Thread Theo de Raadt
> > /usr/src/lib/libc/stdlib/malloc.c says NULL, which is suprising, given
> > that OpenBSD will alert me to memory issues for programs that
> > run fine on another BSD.
> 
> All the options default to off, with the partial exception of the a/A
> option: the default behavior is not quite the same as either 'a' or
> 'A'.
> 
> (By default, it'll complain and abort if the internal structures get
> corrupted, you make a recursive call, or you pass it particularly
> bogus pointers.  'a' disables all those, while 'A' makes it also
> complain and die if allocation would fail.   It's probably those
> default checks that are triggering the alerts you referred to.)

MALLOC_OPTIONS has a bunch of additional things, above what malloc
does.

But obviously even when those are not used, malloc is imposing a bunch
of other paranoid features.



Re: acpi events in userland

2008-06-28 Thread frantisek holop
hmm, on Sat, Jun 28, 2008 at 11:01:25AM -0500, Marco Peereboom said that
> ACPI does knote and kqueue so it can be done properly.  Are you planning
> on writing diffs?

i am afraid my knowledge of the kernel internals is not sufficient
for a task like this at the moment...  i will definitely try,
but i'd say "don't hold your breath" :) (that's why i sent the idea
to the mailing list)

-f
-- 
history doesn't repeat itself.  historians do.



PCMCIA slot not even turning on in Sony VAIO SZ460N/C

2008-06-28 Thread Rob Lytle
Hi,

It appears that the slot applies no power to any card.  I included as much
debug code as I could in /usr/src/sys/dev/pci/pccbb.cI had to
re-comment-out the lines:

#define PCCBB_PCMCIA_POLL

#define CB_PCMCIA_POLL

or the kernel build would crash.  In the dmesg, it just looks like voltages
are 0.  I need my Atheros PCMCIA card to run WAP as my internal WiFi is the
Intel PRO Wireless 3945ABG which requires a firmware blob and only works
with WEP (unless Intel updated it).  If I can get it to work, at least I
will have "security theater," lol-   but better than WEP.

Below is DMESG:

Thanks,  Rob.


---
OpenBSD 4.3-current (GENERIC-DEBUG) #1: Sat Jun 28 09:33:15 PDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC-DEBUG
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2.01
GHz
cpu0:
FPU,V86,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,CX16,xTPR
real mem  = 2137026560 (2038MB)
avail mem = 2058194944 (1962MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/12/07, BIOS32 rev. 0 @ 0xfdbd0,
SMBIOS rev. 2.4 @ 0xdc010 (19 entries)
bios0: vendor Phoenix Technologies LTD version "R0112N0" date 04/12/2007
bios0: Sony Corporation VGN-SZ460N
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC HPET MCFG TCPA SLIC APIC BOOT SSDT SSDT SSDT
SSDT SSDT
acpi0: wakeup devices PWRB(S4) S1F0(S4) S1F1(S4) S1F2(S4) S1F3(S4) S1F4(S4)
S1F5(S4) S1F6(S4) S1F7(S4) TLAN(S3) DLAN(S3) USB1(S3) USB2(S3) USB3(S3)
USB4(S3) USB7(S3) SLT0(S4) EC0_(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 6 (RP02)
acpiprt4 at acpi0: bus 7 (RP03)
acpiprt5 at acpi0: bus 8 (RP04)
acpiprt6 at acpi0: bus 9 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C2
acpitz0 at acpi0: critical temperature 99 degC
acpitz1 at acpi0: critical temperature 100 degC
acpitz2 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 type LION oem "Sony Corp."
acpiac0 at acpi0: AC unit online
acpidock at acpi0 not configured
bios0: ROM list: 0xc/0x1! 0xdc000/0x4000! 0xe/0x1c00!
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x060b0c2206000c22
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1244 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xd000, size 0x1000
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia_attach: resetting
azalia_attach: reset counter = 5000
azalia_attach: reset counter = 4986
azalia0: found a codec at #0
azalia0: found a codec at #1
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: codec[0] vid 0x83847662, subid 0x81e6104d, rev. 2.1, HDA version
1.0
azalia_codec_init: nidstart=1 #functions=1
azalia_codec_init: FTYPE result = 0x0101
azalia_codec_init: There are 23 widgets in the audio function.
encodings=1
PCM
formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>
inamp: mute=1 size=5 steps=15 offset=0
outamp: mute=1 size=2 steps=127 offset=127
gpio: wake=1 unsol=1 gpis=0 gpos=0 gpios=5
azalia0: dac02 wcap=d0c05
azalia0: dac03 wcap=d0c05
azalia0: dac04 wcap=d0c05
azalia0: dac05 wcap=d0c05
azalia0: adc06 wcap=1d0541
connections=0x7; selected=0x7
azalia0: sel07 wcap=300903
connections=0xe; selected=0xe
azalia0: adc08 wcap=1d0541
connections=0x9; selected=0x9
azalia0: sel09 wcap=300903
connections=0x15; selected=0x15
azalia0: black0a wcap=400181
cap=173c
[02/00] color=black device=headphones conn=jack conntype=1/8
location=left chassis=external special=none
connections=0x2; selected=0x2
azalia0: black0b wcap=400181
cap=14
[15/00] color=black device=speaker conn=none conntype=1/8
location=rear chassis=external special=none
connections=0x4; selected=0x4
azalia0: black0c wcap=400181
cap=14
[15/00] color=black device=speaker conn=none conntype=1/8
location=rear chassis=external special=none
connections=0x3; selected=0x3
azalia0: red0d wcap=400181
cap=173c
[03/00] color=red device=mic conn=jack conntype=1/8
location=left chassis=external special=none
connections=0x2; selected=0x2
azalia0: blac

Azalia / HDA problems

2008-06-28 Thread Rob Lytle
Hi,

I'm having a problem with the azalia HDA sound driver.  I've included a
DMESG with option AZALIA_DEBUG in the kernel.

Its important to me to have a pretty functional driver as I use digital
sound card mutlimode-modems, gmfsk and gpsk31 in particular.

Here is the error message I get from gmfsk:(gpsk31 won't even start)

"sound_open_for_read: sndopen: setinfo failed: m" It kind of looks like
the error message was truncated.

I have attached my DMESG.  The problem is sort of an OS breaker as gmfsk is
one of the main programs I use.

I also have noticed that the OpenBSD HDA driver is lacking volume, just like
the Vista version, whereas the FreeBSD HDA driver has plenty of it.

Thanks,  Rob.

---
OpenBSD 4.3-current (GENERIC-DEBUG) #1: Sat Jun 28 09:33:15 PDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC-DEBUG
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2.01
GHz
cpu0:
FPU,V86,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,CX16,xTPR
real mem  = 2137026560 (2038MB)
avail mem = 2058194944 (1962MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/12/07, BIOS32 rev. 0 @ 0xfdbd0,
SMBIOS rev. 2.4 @ 0xdc010 (19 entries)
bios0: vendor Phoenix Technologies LTD version "R0112N0" date 04/12/2007
bios0: Sony Corporation VGN-SZ460N
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC HPET MCFG TCPA SLIC APIC BOOT SSDT SSDT SSDT
SSDT SSDT
acpi0: wakeup devices PWRB(S4) S1F0(S4) S1F1(S4) S1F2(S4) S1F3(S4) S1F4(S4)
S1F5(S4) S1F6(S4) S1F7(S4) TLAN(S3) DLAN(S3) USB1(S3) USB2(S3) USB3(S3)
USB4(S3) USB7(S3) SLT0(S4) EC0_(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 6 (RP02)
acpiprt4 at acpi0: bus 7 (RP03)
acpiprt5 at acpi0: bus 8 (RP04)
acpiprt6 at acpi0: bus 9 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C2
acpitz0 at acpi0: critical temperature 99 degC
acpitz1 at acpi0: critical temperature 100 degC
acpitz2 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 type LION oem "Sony Corp."
acpiac0 at acpi0: AC unit online
acpidock at acpi0 not configured
bios0: ROM list: 0xc/0x1! 0xdc000/0x4000! 0xe/0x1c00!
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x060b0c2206000c22
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1244 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xd000, size 0x1000
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia_attach: resetting
azalia_attach: reset counter = 5000
azalia_attach: reset counter = 4986
azalia0: found a codec at #0
azalia0: found a codec at #1
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: codec[0] vid 0x83847662, subid 0x81e6104d, rev. 2.1, HDA version
1.0
azalia_codec_init: nidstart=1 #functions=1
azalia_codec_init: FTYPE result = 0x0101
azalia_codec_init: There are 23 widgets in the audio function.
encodings=1
PCM
formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>
inamp: mute=1 size=5 steps=15 offset=0
outamp: mute=1 size=2 steps=127 offset=127
gpio: wake=1 unsol=1 gpis=0 gpos=0 gpios=5
azalia0: dac02 wcap=d0c05
azalia0: dac03 wcap=d0c05
azalia0: dac04 wcap=d0c05
azalia0: dac05 wcap=d0c05
azalia0: adc06 wcap=1d0541
connections=0x7; selected=0x7
azalia0: sel07 wcap=300903
connections=0xe; selected=0xe
azalia0: adc08 wcap=1d0541
connections=0x9; selected=0x9
azalia0: sel09 wcap=300903
connections=0x15; selected=0x15
azalia0: black0a wcap=400181
cap=173c
[02/00] color=black device=headphones conn=jack conntype=1/8
location=left chassis=external special=none
connections=0x2; selected=0x2
azalia0: black0b wcap=400181
cap=14
[15/00] color=black device=speaker conn=none conntype=1/8
location=rear chassis=external special=none
connections=0x4; selected=0x4
azalia0: black0c wcap=400181
cap=14
[15/00] color=black device=speaker conn=none conntype=1/8
location=rear chassis=external special=none
connections=0x3; selected=0x3
azalia0: red0d wcap=400181
cap=173c
[03/00] color=red device=mic conn=jack co

Re: default value for MALLOC_OPTIONS?

2008-06-28 Thread Philip Guenther
On Sat, Jun 28, 2008 at 5:32 PM, Mark B. <[EMAIL PROTECTED]> wrote:
...
> So the difference in my case was not malloc options but different
> realloc behavior.  This lurking disaster worked until I ran it on
> OpenBSD:
>
> struct test *tp1, *tp2;
> fcn_that_reallocs(&tp1);
> tp2 = tp1
> fcn_that_reallocs(&tp1);
> fail_if(tp2->id != 1);
>
> thx for the options, running that way now here too.

Yep.  That code is nonportable, as it assumes that the realloc didn't
change the address.  While some platforms guarantee that when
shrinking the allocation, or when it was the most recent allocation,
the C, POSIX, and SUS specs don't require such behavior.


Philip Guenther



Re: default value for MALLOC_OPTIONS?

2008-06-28 Thread Mark B.
On Sat, Jun 28, 2008 at 5:37 PM, Philip Guenther <[EMAIL PROTECTED]> wrote:
> On Sat, Jun 28, 2008 at 3:06 PM, Mark B. <[EMAIL PROTECTED]> wrote:
>> What is the default value for MALLOC_OPTIONS?
>
> All the options default to off, with the partial exception of the a/A
> option: the default behavior is not quite the same as either 'a' or
> 'A'.

So the difference in my case was not malloc options but different
realloc behavior.  This lurking disaster worked until I ran it on
OpenBSD:

struct test *tp1, *tp2;
fcn_that_reallocs(&tp1);
tp2 = tp1
fcn_that_reallocs(&tp1);
fail_if(tp2->id != 1);

thx for the options, running that way now here too.

m



Re: Suggestion for new vnconfig -p option

2008-06-28 Thread Tobias Ulmer
On Sun, Jun 29, 2008 at 12:23:27AM +0200, Michael Lechtermann wrote:
> Hi,
>
> currently I am writing a script to automount encrypted vnconfig partitions 
> (using hotplugd) when I insert an USB stick. The saltfile is on the USB 
> stick, so basically there is no need to manually enter the encryption key if 
> only I got access to the USB stick.
>
> To be able to do that I need to supply the encryption key to vnconfig in some 
> way, so I added the -p option.
>
> Normally this wouldn't be a good idea, but in cases like mine the security 
> issues should be minimal to zero, especially since -p only works when also 
> using -K and -S.
>
> What do you think?

Someone will remove your head from your body, i think ;). You can pipe
a password into vnconfig, if you block it from opening /dev/tty, eg.
with systrace.



Suggestion for new vnconfig -p option

2008-06-28 Thread Michael Lechtermann

Hi,

currently I am writing a script to automount encrypted vnconfig partitions 
(using hotplugd) when I insert an USB stick. The saltfile is on the USB stick, 
so basically there is no need to manually enter the encryption key if only I 
got access to the USB stick.

To be able to do that I need to supply the encryption key to vnconfig in some 
way, so I added the -p option.

Normally this wouldn't be a good idea, but in cases like mine the security 
issues should be minimal to zero, especially since -p only works when also 
using -K and -S.

What do you think?


Index: mount_vnd.8
===
RCS file: /cvs/src/sbin/mount_vnd/mount_vnd.8,v
retrieving revision 1.13
diff -u -r1.13 mount_vnd.8
--- mount_vnd.8 26 May 2008 21:14:46 -  1.13
+++ mount_vnd.8 28 Jun 2008 21:23:33 -
@@ -60,8 +60,15 @@
.Nm mount_vnd
.Bk -words
.Op Fl k
+.Op Fl o Ar options
+.Ar image
+.Ar vnd_dev
+.Ek
+.Nm mount_vnd
+.Bk -words
.Op Fl K Ar rounds
.Op Fl o Ar options
+.Op Fl p Ar pass
.Op Fl S Ar saltfile
.Ar image
.Ar vnd_dev
@@ -70,6 +77,7 @@
.Bk -words
.Op Fl ckluv
.Op Fl K Ar rounds
+.Op Fl p Ar pass
.Op Fl S Ar saltfile
.Ar vnd_dev
.Ar image
@@ -162,10 +170,11 @@
The user is asked for both a passphrase and the name of a salt file.
The salt file can also be specified on the command line using the
.Fl S
+option. The passphrase can be specified using the
+.Fl p
option.
-The passphrase and salt are combined according to PKCS #5 PBKDF2 for the
-specified number of
-rounds to generate the actual key used.
+The passphrase and salt are combined according to PKCS #5 PBKDF2
+for the specified number of rounds to generate the actual key used.
.Ar rounds
is a number between 1000 and
.Dv INT_MAX .
@@ -199,6 +208,13 @@
.Fl o
is only here for compatibility reasons, but no use is made of supplied
options.
+.It Fl p Ar pass
+When
+.Fl K
+is used, use this passphrase as the encryption key. Can be used to
+automount encrypted partitions when inserting an USB stick, if
+.Xr hotplugd 8
+is configured properly.
.It Fl S Ar saltfile
When
.Fl K
Index: mount_vnd.c
===
RCS file: /cvs/src/sbin/mount_vnd/mount_vnd.c,v
retrieving revision 1.5
diff -u -r1.5 mount_vnd.c
--- mount_vnd.c 14 Jun 2008 01:47:27 -  1.5
+++ mount_vnd.c 28 Jun 2008 21:23:33 -
@@ -69,13 +69,13 @@
__dead void  usage(void);
int  config(char *, char *, int, char *, size_t);
int  getinfo(const char *);
-char   *get_pkcs_key(char *, char *);
+char   *get_pkcs_key(char *, char *, char *);

int
main(int argc, char **argv)
{
int  ch, rv, action, opt_c, opt_k, opt_K, opt_l, opt_u;
-   char*key, *mntopts, *rounds, *saltopt;
+   char*key, *mntopts, *passopt, *rounds, *saltopt;
size_t   keylen = 0;
extern char *__progname;

@@ -83,10 +83,10 @@
run_mount_vnd = 1;

opt_c = opt_k = opt_K = opt_l = opt_u = 0;
-   key = mntopts = rounds = saltopt = NULL;
+   key = mntopts = passopt = rounds = saltopt = NULL;
action = VND_CONFIG;

-   while ((ch = getopt(argc, argv, "ckK:lo:S:uv")) != -1) {
+   while ((ch = getopt(argc, argv, "ckK:lo:p:S:uv")) != -1) {
switch (ch) {
case 'c':
opt_c = 1;
@@ -104,6 +104,9 @@
case 'o':
mntopts = optarg;
break;
+   case 'p':
+   passopt = optarg;
+   break;
case 'S':
saltopt = optarg;
break;
@@ -134,6 +137,9 @@
if (saltopt && (!opt_K))
errx(1, "-S only makes sense when used with -K");

+   if (passopt && (!saltopt))
+   errx(1, "-p only allowed when used with -K and -S");
+
if (action == VND_CONFIG && argc == 2) {
int ind_raw, ind_reg;

@@ -144,7 +150,7 @@
if (key == NULL || (keylen = strlen(key)) == 0)
errx(1, "Need an encryption key");
} else if (opt_K) {
-   key = get_pkcs_key(rounds, saltopt);
+   key = get_pkcs_key(rounds, passopt, saltopt);
keylen = BLF_MAXUTILIZED;
}

@@ -168,7 +174,7 @@
}

char *
-get_pkcs_key(char *arg, char *saltopt)
+get_pkcs_key(char *arg, char *passopt, char *saltopt)
{
char keybuf[128], saltbuf[128], saltfilebuf[PATH_MAX];
char*saltfile;
@@ -179,9 +185,13 @@
rounds = strtonum(arg, 1000, INT_MAX, &errstr);
if (errstr)
err(1, "rounds: %s", errstr);
-   key = getpass("Encryption key: ");
-   if (!key || strlen(key) == 0)
-   errx(1, "Need an encryption key");
+   if (!passopt || strlen(passopt) == 0) {
+   key = getpass

Re: Named and reverse zones help

2008-06-28 Thread Philip Guenther
On Sat, Jun 28, 2008 at 2:32 PM, Parvinder Bhasin
<[EMAIL PROTECTED]> wrote:
> I am having issues setting up reverse zone for my domain.
> We own only HALF or PART of the network instead of whole class C.
>
> How should I write out the config in named.conf to reflect the reverse zone?

For networks that aren't globally unique, such as 127/8 and the RFC
1918 networks, you just provide the normal form of them
("127.in-addr.arpa", "168.192.in-addr.arpa", etc).

For a globally unique network, you should configure named to provide
the zones that the parent zone delegated to you.  For network that
don't fall on an octet boundary, you'll  need to talk to your provider
to see what format they actually use to do the delegation.  You can
probably figure it out for yourself by using dig against your
provider's server.  I would give more specific directions, but you
changed your example to be useless.


Philip Guenther



Re: default value for MALLOC_OPTIONS?

2008-06-28 Thread Philip Guenther
On Sat, Jun 28, 2008 at 3:06 PM, Mark B. <[EMAIL PROTECTED]> wrote:
> What is the default value for MALLOC_OPTIONS?
>
> /usr/src/lib/libc/stdlib/malloc.c says NULL, which is suprising, given
> that OpenBSD will alert me to memory issues for programs that
> run fine on another BSD.

All the options default to off, with the partial exception of the a/A
option: the default behavior is not quite the same as either 'a' or
'A'.

(By default, it'll complain and abort if the internal structures get
corrupted, you make a recursive call, or you pass it particularly
bogus pointers.  'a' disables all those, while 'A' makes it also
complain and die if allocation would fail.   It's probably those
default checks that are triggering the alerts you referred to.)


> Also, what options do folks use when they want to really test things out?

I use this:

$ ls -l /etc/malloc.conf
lrwxr-xr-x  1 root  wheel  4 May 23 21:49 /etc/malloc.conf -> FGJP
$

If a program I don't have the time to debug has problems with that
then I set MALLOC_OPTIONS=fgjp (or whatever is sufficient) for just
that program.


Philip Guenther



Re: vnconfig - (performence) Bug

2008-06-28 Thread Sebastian Rother
On Sat, 28 Jun 2008 23:12:50 +0200
Tobias Ulmer <[EMAIL PROTECTED]> wrote:

> On Sat, Jun 28, 2008 at 09:46:11PM +0200, Sebastian Rother wrote:
> > [...]
> 
> Face it, OpenBSD sucks, i'm using FreeBSD now and it's so much better!!
> You can also try linux, they have an optimized (assembler!) aes module,
> that gives you awesome transfer rates!
> 
> Tobias

No thanks,

OpenBSD is the best thing I can think of.
But thanks for your real awesome hint..

It's just a Bug, not the end of the world.


Kind regards,
Sebastian



Re: vnconfig - (performence) Bug

2008-06-28 Thread Tobias Ulmer
On Sat, Jun 28, 2008 at 09:46:11PM +0200, Sebastian Rother wrote:
> [...]

Face it, OpenBSD sucks, i'm using FreeBSD now and it's so much better!!
You can also try linux, they have an optimized (assembler!) aes module,
that gives you awesome transfer rates!

Tobias



default value for MALLOC_OPTIONS?

2008-06-28 Thread Mark B.
What is the default value for MALLOC_OPTIONS?

/usr/src/lib/libc/stdlib/malloc.c says NULL, which is suprising, given
that OpenBSD will alert me to memory issues for programs that
run fine on another BSD.

Also, what options do folks use when they want to really test things
out?

A big thank you for how malloc behaves out of the box--it makes
me miss valgrind less.

m



Named and reverse zones help

2008-06-28 Thread Parvinder Bhasin

Hi all,

I am having issues setting up reverse zone for my domain.
We own only HALF or PART of the network instead of whole class C.

How should I write out the config in named.conf to reflect the reverse  
zone?


Lets say my network is 192.168.1.0/25.

This is how I wrote my named.conf

zone "1/25.1.168.192.in-addr.arpa" {
type master;
file "reverse/1_25.1.168.192.in-addr.arpa";
zone-statistics yes;
};


And my zone file:  1_25.1.168.192.in-addr.arpa

$TTL 2d
@ IN SOA ns1. admin. (
2008021602 ; serial
3600 ; refresh
3600 ; retry
2592000 ; expire
86400 ; minimum
)
1/25.1.168.192.in-addr.arpa. 	300 	IN  	NS  		 
ns1.mydns.com

2.1/25.1.168.192.in-addr.arpa.  300 IN  PTR 
foobar.mydns.com


The problem is when I do : (for testing)

dig +short -x 192.168.1.2 @localhost

I don't get anything back.  I simply get the next line (prompt).  I  
should get foobar.mydns.com


Can anyone see what I am doing wrong?

Any help is highly appreciated.

Thanks



Re: acpi events in userland

2008-06-28 Thread Marco Peereboom
ACPI does knote and kqueue so it can be done properly.  Are you planning
on writing diffs?

On Sat, Jun 28, 2008 at 01:58:25PM +0200, frantisek holop wrote:
> hi there,
> 
> is there a way to assign custom functions to acpi events,
> something like hotplugd for device events?
> 
> the thing is, that most of the notebooks assign events to
> a lot of fn+function keys.  often these are not functional
> or semi-functional in openbsd so why not use them for something
> else, they could be handy shortcuts for running stuff or doing stuff...
> for example changing the volume in user definable steps and
> whatnot.
> 
> what about an /etc/acpi/?  there could be a small daemon (acpid)
> like hotplugd pushing the events to userland...
> 
> what do you think?
> 
> -f
> -- 
> today is a fine day for firm decisions.  or is it?



eeepc 900 4.3-current

2008-06-28 Thread Frank Brodbeck
Hi misc@,

today I got my eeepc 900 and was eager to install 4.3-current on it.
So I downloaded the latest snapshot of bsd.rd and pxeboot and netbooted
the eee. Sadly the kernel boot stops after attaching pciide0 at pci0.

I also tried to boot /bsd.rd -d  in the hope to get more information
about what is going on but with no difference. Anyone here who has made
experiences with the 9" model? I'd like to provide the dmesg but I don't
have a USB<->RS232.

Frank.

-- 
Frank Brodbeck <[EMAIL PROTECTED]>



Re: pkg_delete will not force deletion despite any -F options

2008-06-28 Thread Rob Lytle
Oh, BTW, I'm running -CURRENT cvsup'd from noon yesterday (Friday).  Rob

On Sat, Jun 28, 2008 at 6:56 AM, Rob Lytle <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm trying to force the deletion of a package that some others depend
> upon.  I've used "pkg_delete -F {option} {package} with all the -F switches
> and I can't get rid of it.  It just keeps on telling me I can't delete it
> because other packages depend upon it.  Any wisdom appreciated.  I checked
> FAQ and manual and no luck.
>
> Rob



pkg_delete will not force deletion despite any -F options

2008-06-28 Thread Rob Lytle
Hi,

I'm trying to force the deletion of a package that some others depend upon.
I've used "pkg_delete -F {option} {package} with all the -F switches and I
can't get rid of it.  It just keeps on telling me I can't delete it because
other packages depend upon it.  Any wisdom appreciated.  I checked FAQ and
manual and no luck.

Rob



Re: scsi disk i/o hanging 4.3 system

2008-06-28 Thread Marco Peereboom
That is fixed in 4.3 or in -current not sure if it made the previous
release.

On Sat, Jun 28, 2008 at 10:17:02AM +0200, Torsten Frost wrote:
> I have a few machines with the same behavior. The boxes run fine
> unless you tax them with
> things like unpacking ports, du on a large tree or dd'ng some
> /dev/zero to disk. The 1950 can route 400mbit
> ethernet with no problems for weeks if you don't mess with the disks,
> so i guess the hardware is
> reasonably unbroken.
> 
> 
> Broken hardware or some driver/chipset issue?
> 
> 
> Dell 1950 with a PERC5 raid1 SATA 160gb mirror. 4.2-RELEASE
> 
> A 300mb dd write makes an unkillable process. Outputs a few "sd0: not
> queued, error 5" lines.
> 
> 
> Recently flashed the card to the latest firmware. Behaves somewhat better.
> 
> Happens with a single drive too.
> 
> Needs rebooting to be able to write to the
> drive after it has started to behave.
> Takes forever to unpack ports.tar.gz, i aborted the unpacking after 20
> minutes and about 100mb unpacked.
> Is at least stable, doesn't die, just writes to the disk really slow.
> Like previous poster, unkillable processes and weird behaviour. Needs
> rebooting to be able to write to the
> drive after it has started to behave.
> 
> -
> 
> Dell 1750 scsi
> 
> Our two 1750 scsi boxes works good though. Doesn't seem to crash from dd.
> 
> -



acpi events in userland

2008-06-28 Thread frantisek holop
hi there,

is there a way to assign custom functions to acpi events,
something like hotplugd for device events?

the thing is, that most of the notebooks assign events to
a lot of fn+function keys.  often these are not functional
or semi-functional in openbsd so why not use them for something
else, they could be handy shortcuts for running stuff or doing stuff...
for example changing the volume in user definable steps and
whatnot.

what about an /etc/acpi/?  there could be a small daemon (acpid)
like hotplugd pushing the events to userland...

what do you think?

-f
-- 
today is a fine day for firm decisions.  or is it?



Inviting HR professionals to undertake campus recruitment at our campus if any openings exist in your organization.

2008-06-28 Thread placements.bitswarangal
BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE
Laknepally (V), Narsampet (M), Warangal - 506 331


Dr. A. R. P. Reddy, Chairman
Cell : 9866078586, Email ID : [EMAIL PROTECTED]





Dear HR Colleague,


Sub: Inviting HR professionals to undertake campus recruitment at our
campus if any 
openings exist in your organization.

* * *


Balaji Institute of Technology & Science, Narsampet, popularly known as
BITS - Narsampet, Warangal, was established by Maheshwara Educational
Society in 2001 at Laknepally, Narsampet in an area of about 54 acres.
It is only 30 minutes drive from Warangal Railway Station.

BITS has been known as a reputed technical campus for many years. BITS,
from its technical campus, produce suitable professionals to meet your
Industrial requirements for Recruitment / Hiring by companies. The
professional specializations are :

Engineering : Computer Science - 120 Student Professionals
Electronics & Communication - 120 Student Professionals
Information Technology - 120 Student Professionals
Mechanical Engineering - 60 Student Professionals

Post Graduation : MBA - 60 Student Professionals
MCA - 60 Student Professionals

B.Pharmacy : 60 Student Professionals

Please do contact us whenever you wish to plan to visit our campus for
recruiting Engineering & Pharmacy graduates and Post Graduates
pertaining to MCA and MBA of 2009 and also 2008 passing outs or for any
assistance from our side that we can do / extend in Warangal district.

If companies like yours are interested to recruit freshers by opting
Pool - Campus drive we will be able to line-up about 1500 eligible
engineering student professionals pertaining to above specializations of
2009 passing outs and also about 1000 eligible professionals of 2008
passing outs from nearby professional colleges to participate in the
Pool - Campus drive.

We will be grateful if you could please make refer to other HR friends
you know among your circle.

It is our pleasure to await your visit to our campus.

Thanks & Regards,

Vikram Reddy Vaddi
Head, Training & Placement Cell
Balaji Institute of Technology & Science
Narsampet, Dist.Warangal (A.P)
Cell : 99497 85905
Email ID : [EMAIL PROTECTED]
[EMAIL PROTECTED]



Re: Continuation of OpenBSD's Stop the Blob

2008-06-28 Thread Mark Smith

Andre van Zyl wrote:


On the contrary, Mark, right now I personally have a higher regard for
Thilo, who actually posted an opinion.


Dear Andre,

We are not at a popularity contest so it's not about having a "higher 
regard" for someone, but about technical facts ( --> eepc, documentation).


Nor is it only about having an opinion but about acts.
Acts speak more than words ( --> NDA's).
Do not only listen to what they preach. Look at what they do.

The topic is the fight against blobs.

Please Andre if you are so eager to come to the rescue of ignorant 
people, can you enlighten us on the merits of the eepc and the signing 
of NDA's in the fight against blobs ?


> All you've done is posted a typical fanboi response to Theo's reply 
to > Thilo. Who are you trying to impress?


You are entitled to your own opinion. I am not trying to impress anyone, 
I am actually trying to not participate in the spreading of lies and to 
not stay silent when it occurs.


That's why I always let know vendors why I *DID NOT* buy their products 
and tell them who got the money.
If more people would do that, to let companies know why they didn't get 
the money, things would change.
Instead people prefer to spread bullshits on mailing lists, but that's 
their right too.


Acts or *stronger* than opinions Andre.

Stop the blob. Do your part.


Regards,

Mark.



Re: ddb question

2008-06-28 Thread Stuart Henderson
On 2008-06-28, Dimitri <[EMAIL PROTECTED]> wrote:
> Today I start my OpenBSD machine, but this is crashed and I dont know wath is
> problem.

Which kernel are you running - i386, amd64, some other arch?
bsd or bsd.mp? Which release or snapshot? Did it work before with
the exact same setup, or did you change something (and if you did,
what did you change?)

> The errror is:
> (http://farm4.static.flickr.com/3012/2617892868_126aa463c9_o.jpg)

Let me fill in a few more of the lines that you missed, so others
can see which area it's in, because people do not want to have to copy
the url into a web browser, then look at a photograph. (was it really
easier to get a camera, take a photo, transfer it to a computer,
upload it, and paste the URL? :-)

mtrr: Pentium Pro MTRR support
cardbus_mem_find: void region
cbb0: pccbb_close_win: mem winlist delete

> extent 'PCI I/O MEMORY SPACES' (0X0 - 0xfff), flags=0
> uvm_fault(0xd076da00, 0xd05a4000, 0, 1) -> e
> kernel: page fault trap, code=0
> Stopped at clockintr:uvm_fault(0xd076da00, 0xd05a4000, 0, 1) -> e
> kernel: page fault trap, code=0
> Stopped at db_read_bytes+0x14: movb 0(%edx), %al
> ddb>
>
> I try enter ddb command
> (http://www.openbsd.org/cgi-bin/man.cgi?query=ddb&apropos=0&sektion=0&manpath
>=OpenBSD+Current&arch=i386&format=html)
> but I received more error

If a machine unexpectedly enters ddb, you should type "trace"
and copy this down (ideally all of it, but at least the names of
the functions) into an email.



Re: scsi disk i/o hanging 4.3 system

2008-06-28 Thread Torsten Frost
I guess the previous message got garbled somehow.




Dell 1950 with a PERC5 raid1 SATA 160gb mirror. 4.2-RELEASE

A 300mb dd write makes an unkillable process. Outputs a few "sd0: not
queued, error 5" lines.


Recently flashed the card to the latest firmware. Behaves somewhat better.

Happens with a single drive too.

Needs rebooting to be able to write to the
drive after it has started to behave.
Takes forever to unpack ports.tar.gz, i aborted the unpacking after 20
minutes and about 100mb unpacked.
Is atleast stable, doesn't die, just writes to the disk really slow.
Like previous poster, unkillable processes and weird behaviour. Needs
rebooting to be able to write to the
drive after it has started to behave.

-

Dell 1750 scsi

Our two 1750 scsi boxes works good though. Doesn't seem to crash from dd.

-



Re: scsi disk i/o hanging 4.3 system

2008-06-28 Thread Torsten Frost
I have a few machines with the same behavior. The boxes run fine
unless you tax them with
things like unpacking ports, du on a large tree or dd'ng some
/dev/zero to disk. The 1950 can route 400mbit
ethernet with no problems for weeks if you don't mess with the disks,
so i guess the hardware is
reasonably unbroken.


Broken hardware or some driver/chipset issue?


Dell 1950 with a PERC5 raid1 SATA 160gb mirror. 4.2-RELEASE

A 300mb dd write makes an unkillable process. Outputs a few "sd0: not
queued, error 5" lines.


Recently flashed the card to the latest firmware. Behaves somewhat better.

Happens with a single drive too.

Needs rebooting to be able to write to the
drive after it has started to behave.
Takes forever to unpack ports.tar.gz, i aborted the unpacking after 20
minutes and about 100mb unpacked.
Is at least stable, doesn't die, just writes to the disk really slow.
Like previous poster, unkillable processes and weird behaviour. Needs
rebooting to be able to write to the
drive after it has started to behave.

-

Dell 1750 scsi

Our two 1750 scsi boxes works good though. Doesn't seem to crash from dd.

-



ddb question

2008-06-28 Thread Dimitri
Hello all.

Today I start my OpenBSD machine, but this is crashed and I dont know wath is
problem.
The errror is:
(http://farm4.static.flickr.com/3012/2617892868_126aa463c9_o.jpg)

extent 'PCI I/O MEMORY SPACES' (0X0 - 0xfff), flags=0
uvm_fault(0xd076da00, 0xd05a4000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at clockintr:uvm_fault(0xd076da00, 0xd05a4000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at db_read_bytes+0x14: movb 0(%edx), %al
ddb>

I try enter ddb command
(http://www.openbsd.org/cgi-bin/man.cgi?query=ddb&apropos=0&sektion=0&manpath
=OpenBSD+Current&arch=i386&format=html)
but I received more error
I try reeboted the machine (boot -d) but the ddb command dont config my
computer.
some idea?.

Regards.


Dimitri.-
http://es.geocities.com/trichotecene/
OpenBSD - Free, Functional & Secure
__ 
Enviado desde Correo Yahoo! La
bandeja de entrada mas inteligente.