From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 13 22:38:05 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A3624A42 for ; Fri, 13 Feb 2015 22:38:05 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8843A66B for ; Fri, 13 Feb 2015 22:38:05 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1DMc5BR092646 for ; Fri, 13 Feb 2015 22:38:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 197604] games/cube: crashes when built with clang 3.6 + -O1 or higher Date: Fri, 13 Feb 2015 22:38:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 22:38:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197604 Bug ID: 197604 Summary: games/cube: crashes when built with clang 3.6 + -O1 or higher Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: amdmi3@FreeBSD.org, dim@FreeBSD.org /projects/clang360-import@278313 during build shows physics.cpp:50:14: warning: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion] if(!&mmi || !mmi.h) continue; ~ ^~~ which leads to (lldb) target create "/usr/local/libexec/cube_client" --core "/var/tmp/cube_client.1001.core" Core file '/var/tmp/cube_client.1001.core' (x86_64) was loaded. Process 0 stopped * thread #1: tid = 0, 0x0000000000411297 cube_client`mmcollide(d=0x0000000807c88300, hi=0x00007fffffffb664, lo=0x00007fffffffb660) + 87 at physics.cpp:50, name = 'cube_client', stop reason = signal SIGSEGV frame #0: 0x0000000000411297 cube_client`mmcollide(d=0x0000000807c88300, hi=0x00007fffffffb664, lo=0x00007fffffffb660) + 87 at physics.cpp:50 47 entity &e = ents[i]; 48 if(e.type!=MAPMODEL) continue; 49 mapmodelinfo &mmi = getmminfo(e.attr2); -> 50 if(!&mmi || !mmi.h) continue; 51 const float r = mmi.rad+d->radius; 52 if(fabs(e.x-d->o.x)o.y) (lldb) bt * thread #1: tid = 0, 0x0000000000411297 cube_client`mmcollide(d=0x0000000807c88300, hi=0x00007fffffffb664, lo=0x00007fffffffb660) + 87 at physics.cpp:50, name = 'cube_client', stop reason = signal SIGSEGV * frame #0: 0x0000000000411297 cube_client`mmcollide(d=0x0000000807c88300, hi=0x00007fffffffb664, lo=0x00007fffffffb660) + 87 at physics.cpp:50 frame #1: 0x0000000000411ae4 cube_client`collide(d=0x0000000807c88300, spawn=true, drop=0, rise=0) + 1892 at physics.cpp:129 frame #2: 0x00000000004075c7 cube_client`entinmap(d=0x0000000807c88300) + 215 at clientgame.cpp:265 frame #3: 0x0000000000406fc1 cube_client`spawnplayer(d=0x0000000807c88300) + 305 at clientgame.cpp:294 frame #4: 0x0000000000407e3d cube_client`startmap(name=0x00007fffffffba40) + 93 at clientgame.cpp:440 frame #5: 0x0000000000422244 cube_client`load_world(mname=0x00007fffffffba40) + 2084 at worldio.cpp:316 frame #6: 0x0000000000408460 cube_client`localservertoclient(buf=, len=) + 576 at clients2c.cpp:130 frame #7: 0x000000000041abcf cube_client`multicast(packet=0x0000000807e4beb0, sender=-1) + 47 at server.cpp:293 frame #8: 0x000000000041aa91 cube_client`process(packet=0x0000000807e4beb0, sender=) + 1217 at server.cpp:260 frame #9: 0x000000000041b0b0 cube_client`localclienttoserver(packet=0x0000000807e4beb0) + 16 at server.cpp:299 frame #10: 0x0000000000405911 cube_client`c2sinfo(d=) + 1009 at client.cpp:273 frame #11: 0x00000000004074e3 cube_client`updateworld(millis=135) + 323 at clientgame.cpp:251 frame #12: 0x000000000040f1e0 cube_client`main(argc=, argv=) + 1456 at main.cpp:188 frame #13: 0x0000000000404aaf cube_client`_start(ap=, cleanup=) + 367 at crt1.c:78 Can you reproduce? -- You are receiving this mail because: You are the assignee for the bug.