[LLVMbugs] [Bug 3565] New: MallocBench/gs crashes

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Feb 12 13:50:55 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3565

           Summary: MallocBench/gs crashes
           Product: Test Suite
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Nightly Tester
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: nicholas at mxc.ca, llvmbugs at cs.uiuc.edu


Something is wrong with this test:

llvm-test/MultiSource/Benchmarks/MallocBench/gs$ cat Output/gs.out-nat
Reading ghost.ps... exit 139
RunSafely.sh detected a failure with these command-line arguments:  500 0
/dev/null Output/gs.out-nat Output/gs.native -DNODISPLAY
/usr/local/google/home/nlewycky/llvm/projects/llvm-test/MultiSource/Benchmarks/MallocBench/gs/INPUT/large.ps

Are those command-line arguments right? -DNODISPLAY? Well, at least
INPUT/large.ps does exist. But it doesn't seem to help much:

$ Output/gs.native 
Reading ghost.ps... Segmentation fault
$ Output/gs.native INPUT/large.ps 
Reading ghost.ps... Segmentation fault
$ Output/gs.native -DNODISPLAY INPUT/large.ps 
Reading ghost.ps... Segmentation fault
$ ls ./ghost.ps
ghost.ps

This is on x86_64 Linux with gcc 4.2.4. The LLVM-built code fails the exact
same way.

Rebuilding with debug shows:
Program received signal SIGSEGV, Segmentation fault.
0x000000000041bc47 in zastore (op=0x634d40) at zarray.c:72
72              op[-size] = *op;
(gdb) bt
#0  0x000000000041bc47 in zastore (op=0x634d40) at zarray.c:72
#1  0x0000000000418343 in interp (pref=<value optimized out>) at interp.c:345
#2  0x0000000000418870 in interpret (pref=<value optimized out>, user_errors=1)
    at interp.c:140
#3  0x0000000000403b51 in run_file (file_name=0x42756d "ghost.ps", 
    user_errors=1) at gs.c:272
#4  0x0000000000403c9e in init2 () at gs.c:244
#5  0x0000000000403f5b in main (argc=1, argv=0x7fff4b16c618) at gs.c:88
(gdb) p size
$1 = 4294967293
(gdb) p op
$2 = (ref *) 0x634d40


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list