From: Russell King <rmk@arm.linux.org.uk>
To: "Laurent Hugé" <laurent.huge@wanadoo.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Call of tty->driver.write provides segmentation fault
Date: Thu, 4 Sep 2003 10:52:57 +0100 [thread overview]
Message-ID: <20030904105257.B7387@flint.arm.linux.org.uk> (raw)
In-Reply-To: <200309041107.12393.laurent.huge@wanadoo.fr>; from laurent.huge@wanadoo.fr on Thu, Sep 04, 2003 at 11:07:11AM +0200
On Thu, Sep 04, 2003 at 11:07:11AM +0200, Laurent Hugé wrote:
> I'm currently contriving a network driver using the serial port.
> I've created my own line discipline (and tests prove it reads well), but I
> can't write to the port : I tried to use tty->driver.write(tty, 0, msg,
> strlen(msg)) (the same way that in printk.c, i.e. after testing that
> tty->driver.write exists) but it crashs into a segmentation fault.
> Since the driver implementation is not mine (I'm just using the serial
> module), I can't check the function's address, but I believe the tty is
> ok (it is the same I use for the line discipline).
You need to look at the kernel messages - normally you'll find an
"oops" in there when this happens. If the dump doesn't contain
symbolic information (ie, the function names) you'll need to pass
it though ksymoops to decode it (using the correct System.map file
for the kernel which generated the dump.)
If you do use ksymoops, be sure to include the original oops dump -
ksymoops appears to drop some lines from the oops dump.
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next prev parent reply other threads:[~2003-09-04 9:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-04 9:07 Call of tty->driver.write provides segmentation fault Laurent Hugé
2003-09-04 9:52 ` Russell King [this message]
2003-09-04 11:35 ` Laurent Hugé
2003-09-04 11:41 ` Russell King
2003-09-04 18:49 ` Re : " Laurent Hugé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030904105257.B7387@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=laurent.huge@wanadoo.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox