From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: User-mode-linux-devel <User-mode-linux-devel@lists.sourceforge.net>
Subject: [uml-devel] Re: problems with UML, issues with includes
Date: Tue, 02 Mar 2004 10:08:24 -0500 [thread overview]
Message-ID: <4044A368.8050406@nortelnetworks.com> (raw)
In-Reply-To: 200403020100.i2210dM9025649@ccure.user-mode-linux.org
Jeff Dike wrote:
> cfriesen@nortelnetworks.com said:
>
>>1) How do I fix the build process to pick up the kernel includes (and
>>why doesn't it do that by default?).
>>
>
> You don't. The host's libc headers and the UML pool's kernel headers are
> fundamentally incompatible. You can't mix them, as you're trying to do
> by including sched.h into a userspace file.
Maybe I'm just confused about how the various things get compiled. In a
normal kernel build, including <linux/sched.h> gets you the kernel
headers, not the libc headers. I had assumed that I would be able to get
at the UML kernel's sched.h from within the arch/um code. Is this a
false assumption? Or am I just doing it wrong?
>>2) Any ideas why I'm getting
>>the descriptor thing?
>>
>
> No, but get a stack trace or two from that printk, and that should help figure
> it out.
Here's a backtrace from just where the code would print the registering
twice message. Am I right in assuming that since we're hitting this it
seems to indicate some messed-up reference counting somewhere?
#0 activate_fd (irq=3, fd=47, type=1, dev_id=0xa02309f8) at irq_user.c:157
#1 0xa00cf9bd in um_request_irq (irq=3, fd=47, type=1,
handler=0xa010e230 <line_write_interrupt>, irqflags=872415232,
devname=0xa01e7e85 "console-write", dev_id=0xa02309f8) at irq.c:430
#2 0xa010e326 in line_setup_irq (fd=47, input=1, output=1, data=0xa02309f8)
at line.c:211
#3 0xa010d0b9 in enable_chan (chans=0xa0230a00, data=0xa02309f8)
at chan_kern.c:164
#4 0xa010e458 in line_open (lines=0xa02309a0, tty=0xaf1f7000,
opts=0xa0230920)
at line.c:258
#5 0xa010cb99 in open_console (tty=0xaf1f7000) at stdio_console.c:135
#6 0xa00e391f in tty_open (inode=0xafc13c00, filp=0xafe7ef20) at
tty_io.c:1433
#7 0xa0084d94 in devfs_open (inode=0xafc13c00, file=0xafe7ef20) at
base.c:2799
#8 0xa0035e18 in dentry_open (dentry=0xafcd15a0, mnt=0xa032f320, flags=2)
at open.c:698
#9 0xa0035d0b in filp_open (filename=0xaff49000 "/dev/ttys/1", flags=2,
mode=0) at open.c:656
#10 0xa003607a in sys_open (filename=0x9ffffd20 "/dev/ttys/1", flags=2,
mode=0)
at open.c:798
#11 0xa00d97ec in execute_syscall_tt (r=0xaefd8274) at syscall_kern.c:120
#12 0xa00d98a9 in syscall_handler_tt (sig=12, regs=0xaefd8274)
at syscall_user.c:37
#13 0xa00da9bb in sig_handler_common_tt (sig=12, sc_ptr=0xaefdbd28)
---Type <return> to continue, or q <return> to quit---
at trap_user.c:37
#14 0xa00d70dd in sig_handler (sig=12, sc=
{gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds =
43, __dsh = 0, edi = 2684353860, esi = 2684353824, ebp = 2684354024, esp
= 2684353800, ebx = 2684353824, edx = 0, ecx = 2, eax = 4294967258,
trapno = 14, err = 4, eip = 1074733544, cs = 35, __csh = 0, eflags =
582, esp_at_signal = 2684353800, ss = 43, __ssh = 0, fpstate =
0xaefdbd80, oldmask = 134283264, cr2 = 1074737568})
at trap_user.c:101
#15 <signal handler called>
#16 0x400f21e8 in ?? ()
#17 0x08049799 in ?? ()
#18 0x4002f9a7 in ?? ()
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-03-02 15:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-01 22:07 [uml-devel] problems with UML, issues with includes Chris Friesen
2004-03-02 1:00 ` [uml-devel] " Jeff Dike
2004-03-02 15:08 ` Chris Friesen [this message]
2004-03-02 18:06 ` BlaisorBlade
2004-03-02 20:54 ` Jeff Dike
2004-03-02 22:26 ` Chris Friesen
2004-03-02 23:22 ` Jeff Dike
2004-03-02 23:18 ` Chris Friesen
2004-03-02 23:37 ` [uml-devel] Re: problems with UML -- new data with memory debugging on Chris Friesen
2004-03-03 1:33 ` Jeff Dike
2004-03-03 16:49 ` Chris Friesen
2004-03-08 21:34 ` Jeff Dike
2004-03-08 21:08 ` Chris Friesen
2004-03-02 23:03 ` [uml-devel] Re: problems with UML, issues with includes Chris Friesen
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=4044A368.8050406@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=User-mode-linux-devel@lists.sourceforge.net \
--cc=jdike@addtoit.com \
/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