Skip to contentSkip to conversation

What's a "Trace/breakpoint trap" and why does he crash my system?

parisc-linux [email protected] 2 participants 6 messages Sep 1, 2001 – Sep 5, 2001

lore
Share & tools
lore
#0 lore raw

Well, I can boot 2.4.9-pa13 just fine on my C200, but trying to compile a kernel under that version never works, typing

make proper

in the source directory doesn't produce any output but

Trace/breakpoint error

after one second or so.

I realize this is a worthless bug-report, but where does that message come from? The text is nowhere in the kernel-sources, so it must be something else.

Greetings,
Jurriaan

Signature · 4 lines
HORROR FILM WISDOM:
1. When it seems that you've killed the monster, never check to see if
it's really dead.
GNU/Linux 2.4.9-ac5 SMP/ReiserFS 2x1402 bogomips load av: 0.14 0.12 0.04
#1 lore raw
Quoted 8 lines · On Sat, Sep 01, 2001 at 03:50:06PM +0200, [email protected] wrote:

Well, I can boot 2.4.9-pa13 just fine on my C200, but trying to compile a kernel under that version never works, typing

make proper

in the source directory doesn't produce any output but

Trace/breakpoint error

should be 'Trace/breakpoint trap'

Quoted 7 lines

after one second or so.

I realize this is a worthless bug-report, but where does that message come from? The text is nowhere in the kernel-sources, so it must be something else.

I tried running make under strace, and it ran fine. So I tried it again, and I saw this:

--- SIGCHLD (Child exited) ---

rt_sigreturn(0)                         = -1 EINTR (Interrupted system call)
read(4, "", 193)                        = 0
close(4)                                = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 265
pipe([4, 5])                            = 0
fork()                                  = 268
close(5)                                = 0
read(4, "/bin/sh\n", 200)               = 8
read(4, "", 192)                        = -512
--- SIGCHLD (Child exited) ---
rt_sigreturn(0)                         = -1 EINTR (Interrupted system call)
read(4, "", 192)                        = 0
close(4)                                = 0

wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 268
pipe([4, 5]) = 0
fork() = 269
--- SIGCHLD (Child exited) ---
rt_sigreturn(0) = 269
close(5) = 0
read(4, "/home/jurriaan/source/linux-2001"..., 200) = 37
read(4, "", 163) = 0
close(4) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 269
read(3, "+= drivers/scsi/scsidrv.o\nDRIVER"..., 4096) = 4096
brk(0x4b000) = 0x4b000
brk(0x4c000) = 0x4c000
open("arch/parisc/Makefile", O_RDONLY|O_LARGEFILE) = 4
idle() = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000 read(4, "#\n# parisc/Makefile\n#\n# This fil"..., 4096) = 3156

pipe([5, 6])                            = 0
fork()                                  = 270
close(6)                                = 0
read(5, "", 200)                        = -512

--- SIGCHLD (Child exited) ---
rt_sigreturn(0

and then it hang. On reboot, it gave the same 'Trace/breakpoint trap' error, but didn't hang. Next time I tried it, it did hang.

Jurriaan

Signature · 4 lines
`That right?' Hawk gave MacReady a long, thoughtful look.
`I'll have to remember that.'
	Simon R Green - Hawk & Fisher II Fear and Loathing in Haven
GNU/Linux 2.4.9-ac5 SMP/ReiserFS 2x1402 bogomips load av: 0.05 0.15 0.08
#2 lore raw
Quoted 1 line · On Sat, Sep 01, 2001 at 08:32:32PM +0200, [email protected] wrote:

should be 'Trace/breakpoint trap'

hmm.. what version of glibc do you have installed? something else you can do is run strace -ff which will attempt to follow fork/clone/vfork.

Signature · 1 line
Revolutions do not require corporate support.
#3 lore raw
Quoted 6 lines · Matthew Wilcox
Quoted 1 line · On Sat, Sep 01, 2001 at 08:32:32PM +0200, [email protected] wrote:

should be 'Trace/breakpoint trap'

hmm.. what version of glibc do you have installed? something else you can do is run strace -ff which will attempt to follow fork/clone/vfork.

2.2.3-9. 2.2.4 is out, I know.

strace -ff:

idle() = 0
fcntl(8, F_SETFD, FD_CLOEXEC) = 0
SYS_201(0x8, 0x555b0, 0x1000, 0x220e1407, 0) = 72

brk(0x58000)                            = 0x58000
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x4001a000, 4096)                = 0

read(3, "+= drivers/scsi/scsidrv.o\nDRIVER"..., 4096) = 4096 open("arch/parisc/Makefile", O_RDONLY|O_LARGEFILE) = 4
idle() = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000 read(4, "#\n# parisc/Makefile\n#\n# This fil"..., 4096) = 3156

pipe([9, 10])                           = 0
fork()                                  = 163
[pid   157] close(10)                   = 0
[pid   157] read(9,  <unfinished ...>
[pid   163] dup2(10, 1)                 = 1
[pid   163] close(10)                   = 0
[pid   163] execve("/usr/local/bin/uname", ["uname", "-m"], [/* 17 vars */]) = -1 ENOENT (No such file or directory)
[pid   163] execve("/usr/bin/uname", ["uname", "-m"], [/* 17 vars */]) = -1074780648
[pid   163] execve("", [ptrace: umoven: Input/output error
0x2], [/* 2 vars */]) = 1073908880
[pid   163] brk(0)                      = 0x23000
[pid   163] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid   163] open("/etc/ld.so.cache", O_RDONLY) = 5
[pid   163] idle()                      = 0
[pid   163] mmap(NULL, 6556, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40019000
[pid   163] close(5)                    = 0
[pid   163] open("/lib/libc.so.6", O_RDONLY) = 5
[pid   163] read(5, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\2\300"..., 1024) = 1024
[pid   163] idle()                      = 0
[pid   163] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000
[pid   163] mmap(NULL, 1417616, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x4002a000
[pid   163] mprotect(0x40167000, 119184, PROT_NONE) = 0
[pid   163] mmap(0x40176000, 45056, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 0x13c000) = 0x40176000
[pid   163] mmap(0x40181000, 12688, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40181000
[pid   163] close(5)                    = 0
[pid   163] mprotect(0x10000, 12288, PROT_READ|PROT_WRITE) = 0
[pid   163] mprotect(0x10000, 12288, PROT_READ|PROT_EXEC) = 0
[pid   163] munmap(0x40019000, 6556)    = 0
[pid   163] getpid()                    = 163
[pid   163] brk(0)                      = 0x23000
[pid   163] brk(0x23030)                = 0x23030
[pid   163] brk(0x24000)                = 0x24000
[pid   163] newuname({sys="Linux", node="pa8200", ...}) = 0
[pid   163] idle()                      = 0
[pid   163] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid   163] write(1, "parisc\n", 7)     = 7
[pid   163] close(1)                    = 0
[pid   163] munmap(0x40019000, 4096)    = 0
[pid   163] exit(0)                     = ?

<... read resumed> "parisc\n", 200) = 7
--- SIGCHLD (Child exited) ---
rt_sigreturn(0

Jurriaan

Signature · 3 lines
Treachery, treachery I fear; treachery of that miserable creature.
	JRR Tolkien - The Lord of the Rings.
GNU/Linux 2.4.9-ac5 SMP/ReiserFS 2x1402 bogomips load av: 0.09 0.09 0.02
#4 lore raw
Quoted 11 lines · On Sat, Sep 01, 2001 at 09:28:35PM +0200, [email protected] wrote:
Quoted 6 lines · Matthew Wilcox
Quoted 1 line · On Sat, Sep 01, 2001 at 08:32:32PM +0200, [email protected] wrote:

should be 'Trace/breakpoint trap'

hmm.. what version of glibc do you have installed? something else you can do is run strace -ff which will attempt to follow fork/clone/vfork.

2.2.3-9. 2.2.4 is out, I know.

strace -ff:

<snip strace output>

one strance thing is that it will run correctly under gdb (the 5.0-4 version off the 0.9.2 iso).

Without gdb, it always prints
Trace/breakpoint trap

and no other output. The C200 then hangs, 90% of the time even the power-switch doesn't work. I'm getting some sort of yoga-training just trying to reach behind it for the power-cord :-)

Since I don't know how to get earlier kernels (it doesn't work in 2.4.9-pa13, it works with 2.4.0 from the 0.9.2 iso) I can't do anything else than whine about it again. Sorry about that.

Jurriaan

Signature · 3 lines
HORROR FILM WISDOM:
3. Do not search the basement, especially when the power has just gone out.
GNU/Linux 2.4.9-ac7 SMP/ReiserFS 2x1402 bogomips load av: 0.34 0.22 0.16
#5 lore raw
In reply to Matthew Wilcox
Quoted 6 lines · Matthew Wilcox
Quoted 1 line · On Sat, Sep 01, 2001 at 08:32:32PM +0200, [email protected] wrote:

should be 'Trace/breakpoint trap'

hmm.. what version of glibc do you have installed? something else you can do is run strace -ff which will attempt to follow fork/clone/vfork.

As answered before, 2.2.3-9.

Since this seems to happen with 2.4.9-pa13 and not with 2.4.0 from the 0.9.2 ISO, perhaps I ought to do some checking when exactly it broke.

Can anybody point me to a quick cvs reference, starting with

cd [somewhere]
tar zxvf linux-latest.tar.gz

and then? I'm only interested in extracting certain kernel-versions (by date?).

Thanks,
Jurriaan

Signature · 4 lines
proof by cumbersome notation:
	Best done with access to at least four alphabets and special
	symbols.
GNU/Linux 2.4.9-ac5 SMP/ReiserFS 2x1402 bogomips load av: 1.34 0.71 0.31