From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31407 invoked by alias); 28 Dec 2013 11:52:53 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 31399 invoked by uid 89); 28 Dec 2013 11:52:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f47.google.com Received: from mail-wg0-f47.google.com (HELO mail-wg0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 28 Dec 2013 11:52:51 +0000 Received: by mail-wg0-f47.google.com with SMTP id n12so8707784wgh.26 for ; Sat, 28 Dec 2013 03:52:48 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.48.33 with SMTP id i1mr813133wjn.93.1388231568200; Sat, 28 Dec 2013 03:52:48 -0800 (PST) Received: by 10.194.135.166 with HTTP; Sat, 28 Dec 2013 03:52:48 -0800 (PST) Date: Sat, 28 Dec 2013 11:52:00 -0000 Message-ID: Subject: report a segment fault bug of systemtap From: maliubiao To: systemtap@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-q4/txt/msg00524.txt.bz2 SCRIPT : global c = 0; probe process("/data/project/c/nginx-build/sbin/nginx").function("ngx_worker_process_cycle") { if (c < 1) { printf("%s\n", user_string($cycle->hostname->data)) c += 1 } } probe process("/data/project/c/nginx-build/sbin/nginx").function("ngx_epoll_process_events*") { /* iter over array ngx_modules */ for (i=0; i < 512; i++) { index = @var("ngx_modules@ngx_modules.c")[i]->index if (index != i) { break } ngx_modules = @var("ngx_modules@ngx_modules.c")[i] ctx = @cast(ngx_modules, "ngx_module_s")->ctx name = @cast(ctx, "ngx_core_module_t")->name->data if (name) { printf("index: %s\n", i, user_string(name)); } } } STACK TRACE: Pass 1: parsed user script and 100 library script(s) using 89752virt/29968res/2480shr/28316data kb, in 150usr/10sys/26180real ms. Program received signal SIGSEGV, Segmentation fault. 0x00007ffff777e946 in __strcmp_sse42 () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff777e946 in __strcmp_sse42 () from /lib64/libc.so.6 #1 0x00000000004d57ad in dwarf_atvar_query::atvar_query_cu (cudie=0x24028a0, data=0x7fffffffba80) at tapsets.cxx:4192 #2 0x000000000054a862 in dwflpp::iterate_over_cus (this=, callback=0x4d5760 , data=0x7fffffffba80, want_types=false) at dwflpp.cxx:466 #3 0x00000000004b48cd in query_module (mod=, name=, addr=4194304, arg=0x7fffffffba80) at tapsets.cxx:2132 #4 0x00007ffff71edfa2 in dwfl_getmodules (dwfl=0x228cd60, callback=0x4b4770 , arg=0x7fffffffba80, offset=0) at ../.././elfutils-0.157/libdwfl/dwfl_getmodules.c:82 #5 0x00000000004ca254 in dwarf_atvar_expanding_visitor::visit_atvar_op ( this=0x2284b40, e=0x23c4030) at tapsets.cxx:4296 #6 0x0000000000453fb3 in update_visitor::require (this=0x2284b40, src=, clearok=false) at staptree.h:970 #7 0x00000000004c8e2b in replace (clearok=false, src=@0x23c3d88: 0x23c4030, this=0x2284b40) at staptree.h:992 #8 var_expanding_visitor::rewrite_lvalue (this=this@entry=0x2284b40, tok=0x21eeaf0, eop="=", lvalue=@0x23c3d78: 0x23c3da0, rvalue=@0x23c3d88: 0x23c4030) at tapsets.cxx:2354 #9 0x00000000004c9369 in var_expanding_visitor::visit_assignment ( this=0x2284b40, e=0x23c3d60) at tapsets.cxx:2400 ---Type to continue, or q to quit--- #10 0x000000000044e1df in assignment::visit (this=0x23c3d60, u=0x2284b40) at staptree.cxx:1469 #11 0x0000000000453fb3 in update_visitor::require (this=0x2284b40, src=, clearok=false) at staptree.h:970 #12 0x000000000044c587 in replace (clearok=false, src=, this=0x2284b40) at staptree.h:992 #13 update_visitor::visit_expr_statement (this=0x2284b40, s=0x23c3d40) at staptree.cxx:2599 #14 0x000000000044a5bf in require (clearok=false, src=, this=0x2284b40) at staptree.h:970 #15 replace (clearok=false, src=@0x23c3d00: 0x23c3d40, this=0x2284b40) at staptree.h:992 #16 update_visitor::visit_block (this=0x2284b40, s=0x23c3cd0) at staptree.cxx:2571 #17 0x0000000000453af3 in update_visitor::require (this=0x2284b40, src=, clearok=false) at staptree.h:970 #18 0x000000000044cd8d in replace (clearok=false, src=@0x23c37b8: 0x23c3cd0, this=0x2284b40) at staptree.h:992 #19 update_visitor::visit_for_loop (this=0x2284b40, s=0x23c3790) at staptree.cxx:2618 #20 0x000000000044a5bf in require (clearok=false, src=, this=0x2284b40) at staptree.h:970 #21 replace (clearok=false, src=@0x23c3ab0: 0x23c3790, ---Type to continue, or q to quit--- this=0x2284b40) at staptree.h:992 #22 update_visitor::visit_block (this=0x2284b40, s=0x23c3be0) at staptree.cxx:2571 #23 0x000000000045fba3 in require (clearok=false, src=, this=0x2284b40) at staptree.h:970 #24 replace (clearok=false, src=@0x23c3870: 0x23c3be0, this=0x2284b40) at staptree.h:992 #25 semantic_pass_symbols (s=...) at elaborate.cxx:1643 #26 0x000000000046c71c in semantic_pass (s=...) at elaborate.cxx:1985 #27 0x0000000000413c10 in passes_0_4 (s=...) at main.cxx:744 #28 0x000000000040c97b in main (argc=, argv=) at main.cxx:1101 ENV: stap --version Systemtap translator/driver (version 2.4/0.157, commit release-2.3-131-g1acfc03 + changes) uname -a Linux linux-6pwq.site 3.11.1-1.16-desktop+ #2 SMP PREEMPT Sun Oct 6 11:07:07 CST 2013 x86_64 x86_64 x86_64 GNU/Linux any idea ?