[lldb-dev] [Bug 17944] New: test_step_out_of_malloc_into_function_b_with_dwarf (TestThreadAPI.ThreadAPITestCase) fails with FreeBSD malloc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 15 06:54:13 PST 2013


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

            Bug ID: 17944
           Summary: test_step_out_of_malloc_into_function_b_with_dwarf
                    (TestThreadAPI.ThreadAPITestCase) fails with FreeBSD
                    malloc
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: emaste at freebsd.org
    Classification: Unclassified

Reproducing manually:

(lldb) b malloc
Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) run
Process 64844 launched: '../tools/lldb/test/python_api/thread/a.out' (x86_64)
1 location added to breakpoint 1
Process 64844 stopped
* thread #1: tid = 100740, 0x0000000800dda809 libc.so.7`malloc [inlined]
malloc_init at malloc.c:5397, stop reason = breakpoint 1.1
    frame #0: 0x0000000800dda809 libc.so.7`malloc [inlined] malloc_init at
malloc.c:5397
   5394 malloc_init(void)
   5395 {
   5396
-> 5397         if (malloc_initialized == false)
   5398                 return (malloc_init_hard());
   5399
   5400         return (false);
(lldb) c
Process 64844 resuming
Process 64844 stopped
* thread #1: tid = 100740, 0x0000000800dda809 libc.so.7`malloc [inlined]
malloc_init at malloc.c:5397, stop reason = breakpoint 1.1
    frame #0: 0x0000000800dda809 libc.so.7`malloc [inlined] malloc_init at
malloc.c:5397
   5394 malloc_init(void)
   5395 {
   5396
-> 5397         if (malloc_initialized == false)
   5398                 return (malloc_init_hard());
   5399
   5400         return (false);
(lldb) c
Process 64844 resuming
ptr=0x801807400
a(1) returns 4
Process 64844 stopped
* thread #1: tid = 100740, 0x0000000800dda809 libc.so.7`malloc [inlined]
malloc_init at malloc.c:5397, stop reason = breakpoint 1.1
    frame #0: 0x0000000800dda809 libc.so.7`malloc [inlined] malloc_init at
malloc.c:5397
   5394 malloc_init(void)
   5395 {
   5396
-> 5397         if (malloc_initialized == false)
   5398                 return (malloc_init_hard());
   5399
   5400         return (false);
(lldb) c
Process 64844 resuming
ptr=0x801807800
b(2) returns 5
a(3) returns 6
Process 64844 exited with status = 0 (0x00000000) 

NB: this test has an @expectedFailureLinux # llvm.org/pr14416 tag
That PR is for watchpoints failing on i386 Linux, so perhaps a typo.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131115/0bcc4f32/attachment.html>


More information about the lldb-dev mailing list