Openmp Bus Error
Contents |
to content Advanced search Board index Change
Bus Error Core Dumped C
font size FAQ Register Login Information The requested topic does not exist. Board index The team • Delete all board cookies • All times are UTC - 8 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
HPC Platform Products PGI Products for Apple OS X PGI Products for Windows Free HPC Products Free PGI for OS X HPC Product Feature Comparison Services PGI Subscription Service PGI Premier Service Support Support Options Current Release
How To Solve Bus Error In Linux
Information Current Version Information Licensing Generate Permanent Keys Generate Trial License Keys Trial bus error (core dumped) centos License FAQ Transfer License Locating Your PIN Licensing Troubleshooting FAQ Compatibility and Installation Licensing Compilation Linking Execution Portability Inter-language Support Request gdb bus error Download Free Trial Software Current Version Current Version Information Archive Releases Licensing Daemons Resources Documentation Porting & Tuning Guides Tutorial Videos PGInsider Newsletters White Papers & Specifications Technical Papers & Presentations Articles Benchmarking Glossary User http://openmp.org/forum/viewtopic.php?f=3&t=412 Forums Programming and Compiling Accelerator Programming Debugging and Profiling License and Installation Purchase Find a Reseller Product Configurator Quote Request Pricing End-user License Agreement Subscription Services Agreement Become a Reseller About Why Choose PGI News Center Job Openings Locations Contact PGI PGI User Forum Search Memberlist Register Profile Log in Bus Error PGI User Forum Forum Index -> Debugging and Profiling View previous topic :: View next http://www.pgroup.com/userforum/viewtopic.php?t=2188&sid=e8979f35e310a59d074bc3da30927be9 topic Author Message khea_actua1Joined: 06 Nov 2008Posts: 42Location: Carleton University Posted: Mon Sep 20, 2010 12:52 pm Post subject: Bus Error This is likely not the right place to post this question, but without getting anywhere I figured I'd try. Is there a good way to use the debugger to try to solve memory errors? I'm getting a "Bus Error", or "Signalled SIGSERV at 0x1001081F9..." and I have no idea why. It seems to happen the first time my program writes to a variable defined as: REAL :: HDELT COMMON /TIMES/HDELT The line causing the error is simple HDELT = 300.0; I narrowed it down to this using print statements all around it (I come from a PHP background and have never had to rely on debuggers.) I know the code I pasted is right and clearly can't be solely responsible for the error, but I don't know where else to look. Does any one have any idea? This is running on a MacPro 10.6.1 (Snow Leopard), dual processor x86_64 (Quad-Core Intel Xeon). it is compiled to run with OpenMP, but I've limited it to one thread to avoid concurrency issues (even though this code isn't in a parallel block.) Anyone see this before? Or
SNAP: Large-scale Graph Analysis beta Brought to you by: dbader, ejr, kmadduri Summary Files Reviews Support Wiki Mailing Lists Discussion Donate Code Create Topic Stats Graph Forums Open https://sourceforge.net/p/snap-graph/discussion/782061/thread/cea0a59c/ Discussion 3 Help 3 Help Formatting Help Bus error -> OpenMP issue ?? Forum: Help Creator: Christopher Created: 2009-01-16 Updated: 2013-05-02 Christopher - 2009-01-16 New problem, I get a "Bus error" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41344 message now and I think it is because of OpenMP. ------------------- /dev/lib$ eval_BFS -src 5 -infile ingraph.gr -outfile outgraph -graph snap Input Graph File : ingraph.gr Output Graph File : bus error outgraph Bus error ------------------- I haven't used OpenMP till now, so troubleshooting this one may be a pain... any help is appreciated. OS: Ubuntu 8.10 x64 I'm going to get this to work, I swear! If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Christopher - 2009-01-16 Update: I bus error in used the --enable-debug flag for configure and now I get a "Segmentation fault" instead of "Bus error". If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Christopher - 2009-01-17 ~/dev/bin$ ./eval_BFS -src 5 -infile ingraph.gr -outfile outgraph Input Graph File : ingraph.gr Output Graph File : outgraph Segmentation fault ~/dev/bin$ valgrind --leak-check=full ./eval_BFS -src 5 -infile ingraph.gr -outfile outgraph ==15643== Memcheck, a memory error detector. ==15643== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==15643== Using LibVEX rev 1854, a library for dynamic binary translation. ==15643== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==15643== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. ==15643== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==15643== For more details, rerun with: -v ==15643== Input Graph File : ingraph.gr Output Graph File : outgraph ==15643== Use of uninitialised value of size 8 ==15643== at 0x4E31A42: read_SNAP_graph (read_SNAP_graph.c:300) ==15643== by 0x4E30528: graph_gen (graph_gen.c:7) ==15643== by 0x400FB5: main (drive_BFS.c:82) ==15643== ==15643== Invalid read of size 4 ==15643== at 0
User account creation filtered due to spam. Bug41344 - [4.4/4.5 Regression] ICE / Bus error on OpenMP compile Summary: [4.4/4.5 Regression] ICE / Bus error on OpenMP compile Status: RESOLVED FIXED Alias: None Product: gcc Classification: Unclassified Component: middle-end (show other bugs) Version: 4.4.2 Importance: P2 normal Target Milestone: 4.4.3 Assignee: Not yet assigned to anyone URL: http://gcc.gnu.org/ml/gcc-patches/200... Keywords: accepts-invalid, ice-on-invalid-code, openmp Duplicates (1): 42484 (view as bug list) Depends on: Blocks: Reported: 2009-09-12 17:32 UTC by George Helffrich Modified: 2009-12-28 21:41 UTC (History) CC List: 5 users (show) fxcoudert gcc-bugs hjl.tools jakub janus See Also: Host: Target: Build: Known to work: 4.3.4 4.4.3 4.5.0 Known to fail: 4.4.2 Last reconfirmed: 2009-09-18 04:09:54 Attachments Code that elicits the ICE. (10.75 KB, application/octet-stream) 2009-09-12 17:34 UTC, George Helffrich Details Simplified test case that elicits the ICE (154 bytes, text/plain) 2009-09-16 05:00 UTC, George Helffrich Details A patch (333 bytes, patch) 2009-12-28 02:19 UTC, H.J. Lu Details | Diff View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description George Helffrich 2009-09-12 17:32:34 UTC Compilation successful without -fopenmp; ICE only with -fopenmp Using latest binary release on gfortran / GCC Wiki Code attached. #gfortran -v -save-temps -fopenmp -c -o xrotate.o xrotate.f Using built-in specs. Target: i386-apple-darwin8.10.1 Configured with: /tmp/gfortran-20090604/ibin/../gcc/configure --prefix=/usr/local/gfortran --enable-languages=c,fortran --with-gmp=/tmp/gfortran-20090604/gfortran_libs --enable-bootstrap Thread model: posix gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.6' '-v' '-save-temps' '-fopenmp' '-c' '-o' 'xrotate.o' '-mtune=generic' /usr/local/gfortran/libexec/gcc/i386-apple-darwin8.10.1/4.5.0/f951 xrotate.f -ffixed-form -fPIC -quiet -dumpbase xrotate.f -mmacosx-version-min=10.5.6 -mtune=generic -auxbase-strip xrotate.o -version -fopenmp -fintrinsic-modules-path /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/finclude -o xrotate.s GNU Fortran (GCC) version 4.5.0 20090604 (