Menu

#1 wsmake problems on NetBSD/alpha

open
nobody
None
5
2006-12-28
2006-12-28
Anonymous
No

When running wsmake on a very simple file on NetBSD/alpha, I receive an abort trap from some division apparently. The backtrace is somewhat fnordic.

The makefile I used looks as follows:

Website {
PageGroup {
database_filename "test.db"
source_dir "html"
output_dir "docs"

Page {
web_page "index.html"
}
}
}

So it's really, really basic. Now my back trace looks about like this:

(gdb) run -f test.ws
Starting program: /usr/pkg/bin/wsmake -f test.ws
pid 14909 (wsmake): unaligned access: va=0x1601d1bc2 pc=0x1601e8688 ra=0x1601e8734 sp=0x1ffffd4b0 op=ldl
pid 14909 (wsmake): unaligned access: va=0x1601d1bc2 pc=0x1601e8818 ra=0x1601e88e0 sp=0x1ffffd4b0 op=ldl
pid 14909 (wsmake): unaligned access: va=0x160322472 pc=0x1601e8688 ra=0x1601e8734 sp=0x1ffffd960 op=ldl
pid 14909 (wsmake): unaligned access: va=0x160322472 pc=0x1601e8818 ra=0x1601e88e0 sp=0x1ffffd960 op=ldl

Program received signal SIGABRT, Aborted.
0x000000016022d880 in kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0x000000016022d880 in kill () from /usr/lib/libc.so.12
#1 0x00000001602ea8a4 in abort () from /usr/lib/libc.so.12
#2 0x0000000160151988 in __cxxabiv1::__terminate(void (*)()) ()
from /usr/lib/libstdc++.so.5
(gdb)

Somehow there appears to be a lot of stuff that's simply missing from the back trace, because all 3 functions are from libraries. Thus, I tried to ktrace the whole thing and ended up with this trace:

26056 ktrace emul(netbsd)
26056 ktrace execve("/home/tonnerre/bin/wsmake", 0x1ffffebe8, 0x1ffffec08) Err#2 ENOENT
26056 ktrace execve("/bin/wsmake", 0x1ffffebe8, 0x1ffffec08) Err#2 ENOENT
26056 ktrace execve("/sbin/wsmake", 0x1ffffebe8, 0x1ffffec08) Err#2 ENOENT
26056 ktrace execve("/usr/bin/wsmake", 0x1ffffebe8, 0x1ffffec08) Err#2 ENOENT
26056 ktrace execve("/usr/sbin/wsmake", 0x1ffffebe8, 0x1ffffec08) Err#2 ENOENT
26056 ktrace execve("/usr/X11R6/bin/wsmake", 0x1ffffebe8, 0x1ffffec08) Err#2 ENOENT
26056 wsmake emul(netbsd)
26056 wsmake execve("/usr/pkg/bin/wsmake", 0x1ffffebe8, 0x1ffffec08) JUSTRETURN
26056 wsmake mmap(0, 0x8000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) = 0x160074000
26056 wsmake open("/etc/ld.so.conf", 0, 0x16006db5c) Err#2 ENOENT
26056 wsmake mmap(0, 0xa000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) = 0x16007c000
26056 wsmake open("/usr/pkg/lib/libstdc++.so.5", 0, 0) Err#2 ENOENT
26056 wsmake open("/usr/lib/libstdc++.so.5", 0, 0) = 3
26056 wsmake __fstat13(0x3, 0x1ffffe790) = 0
26056 wsmake mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16005e000
26056 wsmake munmap(0x16005e000, 0x2000) = 0
26056 wsmake mmap(0, 0x118000, 0x5, 0x10000002, 0x3, 0, 0) = 0x160090000
26056 wsmake mmap(0x160178000, 0x1e000, 0x7, 0x12, 0x3, 0, 0xd8000) = 0x160178000
26056 wsmake mmap(0x160196000, 0x12000, 0x7, 0x1012, 0xffffffffffffffff, 0, 0) = 0x160196000
26056 wsmake mprotect(0x16016a000, 0xe000, 0) = 0
26056 wsmake close(0x3) = 0
26056 wsmake open("/usr/pkg/lib/libm.so.0", 0, 0) Err#2 ENOENT
26056 wsmake open("/usr/lib/libm.so.0", 0, 0) = 3
26056 wsmake __fstat13(0x3, 0x1ffffe790) = 0
26056 wsmake mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16005e000
26056 wsmake munmap(0x16005e000, 0x2000) = 0
26056 wsmake mmap(0, 0x34000, 0x5, 0x10000002, 0x3, 0, 0) = 0x1601b0000
26056 wsmake mmap(0x1601e0000, 0x4000, 0x7, 0x12, 0x3, 0, 0x20000) = 0x1601e0000
26056 wsmake mmap(0x1601e4000, 0, 0x7, 0x1012, 0xffffffffffffffff, 0, 0) = 0x1601e4000
26056 wsmake mprotect(0x1601d2000, 0xe000, 0) = 0
26056 wsmake close(0x3) = 0
26056 wsmake open("/usr/pkg/lib/libgcc_s.so.1", 0, 0) Err#2 ENOENT
26056 wsmake open("/usr/lib/libgcc_s.so.1", 0, 0) = 3
26056 wsmake __fstat13(0x3, 0x1ffffe790) = 0
26056 wsmake mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16005e000
26056 wsmake munmap(0x16005e000, 0x2000) = 0
26056 wsmake mmap(0, 0x1c000, 0x5, 0x10000002, 0x3, 0, 0) = 0x1601f0000
26056 wsmake mmap(0x16020a000, 0x2000, 0x7, 0x12, 0x3, 0, 0xa000) = 0x16020a000
26056 wsmake mmap(0x16020c000, 0, 0x7, 0x1012, 0xffffffffffffffff, 0, 0) = 0x16020c000
26056 wsmake mprotect(0x1601fa000, 0x10000, 0) = 0
26056 wsmake close(0x3) = 0
26056 wsmake open("/usr/pkg/lib/libc.so.12", 0, 0) Err#2 ENOENT
26056 wsmake open("/usr/lib/libc.so.12", 0, 0) = 3
26056 wsmake __fstat13(0x3, 0x1ffffe790) = 0
26056 wsmake mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16005e000
26056 wsmake munmap(0x16005e000, 0x2000) = 0
26056 wsmake mmap(0, 0x138000, 0x5, 0x10000002, 0x3, 0, 0) = 0x160210000
26056 wsmake mmap(0x16031a000, 0x1e000, 0x7, 0x12, 0x3, 0, 0xfa000) = 0x16031a000
26056 wsmake mmap(0x160338000, 0x10000, 0x7, 0x1012, 0xffffffffffffffff, 0, 0) = 0x160338000
26056 wsmake mprotect(0x16030c000, 0xe000, 0) = 0
26056 wsmake close(0x3) = 0
26056 wsmake mprotect(0x120000000, 0x4c000, 0x7) = 0
26056 wsmake mprotect(0x120000000, 0x4c000, 0x5) = 0
26056 wsmake __sysctl(0x1ffffe940, 0x2, 0x1ffffe950, 0x1ffffe978, 0, 0) = 0
26056 wsmake readlink("/etc/malloc.conf", 0x1ffffe9c0, 0x3f) Err#2 ENOENT
26056 wsmake mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) = 0x16005e000
26056 wsmake break(0x120064300) = 0
26056 wsmake break(0x120066300) = 0
26056 wsmake break(0x120068000) = 0
26056 wsmake break(0x12006a000) = 0
26056 wsmake break(0x12006c000) = 0
26056 wsmake break(0x12006e000) = 0
26056 wsmake open("test.ws", 0, 0x1b6) = 3
26056 wsmake __fstat13(0x3, 0x1ffffde60) = 0
26056 wsmake break(0x120072000) = 0
26056 wsmake read(0x3, 0x12006e000, 0x4000) = 137
"Website {\n\tPageGroup {\n\t\tdatabase_filename "test.db"\n"
26056 wsmake read(0x3, 0x12006e000, 0x4000) = 0
""
26056 wsmake break(0x120074000) = 0
26056 wsmake break(0x120076000) = 0
26056 wsmake __getcwd(0x120074200, 0x200) = 14
26056 wsmake break(0x120078000) = 0
26056 wsmake break(0x12007a000) = 0
26056 wsmake break(0x12007e000) = 0
26056 wsmake break(0x120082000) = 0
26056 wsmake break(0x120088000) = 0
26056 wsmake break(0x12008e000) = 0
26056 wsmake __sigprocmask14(0x3, 0x1ffffe4c0, 0) = 0
26056 wsmake getpid() = 26056, 17187
26056 wsmake kill(0x65c8, 0x6) = 0
26056 wsmake SIGABRT SIG_DFL

Discussion


Log in to post a comment.

MongoDB Logo MongoDB