This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Susan, I'm convinced the segfault in this case is coming from an attempt to write error messages to a log, so I've attached an edited version of decode_g2gnum.c for you to place in $NAWIPS/unidata/ldmbridge/dcgrib2/, after which you should cd to this directory and execute "make clean;make all;make install" to rebuild dcgrib2. Thing is, this is likely a wider problem with glibc, which means if fixes the error in decode_g2gnum we might see the same error elsewhere. Give this a try, and if we find that it works I can prepare a small OS X patch and send it your way. Michael Unidata > Hi Michael, > Most everything seems to be working. I am missing occasional frames in some > data sets. One of them looks like it needs dcgrib2 and that's one of the ones > that crashes several times a day. > This is the complete list of the modules that crash: > dcgrib2 > dcmetr > dcncprof > dcnldn > dcuair > > Here's what the beginning of the log looks like... Does this hold a clue? > Process: dcgrib2 [4115] > Path: /Users/*/dcgrib2 > Identifier: dcgrib2 > Version: ??? (???) > Code Type: X86-64 (Native) > Parent Process: pqact [62302] > > Date/Time: 2012-03-01 07:24:11.752 -0500 > OS Version: Mac OS X 10.7.3 (11D50b) > Report Version: 9 > > Crashed Thread: 0 Dispatch queue: com.apple.main-thread > > Exception Type: EXC_CRASH (SIGABRT) > Exception Codes: 0x0000000000000000, 0x0000000000000000 > > Application Specific Information: > __abort() called > objc[4115]: garbage collection is OFF > > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > 0 libsystem_kernel.dylib 0x00007fff817a182a __kill + 10 > 1 libsystem_c.dylib 0x00007fff8aafeb6c __abort + 193 > 2 libsystem_c.dylib 0x00007fff8aad089f __chk_fail + 91 > 3 libsystem_c.dylib 0x00007fff8aad06d9 __sprintf_chk + 173 > 4 dcgrib2 0x00000001000071a7 lcc_num + 653 > 5 dcgrib2 0x00000001000078c2 decode_g2gnum + 131 > 6 dcgrib2 0x0000000100006451 decode_grib2 + 1409 > 7 dcgrib2 0x0000000100005752 decode_grib + 232 > 8 dcgrib2 0x0000000100002e79 main + 561 > 9 dcgrib2 0x00000001000015c4 start + 52 > > Thread 0 crashed with X86 Thread State (64-bit): > > thanks > -sj > > On Feb 28, 2012, at 2:44 PM, Unidata GEMPAK Support wrote: > > > Hi Susan, > > > > I don't fully understand what you mean by "Since I didn't get any compiler > > messages before, I thought it was working OK and didn't bother." If > > you're starting from scratch, you'll need Xcode and MacPorts installed. > > > > If you are running OS X Lion, XCode is included. Any version prior to Lion > > and you will need to install Xcode from the install DVD, or download the > > latest disk image of Xcode from the Apple Developer web site. > > > > After that, you'll need to install MacPorts (Step 2 hereL > > http://www.unidata.ucar.edu/software/gempak/doc/install_osx.html ) > > > > For step 3 in the above link, there is an Open Motif package available from > > Unidata which has specific OS X edits. > > > > With these three software pieces, you should be able to follow the OS X > > instructions and arrive at a build without errors. Of course if you do run > > into any, please let me know. > > > > Best, > > > > Michael James > > Unidata > > > >> SO this time I'm starting from scratch and using the special instructions > >> for Mac OSX. Since I didn't get any compiler messages before, I thought it > >> was working OK and didn't bother. > >> Is that how you did your install, using macports ? > >> -sj > >> > >> On Feb 8, 2012, at 1:10 PM, Unidata GEMPAK Support wrote: > >> > >>> Susan, > >>> > >>> Any update on your situation? > >>> > >>> Michael > >>> > >>> > >>> > >>> > >>> > >>>> HI Susan, > >>>> > >>>> This is a problem I've not heard about before, and the popup windows are > >>>> surprising. > >>>> > >>>> I have been building on 10.6 without problem but have not had a chance > >>>> to build on Lion, so I'm afraid I can't offer anything good at this time. > >>>> > >>>> I have, however, attached a link to a tarball archive of my > >>>> 10.6-compiled decoders, though I don't know at all if they'll work for > >>>> you. Please let me know and if the problems persist I'll check on 10.7 > >>>> when I get a chance. > >>>> > >>>> http://www.unidata.ucar.edu/staff/mjames/gempak/OSXdecoders.tar.gz > >>>> > >>>> Michael James > >>>> Unidata > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>> Hello, > >>>>> I am having trouble with LDM and GEMPAK on Mac OS 10.7 Lion. I think > >>>>> the current problems are mainly with dcgrib2, dcmetr, dcnldn dctaf > >>>>> decoders. At least I've not got a hundred windows popped up telling me > >>>>> "You can't open the application dcgrib2 because PowerPC applications > >>>>> are no longer supported." (identical windows say the same about the > >>>>> other decoders I mentioned.) I compiled both programs on this new > >>>>> machine, which is of course Intel based, not PowerPC. Is there a place > >>>>> where I could get copies of the decoders that have been recently > >>>>> compiled on an Intel Mac? Or can you suggest something I should try? > >>>>> > >>>>> Thanks for any help or advice, > >>>>> -sj > >>>>> > >>>>> > >>>>> address@hidden > >>>>> > >>>>> Susan Jane Curtis > >>>>> Computer Consultant > >>>>> Department Marine, Earth and Atmospheric Sciences > >>>>> NC State University > >>>>> 3150 Jordan Hall - Box 8208 > >>>>> Raleigh NC 27695 > >>>>> > >>>>> 919-515-2609 > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>> > >>> > >>> Ticket Details > >>> =================== > >>> Ticket ID: HTT-869970 > >>> Department: Support GEMPAK > >>> Priority: Normal > >>> Status: Open > >>> > >> > >> > > > > Ticket Details > > =================== > > Ticket ID: HTT-869970 > > Department: Support GEMPAK > > Priority: Emergency > > Status: Open > > > > Ticket Details =================== Ticket ID: HTT-869970 Department: Support GEMPAK Priority: Critical Status: Open
Attachment:
decode_g2gnum.c
Description: Binary data