From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) by dpdk.org (Postfix) with ESMTP id EE6F58E5E for ; Fri, 15 Jan 2016 02:20:03 +0100 (CET) Received: by mail-ig0-f181.google.com with SMTP id z14so3369125igp.0 for ; Thu, 14 Jan 2016 17:20:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mGKsUoo4S72J8iljWXvVcGijW6O7E8J8ND6AWacarpY=; b=c2C23/ljoI5Izf0tzUu2fuWZ4W/ypaNJXls5ciuVTsA8gzEC5466lOMUR1rLYE9yhT OIZIeF4UsVUxPID42kOA97CZBc3WwQBWeQwqnvyRVxb2MokkpTecqabyxRCWD++eylCw 5tGWZn9utWHh2vgwap9fmRVFacIBDO2IrjSNkiPjY15IrM5IeKIgu+BmEpHJgJp0IYjs NtwghqENVODZAo4x1VhrIQgi/+E/+c1FUeml+rp/JFpeXLUv+9A28c1FQlx8wCgCS5cO ZnKjfRq7NoRyaEFZqie/h4dZivZgyvTcyQSwRqtQQROoojfFnKI+9I8TyW14FRLCM6PR 0nzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=mGKsUoo4S72J8iljWXvVcGijW6O7E8J8ND6AWacarpY=; b=id74bvLsT+jPXAF7nI7um9k4SrcHhW7efHhdP/ol2pbS5I4qfl6fwvQiy5jkI2FADd SqArcZ/zIlvwMphdzuNNZsT9wUfSl323KC+gQAIK5Nypbnn7lc4pIdER/BzthCNJgbfh RMulavimd1pXGkr4bK3q27Z3RQFSeNtTParupVkLG8BGrmxxO2YLOCS4epGQfLhA2Ad2 g+spjNcIWb8xmXf3KfOhYVbbpXuoaPrA5mDHYT2xLVlSiOJ/ewyJoIcLx9X2TTRIKWJU 5nIXfwMtdnUkXPJVVP5onj0nBLiw0nzmMMgthQ3KTCyeGzJlDfS5oI6ij43QXUmo5BgO nubA== X-Gm-Message-State: AG10YOSdsN7fy1qgpClzGDh61b4h7ZrTaDEX59SGnvbdPbHMnt+cHX5K41F262KXi5sE7tZgRhMUP63+Qcq9bA== MIME-Version: 1.0 X-Received: by 10.50.142.7 with SMTP id rs7mr480475igb.90.1452820803346; Thu, 14 Jan 2016 17:20:03 -0800 (PST) Received: by 10.79.109.18 with HTTP; Thu, 14 Jan 2016 17:20:03 -0800 (PST) Date: Fri, 15 Jan 2016 04:20:03 +0300 Message-ID: From: Dmitriy Yakovlev To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Broken hash table functions with CFLAGS -O3 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2016 01:20:04 -0000 Hello. I trying to use hash tables for adding struct ip:port as key. When trying to add duplicated key it's successfuly added second time, not always, but sometimes. Please see this youtube video, where I'm demonstrating this bug: https://www.youtube.com/watch?v=vsXVxISpmnU Code on github: https://github.com/BombermaG/bug-app When using CFLAGS -O2 this problem cannot be repeated. It's problem with -O3 flag and I must use O2 or how can I solve it? Thank you for helping. (Sorry if this message double posting). Spec info. Tell me, if you need more info. dpdk 2.2.0 Linux 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz