Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN2vb-0002Ae-4L for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Jul 2016 19:01:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bN2va-00006e-O1 for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Jul 2016 19:01:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bN2va-00006X-5h for pgsql-bugs@postgresql.org; Tue, 12 Jul 2016 19:01:06 +0000 Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bN2vX-0007gx-KE for pgsql-bugs@postgresql.org; Tue, 12 Jul 2016 19:01:05 +0000 Received: by mail-vk0-x233.google.com with SMTP id v6so35190087vkb.2 for ; Tue, 12 Jul 2016 12:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heroku.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=065oj7msf9YIlYYHHSZ9lGlm5IuYwr56Z37+C/KYnNo=; b=2LzEKV37rmOwsp4Vo/kcFpNDTMyOtJr3yd03HW7HRVE8M5NPZpbQkwcaz7GYDfDrDF hrOFIBADfk2rjXNxRzUTv3OSoRWRDiLloM2YL+DuS9dsQfobl2EDEa1jZthKZ/jiMfx3 LRX8QuR4Fz7R8CMn+3yyQijGCQQzsOtFCLI/T7w2ET1jgEfg9tcbH+0B5Tw90G+NhtKa 6Or+U8JBERNnouvJ0GOE0giV/+BxbfD7XYhqUeSN01AeLn2Ue3dyVhXdZq//2WoCAeQl hKVFT0u2KMucKVxpubRY/HPctHqdoDSOnB0tKuD9SycON744YjHHgb2M7Na7Cn0R1S3E W0lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=065oj7msf9YIlYYHHSZ9lGlm5IuYwr56Z37+C/KYnNo=; b=C6UFljqwYG9k66d9gJ4uwpNzM56zPxzMLE/wBi6jDiliv6roZT9a2EgaksmDObCLLK 8L8kD0/fMR59OmHCLPjBZKYzNrqDPLHjsl8DyMdUYXlPFhN1QMNa/ttyppHBBRAjs/dr bFkyMqbLg9Q+qe0n696/LI0u4krB1K5iY5tX0gUtg2axJOEPdWWwSXJUq53Odm3A7TfR YdFeq4F3E7DRTTt0fP32JSNLqh/fnFN/0dafLO8BiXIGUSR6Q74ESL8Wr1t1d4qUNlmu MGJQmwo+uyn4DxcTQCVhV0KYH74NGVhpuWLXdotHjZxmDjEOh4KH+TikT0Z9M6+BRUV/ KcsA== X-Gm-Message-State: ALyK8tIWSkfjVeT7szD6PYhs7BVmHVndD7oFMyPOkswSkaDu5LLZWNJFIAAlgk79kbYXh0Ccb+qa4wAvTUVrBb1s X-Received: by 10.31.79.195 with SMTP id d186mr1743476vkb.10.1468350062724; Tue, 12 Jul 2016 12:01:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.151.80 with HTTP; Tue, 12 Jul 2016 12:01:02 -0700 (PDT) In-Reply-To: References: <20160712175855.1414.10498@wrigleys.postgresql.org> From: Peter Geoghegan Date: Tue, 12 Jul 2016 12:01:02 -0700 Message-ID: Subject: Re: BUG #14245: Segfault on weird to_tsquery To: david@gravitext.com, Teodor Sigaev Cc: pgsql-bugs Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Tue, Jul 12, 2016 at 11:40 AM, Peter Geoghegan wrote: > Interesting discovery. How did you fuzz test? This appears to be a NULL pointer dereference. Here is a backtrace with proper debug info: #0 0x0000000000e45ada in normalize_phrase_tree (node=0x0) at tsquery_cleanup.c:397 #1 0x0000000000e468f3 in normalize_phrase_tree (node=) at tsquery_cleanup.c:416 #2 0x0000000000e4687f in normalize_phrase_tree (node=0x0) at tsquery_cleanup.c:543 #3 0x0000000000e44ce9 in cleanup_fakeval_and_phrase (in=) at tsquery_cleanup.c:603 #4 0x0000000000e3f528 in parse_tsquery (buf=, pushval=0x6250002e9490, opaque=, isplain=) at tsquery.c:695 #5 0x0000000000c8abcf in to_tsquery_byid (fcinfo=) at to_tsany.c:372 #6 0x0000000000ee0cc6 in DirectFunctionCall2Coll (func=0xc8aac0 , collation=1342381084, arg1=12126, arg2=108095739809240) at fmgr.c:1049 #7 0x000000000093d2a9 in ExecMakeFunctionResultNoSets (fcache=, econtext=0x6250002ee368, isNull=, isDone=) at execQual.c:2041 #8 0x000000000093a89c in ExecTargetList (targetlist=0x6250002ef0e0, tupdesc=, econtext=, values=0x6250002eefb8, isnull=0x6250002eefd8 "\276~\276\276\276"..., itemIsDone=0x6250002ef118, isDone=) at execQual.c:5376 #9 0x000000000093a5ab in ExecProject (projInfo=, isDone=) at execQual.c:5600 ***SNIP *** -- Peter Geoghegan -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs