Skip to contentSkip to conversation

guest compiled with SUBARCH=i386 in deadloop ; not the toolchain anyway

uml-devel Blaisorblade 1 participant 1 message Oct 25, 2006 3 messages not in the archive User-mode Linux (UML)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.12366.1161176325.20332.user-mode-linux-user@lists.sourceforge.net

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 7 lines · Frank Marien
Quoted 3 lines · Blaisorblade
Quoted 1 line · Frank Marien

I reported previously that a kernel build before a gcc/glibc

Sorry to keep you waiting ; epidemic of HD crashes (at work, at home..)..
I think you missed my post to the list , last thursday:

Yes, I read currently the ML only at times...

Quoted 24 lines

(It talks about my last attempt ; For the host, I tried all permutations
of vanilla linus kernels, gentoo-patched ones with and without the corresponding skas patches, in 2.6.18, 2.6.18.1, some 2.6.17's, 2.6.16's, and 2 more recent ones from your site.. all the same result.

Same for the uml.. except I didn't patch with skas of course..

---cut here---

Message: 1
Date: Thu, 19 Oct 2006 21:38:16 +0159
From: Frank Marien <[email protected]>
Subject: [uml-user] 32-bit uml loops around __const_udelay..
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dear list,

This kernel is vanilla 2.6.18.1 ; compiled ARCH=um with almost all kernel debug enabled and SUBARCH=i386 ; all I can get from it is:

Quoted 7 lines

ur linux-2.6.18.1-32 # strace -f ./vmlinux

[... forever until ^C ...]

the ptrace called by my strace command gets is refused with EPERM, probably because the process is already being ptraced, being an UML and all..

Yes. But just because you are running strace -f. UML first thread ptraces UML child threads, which fails.

Quoted 1 line

gdb *will* work on it though (??)

Because strace without -f works on it.

Quoted 4 lines

ur linux-2.6.18.1-32 # gdb ./vmlinux

It's looping in or around __const_udelay in
arch/um/sys-i386/delay.c

This is interesting.

Quoted 10 lines

(gdb) b 38
Breakpoint 1 at 0x806935f: file delay.c, line 38.
(gdb) c
Continuing.

Breakpoint 1, __const_udelay (usecs=4295000) at delay.c:38
38 }
(gdb) n
panic (fmt=0x82320a5 "check_ptrace: PTRACE_OLDSETOPTIONS failed, errno = %d") at panic.c:139

If that fmt is trustworthy (it may be misleading) it's not a panic fo r a lockup.

Quoted 42 lines

..and entering panic() because of detecting a lockup.. sigh.. I disable debugging options and make again and gdb again..

ur linux-2.6.18.1-32 # gdb ./vmlinux
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/src/linux-2.6.18.1-32/vmlinux

Program received signal SIGINT, Interrupt.
0x0806bbf2 in __const_udelay ()
(gdb) l
1 /var/tmp/portage/glibc-2.4-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/c rti.S: No such file or directory. in /var/tmp/portage/glibc-2.4-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/c rti.S (gdb) n
Single stepping until exit from function __const_udelay,
which has no line number information.
0x0807592a in panic ()
(gdb) n
Single stepping until exit from function panic,
which has no line number information.
n

Program received signal SIGINT, Interrupt.
0x0806bbd7 in __const_udelay ()
(gdb) l
1 in
/var/tmp/portage/glibc-2.4-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/c rti.S (gdb) n
Single stepping until exit from function __const_udelay,
which has no line number information.
0x0807592a in panic ()

Quoted 5 lines

..all that gets me is no way to debug.. but still panicking..

** Tried commenting out NOP, reducing number of loops by forcing n=10 ; commenting out body of function so no delay would occur.. same result.. loops and panics..

There are various layers of functions there, but there is a known bug I reported to Jeff... __const_udelay() of UML supposes to be called with a microseconds value, but udelay() from i386 (which is reused by UML) calls it with a much higher value because it passes a value in a different unit.

Quoted 1 line

variable "n" is not in context.. strange

optimized out.

Quoted 10 lines

.. what is the end condition, then?
I've seen i jumping to 100000, also.. doesn't make sense to me, this debugging session..

IMHO this is using register variables and those are screwed up somehow. But I don't have any experience on i386 let alone Opteron machine code.:-(

Quoted 2 lines
Quoted 1 line

or some statement saying it's not supposed to work..

Quoted 8 lines
Quoted 5 lines

My test scenario is (almost) always make ARCH=um SUBARCH=i386 and run it on a 64bit system (it happened that I ran such kernels on 32bit systems and I never found problems in this transition). I always take care to use skas0 for 64bit guests or, for 32bit ones noprocmm or skas0 (both work, 1st is faster) if the host is a 64bit SKAS-patched one.

Okay, all that is good to know. I was going blind trying to get my 64-bit uml run in skas3..

Happy to have saved your time about this.

Signature · 16 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel