Re: open ("/dev/tty.xxxx"...) for my driver crashes the system
Re: open ("/dev/tty.xxxx"...) for my driver crashes the system
- Subject: Re: open ("/dev/tty.xxxx"...) for my driver crashes the system
- From: Garth Cummings <email@hidden>
- Date: Tue, 27 Jun 2006 10:27:50 -0700
Hi Pavan,On Jun 27, 2006, at 2:08 AM, Pavan Chebbi wrote: I want to know what happens when I call open() on my virtual ports from a program? I want to know how do I register the open routine for my driver. I know the routines acquirePort, releasePort, etc but the machine crashes the moment I call open from an application. ( open("/dev/tty.xxxx", O_RDWR | O_NOCTTY | O_NONBLOCK ))
The panic log says unresolved kernel trap 0x300 data access.
The IOSerialBSDClient handles the transition from BSD syscalls to your I/O Kit driver.
I highly recommend you decode the panic backtrace to see precisely where the system panicked. All you know at this point is that a bad memory reference occurred, such as dereferencing a NULL or uninitialized pointer. This could be just a simple bug in your code.
Good luck, --gc __________________________________________________________________ Sr. Software Engineer Apple Developer Technical Support
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden