This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [WIP] uprobe tests


Srikar Dronamraju <srikar@linux.vnet.ibm.com> writes:

> Attached is the current set of tests for uprobes.  A few more test
> scenarios have been identified and will be added to this testsuite.

Thanks, it's a good start.  I'll add some test ideas to the wiki
version.

When I run this test suite on i686 2.6.21-rc6-mm1 + may25-uprobes
kernel configured with a bunch of debugging options, we get a bunch of
kernel errors.  A sampling:

slab error in verify_redzone_free(): cache `size-32': memory outside object was 
overwritten
 [<c04787f2>] cache_free_debugcheck+0xb2/0x1a6
 [<c0478b5e>] kfree+0x90/0xe0
 [<f098208b>] u_dbfs_cleanup+0x4b/0x4d [blink2]
 [<f09820d6>] cleanup_module+0x49/0x4b [blink2]

slab error in cache_alloc_debugcheck_after(): cache `size-32': double free, or m
emory outside object was overwritten
 [<c0478674>] cache_alloc_debugcheck_after+0x89/0x155
 [<c0479b44>] kmem_cache_zalloc+0xb5/0xe7
 [<c045c77e>] register_uprobe+0x2ea/0x6cc
 [<f09822f3>] init_module+0x6b/0xa1 [blink]

kfree_debugcheck: out of range ptr 170fc2a5h.
------------[ cut here ]------------
kernel BUG at /home/fche/Private/DEVEL/DEVEL-linux/linux-2.6/mm/slab.c:2851!
Process rmmod (pid: 2225, ti=c38d8000 task=c34ff0a0 task.ti=c38d8000)
Stack: c0683915 170fc2a5 c38d9f20 c0478af2 00000000 bfd09ed0 00000206 f0983700 
       00000000 bfd09ed0 c38d9f30 f0982041 00000000 bfd09ed0 c38d9f50 f098209f 
       f0982449 000008a6 080485a7 c05eebc3 fffffff0 bfd09ed0 c38d9fb0 c0448034 
Call Trace:
 [<c0478af2>] kfree+0x24/0xe0
 [<f0982041>] u_dbfs_cleanup+0x41/0x4d [blink]
 [<f098209f>] cleanup_module+0x52/0x54 [blink]
 [<c0448034>] sys_delete_module+0x180/0x1a8
 [<c0404eb4>] syscall_call+0x7/0xb
INFO: lockdep is turned off.
Code: 5d c3 55 89 c2 8d 80 00 00 00 40 89 e5 c1 e8 0c 83 ec 08 3b 05 84 d8 9f c0
 72 14 89 54 24 04 c7 04 24 15 39 68 c0 e8 dc be fa ff <0f> 0b eb fe c9 c3 55 89
 e5 57 31 ff 56 89 c6 53 89 d3 83 ec 1c 

BUG: sleeping function called from invalid context at /home/fche/Private/DEVEL/D
EVEL-linux/linux-2.6/kernel/rwsem.c:20
in_atomic():0, irqs_disabled():1
INFO: lockdep is turned off.
irq event stamp: 0
hardirqs last  enabled at (0): [<00000000>] 0x0
hardirqs last disabled at (0): [<c0421b2f>] copy_process+0x2f1/0x12c3
softirqs last  enabled at (0): [<c0421b2f>] copy_process+0x2f1/0x12c3
softirqs last disabled at (0): [<00000000>] 0x0
 [<c0405ee1>] dump_trace+0x63/0x1eb
 [<c0406083>] show_trace_log_lvl+0x1a/0x30

The dejagnu results are 14 passes and 5 failures:

FAIL: test for 2 probes one probepoint
FAIL: test for suicide attempt
FAIL: 10 thread test
FAIL: 10k iterations
FAIL: suicide test


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]