Re: [LV] Status of the toolchain build scripts?
Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
I'm curious about it... Maybe give it a run with libefence LD_PRELOAD'ed?
Sure thing. That more or less sorted things out - the exact code writing beyond the allocated area is clear (line 1083 in gas/app.c), but how it got there I don't quite follow. I have included the backtrace below, and as far as I can see it would require that the character 'e' was considered a separator between parallel insns and screwing up the value of to just before that. I'll take a further look at it and see what I can come up with. Best regards Mikkel --- backtrace (gdb) bt full #0 0x08049999 in do_scrub_chars (get=0x805b460 <scrub_from_string>, tostart=0xb7d55f54 "\t.linefile 663\"arch/vax/kernel/signal.c\"1\n mtpr $31, $18\n\t.linefile 0\"\"2\n\t.linefile 78\"include/asm/thread_info.h\"1\n mfpr $0,%r0\n\t.linefile 0\"\"2\n\t.linefile 78\"include/asm/thr", tolen=172) at /home/mikkel/linux-vax/build/build-20070617-191810-UTC-vax-linux-uclibc/s rc/binutils/gas/app.c:1083 to = <value optimized out> toend = 0xb7d56000 "" from = 0x0 fromend = 0x80d6e2c "revious\n\t.linefile 0\"\"2\nrevious\n# 0 \"\" 2\nh /vax/kernel/signal.c\"1\n 1:movb %r5,98(%r10)\n2:\n.section fixup,\"ax\"\n3:movl $-14,%r5\n jmp 2b\n.previous \n.section __ex_table,\"a\"\n .align 2\n .long 1b,3b\n.previou"... fromlen = <value optimized out> ch = 101 ch2 = <value optimized out> quotechar = 34 '"' #1 0x0805ee3b in read_a_source_file (name=0xbfe768a1 "/home/mikkel/signal4.asm" ) at /home/mikkel/linux-vax/build/build-20070617-191810-UTC-vax-linux-uclibc/s rc/binutils/gas/read.c:1071 space = 172 size = <value optimized out> c = <value optimized out> s = 0xb7fbeb37 "# 663 \"arch/vax/kernel/signal.c\" 1\n\tmtpr $31,$18\n# 0 \"\" 2\n# 78 \"include/asm/thread_info.h\" 1\n\tmfpr $0,%r0\n# 0 \"\" 2\n# 78 \"include/asm/thread_info.h\" 1\n\tmfpr $0,%r0\n# 0 \"\" 2\n#NO_A PP\n\tbicl2 $8191,%r0\n\tmo"... temp = <value optimized out> pop = <value optimized out> last_eol = 0x0 #2 0x0804aaf6 in perform_an_assembly_pass (argc=<value optimized out>, argv=0xb 7ee6fec) at /home/mikkel/linux-vax/build/build-20070617-191810-UTC-vax-linux-uclibc/s rc/binutils/gas/as.c:1026 saw_a_file = 1 applicable = <value optimized out> #3 0x0804b868 in main (argc=Cannot access memory at address 0x65 ) at /home/mikkel/linux-vax/build/build-20070617-191810-UTC-vax-linux-uclibc/src /binutils/gas/as.c:1141 keep_it = <value optimized out> __PRETTY_FUNCTION__ = "main" _______________________________________________ Linux-Vax mailing list Linux-Vax@pergamentum.com http://www.pergamentum.com/mailman/listinfo/linux-vax
Teilnehmer (5)
-
Jan-Benedict Glaw
-
Klaus Kaempf
-
Maciej W. Rozycki
-
Mikkel Lauritsen
-
Peter Lund