Adobe Reader DC segmentation fault

Hi,
I have been using adobe reader through AxAcroPDF interface, and it worked great with adobe reader XI, but something just broke with adobe reader DC: I get a SIGSEGV when calling IOleControl::Release in MinGW.
with MSVC it reports a frame in an unloaded library accessed by IOleControl::Release() (005df9e4 005df9f8 <Unloaded_AcroPDFImpl.dll>+0x15ce6005df9e8 00cf254c 0x5df9f8)
Is this a known bug of Adobe Reader DC ?
Thanks in advance

It seems to happen only if the IOleControl is Released after the IOleObject, so the workaround is to release first the IOleControl, then release the IOleObject

Similar Messages

  • [SOLVED] Adobe Reader (acroread) Segmentation Fault (KDE)

    Hello everyone!
    I've been playing with arch quite a long time and I have a problem with the acroread package, which I installed from the AUR.
    Adobe Reader will never start and this is the output I get:
    $ acroread
    dirname: missing operand
    Try 'dirname --help' for more information.
    Segmentation fault (core dumped)
    I did run strace and the output I got (last few lines) is:
    access("/etc/gtk-2.0/gtkrc.en_US", F_OK) = -1 ENOENT (No such file or directory)
    access("/etc/gtk-2.0/gtkrc.en", F_OK) = -1 ENOENT (No such file or directory)
    lstat64("/home/errikos/.gtkrc-2.0", 0xfffffffffff5e7f4) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtkrc-2.0.en_US", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtkrc-2.0.en", F_OK) = -1 ENOENT (No such file or directory)
    lstat64("/home/errikos/.gtkrc-2.0-kde4", {st_mode=S_IFREG|0644, st_size=328, ...}) = 0
    open("/home/errikos/.gtkrc-2.0-kde4", O_RDONLY|O_LARGEFILE) = 5
    read(5, "# This file was written by KDE\n#"..., 4000) = 328
    lstat64("/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc", {st_mode=S_IFREG|0644, st_size=6131, ...}) = 0
    open("/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc", O_RDONLY|O_LARGEFILE) = 6
    read(6, "# this file is part of the oxyge"..., 4000) = 4000
    access("/home/errikos/.gtk-2.0/2.10.0/x86_64-unknown-linux-gnu/engines/liboxygen-gtk.so", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/2.10.0/x86_64-unknown-linux-gnu/engines/liboxygen-gtk.la", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/2.10.0/engines/liboxygen-gtk.so", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/2.10.0/engines/liboxygen-gtk.la", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/x86_64-unknown-linux-gnu/engines/liboxygen-gtk.so", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/x86_64-unknown-linux-gnu/engines/liboxygen-gtk.la", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/engines/liboxygen-gtk.so", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/errikos/.gtk-2.0/engines/liboxygen-gtk.la", F_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib32/gtk-2.0/2.10.0/x86_64-unknown-linux-gnu/engines/liboxygen-gtk.so", F_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib32/gtk-2.0/2.10.0/x86_64-unknown-linux-gnu/engines/liboxygen-gtk.la", F_OK) = -1 ENOENT (No such file or directory)
    access("/usr/lib32/gtk-2.0/2.10.0/engines/liboxygen-gtk.so", F_OK) = 0
    stat64("/usr/lib32/gtk-2.0/2.10.0/engines/liboxygen-gtk.so", {st_mode=S_IFREG|0755, st_size=1309120, ...}) = 0
    open("/usr/lib32/gtk-2.0/2.10.0/engines/liboxygen-gtk.so", O_RDONLY|O_CLOEXEC) = 7
    read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220-\4\0004\0\0\0"..., 512) = 512
    fstat64(7, {st_mode=S_IFREG|0755, st_size=1309120, ...}) = 0
    mmap2(NULL, 1314324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0xf0f20000
    mprotect(0xfffffffff105b000, 4096, PROT_NONE) = 0
    mmap2(0xfffffffff105c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x13b) = 0xf105c000
    close(7) = 0
    mprotect(0xfffffffff105c000, 12288, PROT_READ) = 0
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
    +++ killed by SIGSEGV (core dumped) +++
    Segmentation fault (core dumped)
    I am running Arch with KDE.
    Should it find all those files it is not finding? Could they be part of the problem?
    I did a Google search, but got nowhere until now.
    Last edited by errikosd (2013-05-08 01:10:04)

    Well, I found a workaround, for those who really need acroread and want it well integrated into the KDE environment.
    The solution is to use another KDE look-alike theme, QtCurve, instead of the "problematic" oxygen-gtk for GTK2 applications.
    What you have to do is install the following packages from the AUR:
    gtk-engines
    qtcurve-gtk2
    qtcurve-kde
    lib32-qtcurve-gtk2
    and also lib32-gtk-engines if it isn't resolved as a dependency.
    You will also need to install the kde-gtk-config package from the AUR.
    Then go to: KDE System Settings > Application Appearance > GTK, select QtCurve as the GTK2 theme and enjoy acroread and other GTK2 applications (well not fully, but the QtCurve theme is OK) integrated into your KDE desktop!
    PS1: QtCurve is not (yet?) available for GTK3, so I left oxygen-gtk there.
    PS2: Status changed to solved.

  • Adobe Reader X/10 - continued crash problems trying to save PDFs

    Dear all,
    I wonder if anyone can help me.... I have been having ongoing problems when trying to save PDF documents online while using the downloaded Adobe Reader 10 or X version. It always crashes/freezers when I press the 'save' button in the 'save as' dialogue box. I have to use end program and start all over again.
    I use Windows XP (Professional, Service Pack 3) and both Mozilla Firefox 4.0.1 and IE 8 web browsers. I have followed the links suggested to prevent in future after the problem has been reported - I have unstalled and reinstalled Reader a few times now, as well as checked that I have been using the most up to date version of Reader 10 or X. Then reopened everything again thinking it's solved and then crash (ARGH!). Has anyone else had similar issues?
    This is most frustrating to say the least, not withstanding the time delays affecting work outputs when the system crashes on the 'save as' dialogue box (after pressing save). I have lost faith in Adobe now ... I used to consider the free download of Reader a great asset, now it is a true annoyance and may or may not work entirely.
    Any help or advice would be great, even alternative PDF software.
    Many thanks in advance
    Ruth

    The response from 370H55V is correct in theory and in actual fact was very close to the solution, but the response was more cryptic than helpful. I first encountered this yesterday after upgrading users on a Terminal Server from Reader v8 to v9. My first instinct was to upgrade to v10, which I did, but the problem still existed, so I rolled back to v8 and the issue was resolved. Unfortunately however this was not a solution and it was a requirement that we upgraded to at least v9. The error was as described that in IE 8 when a PDF file was opened inside the browser(or embedded as some might say), and you press SAVE (or even sometimes print) within the adobe reader toolbar, IE would flicker and crash on the page and then recover the page, saying this page has been recovered, but no saving would happen. This would happen if protection was turned off in Adobe Reader, and if it was on (default), then pressing SAVE would just make IE freeze as previously reported.
    So to understand what was happening, I ran FILEMON and REGMON by SYSINTERNALS. Regmon showed nothing of significance. Filemon showed a lot more. It was getting an access denied error on c:\windows\system32\shell32.dll. There was no reason for this however because the permissions on this file allow all users to read and execute. But then I remembered what shell32.dll does. It brings up the SAVE AS dialog box that allows you select the path of where to save the file – essentially this is calling the shell of explorer.exe.
    So this is actually the cause of the crash. When Adobe Reader makes the call to the SAVE AS dialog box – CRASH!!!!! Why???
    Well it’s quite simple. The default location that the SAVE AS dialog box starts in is MY Documents and this is where to start looking for the source of the error. To find out were “my documents” is for your session, open REGEDIT and go to:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    Look for the key: PERSONAL and in it is a REG_SZ containing the path to “my documents” for the current user. This is generally something like C:\documents and settings\<username>\My Documents on Windows XP/2003 and something like C:\Users\<username>\Documents on Win7/ 2008.
    Now in our case the setting for this key was U:\ which was a mapped network drive to the path: \\server\username\mydocs. U:\ did exist and the user had full permission to it. So I changed the path on the personal key to C:\documents and settings\<username>\My Documents – the default setting. I went back to IE, opened a PDF document from a website, viewed the file and then pressed SAVE on the adobe toolbar. BINGO BABY!!!! Worked perfectly.
    But again this was not a solution because in a network, you need your users to have their “my documents” in their own home drive, which is generally located on a remote share on a server. So I put the PERSONAL setting in the registry back to U:\ and crash back to square one. I then put the path of the U:\ in the key instead of just U: drive, so PERSONAL now had a REG_SZ value of \\server\username\mydocs. Went out to IE again, launched a PDF, pressed SAVE. BINGO BABY!! It worked. So clearly this was a UNC Path resolution issue or something similar, but why did it only happen from v9 of Adobe Reader and whose fault is it – Microsoft or Adobe. Well I suspect both. I suspect that Adobe maybe making a weak Shell call in their code which doesn’t resolve the path properly, and a possible bug in the MS Shell call may be adding to this issue.
    Anyway, I did some further testing for some fun. I took permissions away from the user to their “My documents” folder and was also able to replicate the same crash. I set the PERSONAL registry key to a folder that didn’t exist and same crash. So basically if the SAVE AS shell call can’t resolve or access the path as set in the PERSONAL key the you will get this crash.
    The way I solved it for the network users, was to set the registry key for PERSONAL to \\server\username\mydocs via Group Policy, also a logon script may also work. Additionally you could use Folder Redirection in Group Policy to set the path for MY Documents on a per user basis. This also was tested and work.
    For non-network users check the PERSONAL key and get the path and then find that path and check permissions etc. Replace it with the default location or even point it to a path that you know exists and has full access.
    As a final tip, also look at the registry Key:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    And find the PERSONAL path. It will be something like %USERPROFILE%\my documents in XP/2003 and %USERPROFILE%\Documents in Win7/2008. This is the default location and if the PERSONAL KEY does not exist in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders then windows reverts back to the User Shell Folders key to get the path. It is a good idea to check that path in this area as well.
    Hope this helps.

  • Adobe Reader 9.3 for Linux: Segmentation Fault in PPKLite.api

    Adobe Reader 9.3 cannot open signed pdf files on our system (64-bit Fedora 10 Linux, with 32-bit compatibility libraries installed). It crashes with a segmentation fault any time one tries to open the following file:
    http://www.utoronto.ca/ic/software/forms/matlab_concurrent_renewal2010.pdf
    Running with ACRODEBUG=1 and ACRO_CRASHLOG=1 results in a zero-length crash log file and the only debug messages shown are
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/Annots.api ... [dlopen success for Annots.api, handle = 0xc4548f8]
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api ... [dlopen success for AcroForm.api, handle = 0xd0c3a50]
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/DigSig.api ... [dlopen success for DigSig.api, handle = 0xd0dcc68]
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/EScript.api ... [dlopen success for EScript.api, handle = 0xd126ac8]
    Loading PlugIn /opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api ... [dlopen success for PPKLite.api, handle = 0xd7b1ff0]
    If I run the gdb debugger on /opt/Adobe/Reader9/Reader/intellinux/bin/acroread, it shows the segmentation fault occurring inside /opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api (but since the file is stripped, all it shows is the binary offset of the segfault). I do have a coredump, though.
    If I remove the PPKLite.api file (or rename it to PPKLite.api.hide -- note that chmod -x does not work, nor does renaming it to something else that still ends in .api, unlike some workarounds I've seen on the web for similar problems in earlier versions of Adobe Reader), then Adobe Reader can open the file without crashing, except that without PPKLite it cannot validate its signature and so it displays the message "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document" -- which I assume is because the signature validation failed due to the absence of PPKLite so it things the document has been altered even though it hasn't been.
    So this removing or renaming of PPKLite.api works around the problem of the crash, at the expense of getting this misleading warning message.
    However, obviously there is a problem inside PPKLite.api that needs to be fixed....

    I'm seeing what must be the same issue: acroread foo.pdf exits almost instantly without any message, but with status 1.
    This is: AdobeReader_enu-9.3.1-1.i486 on a Fedora 12 box,  AMD Phenom II 945.
    If I set ACRODEBUG=1 and ACRO_CRASHLOG=1 and ulimit -c unlimited, and rename PPKLite.api,  *then* I get a nonzero crashlog. Which is:
    /usr/bin/acroread [0x84ff125] [@0x8048000]
    (__kernel_sigreturn+0x0) [0xf7786400] [@0xf7786000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf44dc99b] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf41e1cf5] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf41e436d] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf41e57a3] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf41f81b2] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf41d4863] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf3c44111] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf3c47268] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf3f7446a] [@0xf3b6d000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm.api [0xf3f74e6d] [@0xf3b6d000]
    /usr/bin/acroread [0x892da33] [@0x8048000]
    /usr/bin/acroread [0x873dee9] [@0x8048000]
    /usr/bin/acroread [0x8741530] [@0x8048000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/DigSig.api [0xf361fd53] [@0xf35f5000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/DigSig.api [0xf3628217] [@0xf35f5000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/DigSig.api [0xf36e3f01] [@0xf35f5000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/DigSig.api [0xf36e3f9e] [@0xf35f5000]
    /usr/bin/acroread [0x892f7e7] [@0x8048000]
    /usr/bin/acroread [0x8744a50] [@0x8048000]
    /usr/bin/acroread [0x825bdec] [@0x8048000]
    /usr/bin/acroread [0x826bb11] [@0x8048000]
    /usr/bin/acroread [0x826bd32] [@0x8048000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/Annots.api [0xf4ca1b4a] [@0xf4ba9000]
    /opt/Adobe/Reader9/Reader/intellinux/plug_ins/Annots.api [0xf4ca1bec] [@0xf4ba9000]
    /usr/bin/acroread [0x826c1c4] [@0x8048000]
    /usr/bin/acroread [0x826d0bb] [@0x8048000]
    /usr/bin/acroread [0x850193f] [@0x8048000]
    /usr/bin/acroread [0x85024d2] [@0x8048000]
    /usr/bin/acroread(main+0x87) [0x856686d] [@0x8048000]
    /lib/libc.so.6(__libc_start_main+0xe6) [0x5ddbb6] [@0x5c7000]
    Without renaming the .api, all I got was five 'dlopen success' messages, and "Segmentation fault (core dumped)", but a zero length log.
    Don

  • Adobe Reader 9.4,10,11 crash when opening certain pdfs. Faulting module ntdll.dll

    We've started having issues with a certain type of pdf file crashing reader anytime it's opened. It will open fine about 1/10 of the time, the rest of the time it either straight crashes or we get a message that a drawing error occured and the pdf isn't rendered properly. I've tested with Reader 9.4, 10.1.2, 10.1.4, and the latest 11 release. I've tested under WinXP x86 and Win7 x64 with the same results. It does apparently open fine under Windows Server 2008 R2 but the issue is occuring on our desktops and opening from the server was only a test.
    I'm unable to share the pdf for others to research since it contains Protected Health Information. The pdf however does have a header with the patient info and then a graph similar to a EKG strip, the header always renders fine but when we get the error that a drawing error occured it's the graph thats corrupt. Sumatra/Foxit/Evince can open the document just fine. I've tried disabling every feature and plugin in Adobe Reader with no luck. I've tried to run the pdf through some tests and I did find there are 2 errors, both are "[error] Object shall end with 'endobj' statement" but I'm unable to find anything that can autocorrect the issue.
    We have thousands of those pdf's, they were ran through a Print 2 PDF converter (Win2PDF 7.0.46 - 2.6.7.1465.3 http://www.win2pdf.com) using pdf version 1.4. Anyone have any ideas on what else to try? I'm at a loss and I'd rather not have to install an alternate PDF reader on 6k workstations (although with all the headaches Adobe Reader has caused me that would be a welcome change).
    Jason

    I've tried Acrobat and it won't open the file either, same app crash in ntdll.dll. But I know what you're saying but I don't have the source documents to run through conversion with another application.
    I'm not sure how the process was performed but we had a vendor come in and convert all of our old clinical EMR data into PDF's and then index into OnBase. We are working with the vendor for a solution but so far they haven't found nothing. I recommended to them to update their Win2PDF program but I don't think thats an option on the thousand, if not millions of documents already converted.
    Why is every other PDF reader able to open the file except Adobe Reader?

  • Adobe Reader 9.4.2 SIGSEGV in command-line PDF- PS conversion

    NOTE: This issue was originally reported Oct. 5, 2010, against Reader 9.4.0:  http://forums.adobe.com/message/3186827
    The following should emit PostScript on stdout:
         acroread -toPostScript < PDF_FILE
    Try doing this with Adobe Reader 9.4.2, and all you'll see is
         Segmentation fault
    Adobe Reader 9.3.4 works just fine doing such PDF->PostScript conversions. 
    John

    Forgot to mention: this is occurs on both 32-bit and 64-bit RHEL5 Linux hosts at our site.
    Tail end of an strace for this issue:
    24100 munmap(0xf702f000, 4096)          = 0
    24100 stat64("/u/j/o/john/.adobe", {st_mode=S_IFDIR|0700, st_size=2048, ...}) = 0
    24100 stat64("/u/j/o/john/.adobe/Acrobat", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
    24100 stat64("/u/j/o/john/.adobe/Acrobat/9.0", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
    24100 stat64("/u/j/o/john/.adobe/Acrobat/9.0/Temp", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
    24100 open("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
    24100 close(4)                          = 0
    24100 unlink("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq") = 0
    24100 open("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq", O_RDWR|O_CREAT|O_TRUNC, 0666) = 4
    24100 getcwd("/tmp/acrotest"..., 1024)  = 14
    24100 open("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq", O_RDONLY) = 5
    24100 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    24100 +++ killed by SIGSEGV +++
    John

  • Adobe Reader 9.4.0 SIGSEGV in command-line PDF- PS conversion

    The following should emit PostScript on stdout:
         acroread -toPostScript < PDF_FILE
    Try doing this with Adobe Reader 9.4.0, and all you'll see is
         Segmentation fault
    Adobe Reader 9.3.4 works just fine doing such PDF->PostScript conversions.    Will it be another 3 months before this is fixed?
    John

    Forgot to mention: this is occurs on both 32-bit and 64-bit RHEL5 Linux hosts at our site.
    Tail end of an strace for this issue:
    24100 munmap(0xf702f000, 4096)          = 0
    24100 stat64("/u/j/o/john/.adobe", {st_mode=S_IFDIR|0700, st_size=2048, ...}) = 0
    24100 stat64("/u/j/o/john/.adobe/Acrobat", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
    24100 stat64("/u/j/o/john/.adobe/Acrobat/9.0", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
    24100 stat64("/u/j/o/john/.adobe/Acrobat/9.0/Temp", {st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
    24100 open("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
    24100 close(4)                          = 0
    24100 unlink("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq") = 0
    24100 open("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq", O_RDWR|O_CREAT|O_TRUNC, 0666) = 4
    24100 getcwd("/tmp/acrotest"..., 1024)  = 14
    24100 open("/u/j/o/john/.adobe/Acrobat/9.0/Temp/AdobeTempPShUseaq", O_RDONLY) = 5
    24100 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    24100 +++ killed by SIGSEGV +++
    John

  • InDesign Server CS6 (MacOS) - JavaScripting & Troubleshooting "Bus error" or "Segmentation fault"

    I'm attempting to convert a workflow from InDesign CS5.5 Desktop with AppleScript to InDesign Server CS6 with JavaScript. It seems most of our templates work fine but every now and then I run into one that seems to work properly but right after we export to PDF and JPG which is the final step in the script I get either a Bus error or a Segmentation fault error. The files do export and the console sits idle for a few seconds then I get the crash. It doesn't seem to give me anything else and I can't find a crash dump or core file anywhere on disk to examine.
    The exact same input files on InDesign CS5.5 Desktop completing a very similar automation task via AppleScript work without an issue or error. I'm not certain if it's a problem with the way the InDesign files were put together, a version problem between a CS5.5 file and CS6, or something that I'm doing wrong in the script.
    Is there a way to get InDesign Server to go into debug or verbose mode so that it will show more than just two word errors on crash?  I've read a few people talking here about the debug version but every path I've found to get access to the debug version runs into a roadblock with a bad link.
    I would appreciate a point in the current right direction for how to debug these templates this script.

    Re: verbose mode. These are not InDesign error messages. They are system errors, saying that an app (InDesign?) crashed, went away, hence could not issue any kind of message. Crash logs are the place to start. If they don't help, and the crash is outside your code, after that it's over to the maintainer (Adobe?)
    Worth sharing a suitable crash log, as the list of routines active at the crash can narrow down issues.

  • Adobe Reader 10.1.3 crashes on open?

    Has anyone found a cause for frequent Adobe Reader crashes with version 10.1.3 on a Mac with OS X 10.6.8?
    The issue has been reported in the Acrobat forum but I haven't seen it mentioned here.
    For me, the problem occurs about every third time I try to open a file --  sometimes it will occur five times in a row and sometimes I can open several files before the problem recurs.  It almost always happens just after the Adobe splash screen goes away and the file starts to load.  Sometimes I will see the first page of the document before the spinning beach ball of doom indicates that things are about to go horribly wrong.  When I try to reopen the file that caused the crash, it usually opens the second time.  Neither file size nor content seem to be a factor.
    The crash report (as with everyone else's who's reported the problem) shows:
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000007
    The system log refers to a segmentation fault.
    Reader never gets far enough to issue its own error message.
    On this computer, I have been using every release of Adobe Reader since version 9-something without incident -- up to, and including, 10.1.2.  Reinstalling has not solved the problem.  It just seems that 10.1.3 wasn't so much "released" as that it escaped prematurely.

    I don't have that issue with an up to date Mac OS X.7.4. Try a new user. If it works, then you have a corrupted preference file. If it still doesn't work then get the Onyx utility. Have it remove all your cache's, then restart and see if that helps.

  • Segmentation Fault at the very end of InDesign Execution

    Hi Plugin-Developers,
    I am currently working on a InDesign Plugin (CS6, CC and CC 2014) which works quite nicely and also stable. But whenever I close InDesign everything is saved to the document and at the very very end I get a Segmentation Fault. This is not nice to see- luckily no data is lost. I have no possible way to find out what is causing the crash.
    Could anyone guide me what could cause such crashes and how to find out the reason for this?
    Thank you very much.
    Process:   
    Adobe InDesign CC 2014 [61482]
    Path:      
    /Applications/Adobe InDesign CC 2014/Adobe InDesign CC 2014.app/Contents/MacOS/Adobe InDesign CC 2014
    Identifier:
    com.adobe.InDesign
    Version:   
    10.0.0.70 (10000)
    Code Type: 
    X86-64 (Native)
    Parent Process:  launchd [95004]
    Date/Time: 
    2014-09-01 17:51:20.678 +0200
    OS Version:
    Mac OS X 10.7.5 (11G63)
    Report Version:  9
    Interval Since Last Report:    
    1248476 sec
    Crashes Since Last Report:     
    63
    Per-App Interval Since Last Report:  10869 sec
    Per-App Crashes Since Last Report:   13
    Anonymous UUID:                
    EE34F0E5-0D35-4AA3-AAB1-1A2705CA224C
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    VM Regions Near 0:
    -->
    __TEXT           
    000000010a21b000-000000010a221000 [   24K] r-x/rwx SM=COW  /Applications/Adobe InDesign CC 2014/Adobe InDesign CC 2014.app/Contents/MacOS/Adobe InDesign CC 2014
    Application Specific Information:
    objc[61482]: garbage collection is OFF
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   ???                    
    000000000000000000 0 + 0
    1   ObjectModelLib.dylib   
    0x000000010e745eca 0x10e744000 + 7882
    2   PublicLib.dylib        
    0x000000010b421e23 MultiControllingUnknown::~MultiControllingUnknown() + 83
    3   com.adobe.InDesign.MetaioCC2014    0x0000000114e0494d PageListObserver::~PageListObserver() + 285 (PageListObserver.cpp:148)
    4   ObjectModelLib.dylib   
    0x000000010e74c0b8 0x10e744000 + 32952
    5   ObjectModelLib.dylib   
    0x000000010e745eca 0x10e744000 + 7882
    6   PublicLib.dylib        
    0x000000010b421f9f MultiControllingUnknown::~MultiControllingUnknown() + 79
    7   ObjectModelLib.dylib   
    0x000000010e777993 ShuksanTerminate(IPlugIn*) + 18643
    8   ObjectModelLib.dylib   
    0x000000010e777bda ShuksanTerminate(IPlugIn*) + 19226
    9   DataBaseLib.dylib      
    0x000000010e6d5ded 0x10e6ca000 + 48621
    10  DataBaseLib.dylib      
    0x000000010e6cf0d4 0x10e6ca000 + 20692
    11  ObjectModelLib.dylib   
    0x000000010e777bbb ShuksanTerminate(IPlugIn*) + 19195
    12  DV_WidgetBinLib.dylib  
    0x000000010a269827 DVPanelControlData::~DVPanelControlData() + 359
    13  ObjectModelLib.dylib   
    0x000000010e74c0b8 0x10e744000 + 32952
    14  ObjectModelLib.dylib   
    0x000000010e745eca 0x10e744000 + 7882
    15  PublicLib.dylib        
    0x000000010b421f9f MultiControllingUnknown::~MultiControllingUnknown() + 79
    16  ObjectModelLib.dylib   
    0x000000010e777993 ShuksanTerminate(IPlugIn*) + 18643
    17  ObjectModelLib.dylib   
    0x000000010e777bda ShuksanTerminate(IPlugIn*) + 19226
    18  DataBaseLib.dylib      
    0x000000010e6d5ded 0x10e6ca000 + 48621
    19  DataBaseLib.dylib      
    0x000000010e6cf0d4 0x10e6ca000 + 20692
    20  ObjectModelLib.dylib   
    0x000000010e777bbb ShuksanTerminate(IPlugIn*) + 19195
    21  DV_WidgetBinLib.dylib  
    0x000000010a269827 DVPanelControlData::~DVPanelControlData() + 359
    22  ObjectModelLib.dylib   
    0x000000010e74c0b8 0x10e744000 + 32952
    23  ObjectModelLib.dylib   
    0x000000010e745eca 0x10e744000 + 7882
    24  PublicLib.dylib        
    0x000000010b421f9f MultiControllingUnknown::~MultiControllingUnknown() + 79
    25  ObjectModelLib.dylib   
    0x000000010e777993 ShuksanTerminate(IPlugIn*) + 18643
    26  ObjectModelLib.dylib   
    0x000000010e777bda ShuksanTerminate(IPlugIn*) + 19226
    27  DataBaseLib.dylib      
    0x000000010e6d5ded 0x10e6ca000 + 48621
    28  DataBaseLib.dylib      
    0x000000010e6cf0d4 0x10e6ca000 + 20692
    29  ObjectModelLib.dylib   
    0x000000010e777bbb ShuksanTerminate(IPlugIn*) + 19195
    30  com.adobe.InDesign.Application UI    0x00000001170c51bd 0x11708b000 + 238013
    31  com.adobe.InDesign.Application UI    0x00000001171ca08a 0x11708b000 + 1306762
    32  com.adobe.InDesign.AppFramework    0x0000000116f7c217 0x116e64000 + 1147415
    33  com.adobe.InDesign.AppFramework    0x0000000116f7bd23 0x116e64000 + 1146147
    34  com.adobe.InDesign     
    0x000000010a21c78f main + 303
    35  com.adobe.InDesign     
    0x000000010a21c5f4 start + 52

    You can get that at www.partners.adobe.com. But I'm quite sure you must be registered at Adobe's partnership program to be able to log at this site.

  • Help needed, segmentation fault with java 1.6

    Hey, I would very much appreciate help with this problem.
    It began a while ago, while I was using Netbeans 6.5 to do some Java Server testing stuff, I was running Adobe Flash on top (working on some WSDL stuff), and the computer was understandable running a bit slowly. However, it got to the point where the computer stopped responding, even with me killing apps as often as possible to conserve memory (1 GB on this machine) and I was forced to kill the machine by holding down the power button (using a white MacBook). When I started up once more, java 1.6 was dead, no amount of re-installs seemed to be helping when I tried downloading the Java Updates from Apple, though java 1.5 seemed to be working at that time. However, poking around in the console and looking at the logs, I noticed that launchd[1] was failing every 10 seconds to start something up, it looked like it was the apache http server, therefore I went to System Preferences to turn of Web Sharing, and that particular problem disappeared. However, whenever I would attempt to run java, even using the Terminal, I would get this Console log, or at least one very similar (this one was generated with java 1.5 I believe)
    Process: java [7217]
    Path: /usr/bin/java
    Identifier: java
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: bash [7208]
    Date/Time: 2008-12-13 10:41:23.197 -0500
    OS Version: Mac OS X 10.5.5 (9F33)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: 0x000000000000000d, 0x0000000000000000
    Crashed Thread: 0
    Thread 0 Crashed:
    0 libSystem.B.dylib 0x00007fff80e57164 strcmp + 84
    1 libobjc.A.dylib 0x00007fff8000b23f _selregisterName + 49
    2 libobjc.A.dylib 0x00007fff8000ab46 map_images + 3757
    3 dyld 0x00007fff5fc04130 dyld::notifyBatchPartial(dyldimagestates, bool, char const* (*)(dyldimagestates, unsigned int, dyldimageinfo const*)) + 416
    4 dyld 0x00007fff5fc048fd dyld::registerImageStateBatchChangeHandler(dyldimagestates, char const* (*)(dyldimagestates, unsigned int, dyldimageinfo const*)) + 525
    5 libSystem.B.dylib 0x00007fff80e56472 dyldregister_image_state_changehandler + 88
    6 libobjc.A.dylib 0x00007fff8000954f objcinit + 38
    7 dyld 0x00007fff5fc11257 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 279
    8 dyld 0x00007fff5fc0d16c ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 268
    9 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
    10 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
    11 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
    12 dyld 0x00007fff5fc0d254 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 52
    13 dyld 0x00007fff5fc038b4 dyld::initializeMainExecutable() + 132
    14 dyld 0x00007fff5fc06eb1 dyld::main(machheader const*, unsigned long, int, char const**, char const**, char const**) + 2209
    15 dyld 0x00007fff5fc01695 dyldbootstrap::start(mach_header const*, int, char const**, long) + 693
    16 dyld 0x00007fff5fc0103a dyldstart + 42
    Thread 0 crashed with X86 Thread State (64-bit):
    rax: 0x00000000000008a0 rbx: 0x00007fff80018760 rcx: 0x0000000000005722 rdx: 0x000000000000008a
    rdi: 0x00007fff80018760 rsi: 0x0c00004806000038 rbp: 0x00007fff5fbfdbc0 rsp: 0x00007fff5fbfdba8
    r8: 0x00000000c5a8037d r9: 0x0000000068e33de7 r10: 0x00000000bcafe771 r11: 0x0000000000000001
    r12: 0x0c00004806000038 r13: 0x0000000000000001 r14: 0x0000000000000001 r15: 0x000000000000001d
    rip: 0x00007fff80e57164 rfl: 0x0000000000010202 cr2: 0x00007fff7002f9f0
    Binary Images:
    0x100000000 - 0x10000afe0 +java ??? (???) <53c91321e79d660f62c011f5d8625a7f> /usr/bin/java
    0x100010000 - 0x100018ffd com.apple.JavaVM 12.2.0 (12.2.0) <2b178e8d4bbcc0aa427c2f3f71bb2fcb> /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
    0x7fff5fc00000 - 0x7fff5fc2e593 dyld 96.2 (???) <b0570939de4a19f478c8eabab95aaaee> /usr/lib/dyld
    0x7fff80003000 - 0x7fff800f7fff libobjc.A.dylib ??? (???) <118dc1ae05e685ad64290352fc94f1f0> /usr/lib/libobjc.A.dylib
    0x7fff80199000 - 0x7fff801aaffd libz.1.dylib ??? (???) <f260db32dd97a14108a5e04184785ded> /usr/lib/libz.1.dylib
    0x7fff801ab000 - 0x7fff801e8ff7 com.apple.SystemConfiguration 1.9.2 (1.9.2) <3e058b95c78dc2f54ec3f9781bd86e1c> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x7fff801e9000 - 0x7fff80239fe7 com.apple.Metadata 10.5.2 (398.22) <1fc60b4568a7ffbec4273f656d61ab58> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x7fff808c2000 - 0x7fff80957ffb com.apple.LaunchServices 290 (290) <b5b494e44b291a782bee370a046d5727> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x7fff80a31000 - 0x7fff80a39ffa libbsm.dylib ??? (???) <4d838c0d8a74fe61c781a53a8723303d> /usr/lib/libbsm.dylib
    0x7fff80a3a000 - 0x7fff80a6cff7 libauto.dylib ??? (???) <cc8eece8c0097b254c758bd4e8df9537> /usr/lib/libauto.dylib
    0x7fff80e4d000 - 0x7fff80fd1ffb libSystem.B.dylib ??? (???) <8e3de87ccdf6c4606b9bcb9da3a33eda> /usr/lib/libSystem.B.dylib
    0x7fff80fd2000 - 0x7fff81046fe7 libstdc++.6.dylib ??? (???) <565ee6f798f7fef6f804c60682787280> /usr/lib/libstdc++.6.dylib
    0x7fff81075000 - 0x7fff81106fff com.apple.SearchKit 1.2.1 (1.2.1) <e2a25e04f281fe8ff7088a08a549020f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x7fff81107000 - 0x7fff8119bfe3 com.apple.CFNetwork 339.5 (339.5) <6e912954955e0af0e0defb59cc2c348a> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x7fff814b5000 - 0x7fff814dcfff libxslt.1.dylib ??? (???) <22a74e7859cfbf63ae7fc310b0a669a4> /usr/lib/libxslt.1.dylib
    0x7fff82112000 - 0x7fff82249fff com.apple.CoreFoundation 6.5.4 (476.15) <4b970007410b71eca926819f3959548f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8224a000 - 0x7fff8224affa com.apple.CoreServices 32 (32) <c12e589173b697ce88050a6f736549eb> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff830ae000 - 0x7fff830edfef com.apple.framework.IOKit 1.5.1 (???) <56d5528f3623ad4d9c68751018e658c3> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff832b0000 - 0x7fff83360fef com.apple.CoreServices.OSServices 226.5 (226.5) <4461ef69cec249de2315c88e83d4c904> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x7fff83465000 - 0x7fff835d3fff libicucore.A.dylib ??? (???) <25557e76cafa3f8a97ca7bffe42e2d97> /usr/lib/libicucore.A.dylib
    0x7fff835d8000 - 0x7fff835dcfff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x7fff835f5000 - 0x7fff8360dfff com.apple.DictionaryServices 1.0.0 (1.0.0) <78ea11e9a92120f76d69efa24b8d1f95> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x7fff836a5000 - 0x7fff8379afff libxml2.2.dylib ??? (???) <8226d1180354f493954c5fa1fc0e1154> /usr/lib/libxml2.2.dylib
    0x7fff8379b000 - 0x7fff837a1fff com.apple.DiskArbitration 2.2.1 (2.2.1) <e75fe224700767869227cc903bef8ed9> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff8387a000 - 0x7fff83a80ffb com.apple.security 5.0.4 (34102) <e0b73ab106139601404f2666ce1b9d65> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff83ecb000 - 0x7fff84165fe3 com.apple.Foundation 6.5.6 (677.21) <8995b3185ca91d3508c7580794d40813> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff84166000 - 0x7fff841a1fff com.apple.AE 402.2 (402.2) <b03583e0747f82199e0d9604014faa34> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x7fff842ed000 - 0x7fff842f9ff1 libgcc_s.1.dylib ??? (???) <23fa31a628c1ea8a62ac529fa333b6e1> /usr/lib/libgcc_s.1.dylib
    0x7fff842fa000 - 0x7fff84382fe7 libsqlite3.0.dylib ??? (???) <3c7ab3523b816dbd3e039ee7e6e2c580> /usr/lib/libsqlite3.0.dylib
    0x7fff84383000 - 0x7fff8467efe3 com.apple.CoreServices.CarbonCore 786.6 (786.6) <7048aee00133f19029108600e9ede844> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x7fffffe00000 - 0x7fffffe01780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    0xfffffffffffec000 - 0xfffffffffffeffff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    As I said, java 1.5 worked for a while, however recently it too has stopped working and spits out Segmentation Faults like these. Any clues as to why, and how to fix?
    Much thanks.

    I have no answers, but strongly suggest posting to an appropriate forum under OS X Technologies, where Unix and developer gurus hang out.

  • PDFs look different in Adobe reader and Acrobat professional compared to the built in PDF viewer on windows 8

    Hi there,
    I have been trying to narrow down an issue we have been having for some time in printing PDF files and finding that they look different on paper compared to screen.  Up until today our big KIP plotter got the blame, but as I have been collecting notes on a little windows 8 tablet I noted that PDFs opened in the windows PDF viewer have the same visual defects as the printouts.  My example today is that on a CAD drawing there is a small box/frame with a number in their, I tried printing and the frame was completely blacked out.  As a test I tried saving the PDF as a TIFF file from Adobe Acrobat professional and this file had the same fault as the printed copy.  When I open it in the windows 8 pdf viewer I can see that there is a shading within this box that does not show on Adobe Reader (latest version 11.0.10.32), the adobe reader and acrobat pro version both show a white background to the box.  We have been having lots of issues with sections being missing from drawings and overly feint lines.
    I am not sure where to start trying to narrow down why we are getting different results in different PDF readers.  Is there anyone who maybe able to point me in the right direction?  It almost feels like the shading or colour density is not being consistent when PDFs are being opened in different packages.
    Thanks in advance
    Andy

    Some PDF viewers comply with the PDF ISO Standard (ISO 32000) "just enough" while others (such as Adobe's) fully comply.
    As with anything there's a cost to using anything that comes from a "just enough" approach.
    Be well...

  • Conflict between Adobe Acrobat and Adobe Reader and how I fixed it

    For the past 5 years, I have owned Adobe Acrobat version 9, and recently installed Adobe Reader as well (version 10.7). I was previously able to set up Firefox to use Acrobat to display PDF files in the browser without downloading them, but I recently noticed that this was no longer the case. Instead, every PDF file I tried to view was being downloaded instead. I came here to find a solution, and discovered that many other people are having similar problems. I followed the instructions given here (https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them), but found that they were actually UNhelpful. They tell you to turn off the Firefox PDF viewer by editing about:config to disable the file pdfs.js, which is the native Firefox PDF viewer-- but that will cause the PDF file type to disappear from the Tools/Options dialog, so you can't assign it to another program (whether Adobe or anything else). This makes it impossible to assign the Adobe plugin to open PDF files. I did figure out a solution on my own, and wanted to post it here to help other users with the same problem.
    I ultimately learned, through trial and error and a lot of research both here and on Adobe's website, that the root cause of my problem was a conflict in Firefox between Acrobat and Reader. I was able to solve it by upgrading Acrobat, getting rid of Reader and enabling the Firefox PDF viewer so that I could assign the PDF file type to the Acrobat plugin within Firefox. Here are the details of my problem and how I solved it:
    1. Acrobat and Reader conflict with each other in Firefox, but this isn't totally Firefox's fault. It's mostly Adobe's fault, and they pretty much admit it. Specifically, they say that Acrobat and Reader can't coexist on the same machine unless both are version 10 or higher. They tell you to upgrade to solve the problem--but I can't afford to pay for a new version of Acrobat. If you have to keep Acrobat 9.x, Adobe says the lowest version of Reader that will work with it is Reader 11. I couldn't upgrade to this because I have Vista, and Adobe hasn't issued Reader 11 for Vista (and doesn't plan to). I did cheat and download the Win 7 version of Reader 11, but it didn't help.
    2. If you have both Acrobat and Reader, you can choose a setting in Reader to make it the default PDF handler--but Firefox ignores this information and defaults to Acrobat no matter what. (This is the part we can blame Firefox for.) If you have a version of Acrobat which is below 9.5.5, Firefox actually blocks it as a security risk, so the plugin won't work at all, regardless of version number. That's why PDFs are being downloaded through your standalone program instead of being displayed in the browser. If you want to view PDFs in Firefox and keep Acrobat on your computer, you MUST upgrade Acrobat to version 9.5.5 or above.
    3. Unless you can upgrade Acrobat to at least 10.x, GET RID OF READER. As long as you can access Acrobat 9.5.5, it will work fine in Firefox and there's no need for Reader. I never used to have Reader myself, only Acrobat, but it must have been downloaded automatically when Acrobat was blocked by Firefox (which I didn't even realize).
    4. IF YOU NEED TO UPGRADE ACROBAT 9.X TO 9.5.5, YOUR LAST CHANCE IS TODAY--6/26/13. Adobe has announced that today is the "end of life" for the Acrobat 9.x platform, and all support and upgrades will cease after today.
    When I searched for updates by going to Adobe's website, it told me there were none available--but when I checked for them FROM THE ACROBAT PROGRAM ITSELF (Help/Check for updates), I was offered a 300 MB upgrade that took me all the way from version 9.0 to 9.5.5 in one step. (It did take a very long time to download and install.)
    5. Once you have Acrobat 9.5.5, this is how to enable it in Firefox:
    a. INSIDE ACROBAT, set your preference for "Internet" to "view PDF files in browser." Close Acrobat. Close Firefox if it's already open.
    b. Reopen Firefox. Check Tools/Add-Ons/Plugins to make sure the Acrobat plugin is there. Enable it if disabled. Close Firefox.
    If the plugin isn't there at all, repair your Acrobat installation through Control Panel. Then return to Firefox and enable it. Close Firefox.
    c. Reopen Firefox again. Go to Tools/Options and check the list of file types. For the names that contain "Adobe" and "Acrobat," Acrobat should be set as the default program to open them. Select it from the drop-down list if it's not. Continue to scroll through the alphabetical list--you should see another entry called Portable Document Format. If it's there, the default will be "preview in Firefox." You should be able to change this to "Acrobat (in Firefox)" using the drop-down menu. Do NOT pick the option that says "Acrobat"--this is the standalone program and will cause your PDFs to be downloaded.
    If you don't see "Acrobat (in Firefox)" as an option, this means your plugin is not working. Go back and fix it using the instructions above (including repair of Acrobat if necessary).
    d. If you don't see a file type for "Portable Document Format" at all, that means the Firefox PDF viewer is disabled. You must enable it by editing the about:config file. To see it, type about:config in the Firefox address bar. You will get a warning message--just click OK and keep going.
    This file is a long list of statements in alphabetical order. LOOK FOR A STATEMENT THAT SAYS "pdfjs.disabled" with a Boolean value of "true." Select this statement and right-click. A context menu will offer you choices including "Toggle." Select that one, which will change the Boolean value to "false." Exit about:config. Close Firefox.
    e. Now return to Tools/Options, scroll through the list of file types, and you should see "Portable Document Format." Select "Acrobat (in Firefox)" as in the instructions above. Close Firefox.
    f. The first time you try to open a PDF file in Firefox, you may get a dialog box which offers you choices of how to open the file. The first will be Acrobat, but DON'T CHOOSE THAT--it will cause your PDF to download. Instead, go to the choice that says "Open as application/pdf." You don't need to change the program that opens this file type, because your settings are already correct. Your PDF should open in the browser, with the full-featured Acrobat menu (including the option of editing or saving the file).
    I hope other users can benefit from the truly painful experience I had figuring all of this out. Good luck.

    Since it doesn't seem like you are looking for support, locking this thread.

  • Limitation on number of roles in oracle menu or segmentation fault in menu

    Hi All,
    Is there any limitation on the number of roles we can have in oracle menu? We are having around 300 roles created in our menu and after that if we try to add new role we are not able to compile the menu file. In the windows the form builder closes abruptly and in Linux it gives us segmentation fault error. Did anyone face the problem? Also if there is any solution then please provide the same.
    Please let me know.
    Thanks in advance!
    Ashish

    I just wonder how many forms do you have that you needed to create 300 roles. We normally create a role for one set of users. It means you've 300 different set of users for your application !!.

  • Segment fault (Core dump)

    Hi
    when i run the following Pro*c file in Unix Environment im getting the SEGMENTATION FAULT(CORE DUMP) error. I used DBX to debug the code. I couldnt find out the proper reason for this error form the dbx output.
    This is the output i got from DBX.
    *signal SEGV (no mapping at the fault address) in _doprnt at 0xfb98736c*
    *0xfb98736c: _doprnt+0x2798:     stb     %o0, [%o1]*
    I did the showmemuse and show leaks, the output for this commands :
    (dbx) showmemuse
    Checking for memory use...
    Blocks in use report (blocks in use: 575 total size: 328086 bytes)
    Total % of Num of Avg Allocation call stack
    Size All Blocks Size
    ======= ==== ====== ====== =======================================
    134876 41% 30 4495 kpummapg < kghgex
    18098 5% 1 18098 lxldlbb < lxlinit < kpummpin < kpupin < sqgctx < sqgrct < sqlcmex < sqlcxt
    16552 5% 4 4138 kogmapg < kghgex
    16516 5% 4 4129 kogmapg < kogmasg
    12288 3% 6 2048 nlhtnsl < nlhthnew
    10350 3% 5 2070 calloc < nsbGetBFS
    9688 2% 1 9688 kouogini < kouoini < kpuinit0 < kpuinit < sqgctx < sqgrct < sqlcmex < sqlcxt
    8200 2% 1 8200 findbuf < doprnt < _fprintf < main
    8120 2% 4 2030 sqlrlc < sqlcopydfn
    8080 2% 1 8080 kpuinit0 < kpuinit < sqgctx < sqgrct < sqlcmex < sqlcxt < main
    7168 2% 1 7168 calloc < nsgbliuc < nsgblini < niotns < nigcall < osncon < kpuadef < upiini
    7168 2% 3 2389 lxldlod < lxdlobj
    5976 1% 4 1494 sqlrlc < sqlcopydfn
    4640 1% 1 4640 sqlrlc < sqldrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    4640 1% 1 4640 sqlrlc < sqlbrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    4128 1% 1 4128 calloc < nsgbliuc < nsgblini < niotns < nigcall < osncon < kpuadef < upiini
    4024 1% 1 4024 sqlrlc < sqlbrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    3408 1% 1 3408 sqlrlc < sqldrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
    2452 <1% 8 306 calloc < nsmal
    2156 <1% 7 308 calloc < nlemfins
    (dbx) showleaks
    Checking for memory leaks...
    Actual leaks report (actual leaks: 1 total size: 30 bytes)
    Total Num of Leaked Allocation call stack
    Size Blocks Block
    Address
    ====== ====== ========== =======================================
    30 1 0x9c9c8 getOutFileName < main
    Possible leaks report (possible leaks: 0 total size: 0 bytes)
    i know its because of Pad pointer and something related to Pointer or array overflow. But i couldnt find out where exactly happening....
    Following is my Code, please help me to find out the error and what i need to change in my code:
    #ifndef ORA_PROC
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <ctype.h>
    #include <math.h>
    #else
    typedef struct FILE FILE;
    #endif
    /*** Added by TCS Begins ***/
    char getOutFileName(char );
    char getEnvVar(char );
    void prepare_declare_oracle_cursors();
    void get_calendar_dates();
    void get_issues();
    void get_master_cusip_no();
    void get_run_date_finish();
    void get_payments();
    int get_pub_dates();
    void get_rights();
    void get_s_h_meetings();
    void get_special_codes();
    void get_agents();
    void get_currency();
    void get_payment_codes();
    void get_issue_codes();
    void get_standard_footnotes();
    void get_index_codes();
    void get_exchanges();
    void get_tax_codes();
    void get_tenders();
    int check_if_holiday(int );
    void sql_error(int , int , char *);
    void login_error();
    void no_pub_dates();
    void no_cal_dates();
    void no_finish_date();
    void save_payment_footnote(char , char [3],int , char );
    void save_issue_footnote(char );
    int print_footnotes();
    int print_foreign_tax();
    int get_partial_run_time();
    void save_rght_footnotes();
    int print_supplimental();
    int convert_tender_price(char *);
    void pad_s_h_meetings();
    int strip_out_codes(char *);
    char *getSqlLogonString();
    /**** TCS ADD Ends ****/
    EXEC SQL INCLUDE sqlca;
    EXEC SQL INCLUDE ddr_create_all_tapes.h;
    #define TRUE 1
    #define ORA_NOT_FOUND     ( sqlca.sqlcode == 1403 )
    /* The Definitions of SUCCESS and FAILURE were switched to test the
    idea that SUCCESS should be Zero and FAILURE should be Non-Zero
    #define SUCCESS 1
    #define FAILURE 0
    #define SUCCESS 0
    #define FAILURE -1
    #define SYSOK          0
    #define SYSERR          1
    #define DEBUGGING     0
    #define DEBUG_LEVEL     0
    /*     #define DEBUGGING     1
         #define DEBUG_LEVEL     2
    int          first_cal_date;
    int          footnote_count;
    int          foreign_count;
    int          last_cal_date;
    int          total_records;
    int          which_tape = 0;
    char          cusip_table_name[30];
    char          field_type_code;
    char          final_cusip_number[10];
    /**** char          footnote_text[300][300];
    char          foreign_text[60][100]; **** Commented by TCS as per the change request ****/
    /*** Added by TCS as per the change request ***/
    char          footnote_text[200][300];
    char          foreign_text[200][300];
    /*** TCS Add Ends ***/
    char          freq_type_code;
    char          init_cusip_number[10];
    char          rec_type_code;
    char          payment_where_clause[600];
    char          rights_where_clause[600];
    char          tenders_where_clause[600];
    char          s_h_meet_where_clause[600];
    char          last_run_time[18];
    char          supp_info_buffer[321];
    int          call_flag;
    int          tenders_flag;
    int          rights_flag;
    int          s_h_meet_flag;
    int          rght_foot_pos;
    double          hold_double;
    int          hold_int;
    char          hold_char[100];
    int i=0;
    FILE      *fp;
    FILE     pfp;          / this is used for a report file to correspond to
    the partial tape file */
    int main(int argc, char argv[]) / Modified by TCS */
         char          ddr_tape_name[100];
         char          ddr_partial_rpt[100];
         char          copyright_notice[100];
         long           file_position;
         char           *logname;
         /* READ IN PARAMETERS AND SET UP VARIABLES */
         memset (oracle_uid.arr, 0, sizeof(oracle_uid.arr));
    memset (oracle_pwd.arr, 0, sizeof(oracle_pwd.arr));
    strcpy (oracle_uid.arr, argv[1]);
    oracle_uid.len = strlen(oracle_uid.arr);
    strcpy (oracle_pwd.arr, argv[2]);
    oracle_pwd.len = strlen(oracle_pwd.arr);
    printf("Calling getSqlLogonString");
    logname = getSqlLogonString();
         which_tape = atoi(argv[1]);
         memset (last_run_time, 0, sizeof(last_run_time));
         if ( ( DEBUGGING ) && ( DEBUG_LEVEL > 1 ) )
         printf ("Oracle username: %s\n", oracle_uid.arr);
         printf ("Oracle password: %s\n", oracle_pwd.arr);
         printf ("Oracle username/password@database: %s\n", logname); /** Added by TCS **/
         printf ("Which Tape: %d\n", which_tape);
         hold_double = 0.0;
         hold_int = 0;
         memset (hold_char, ' ', sizeof(hold_char));
         EXEC SQL WHENEVER SQLERROR DO login_error();
    /*      EXEC SQL CONNECT :oracle_uid IDENTIFIED BY :oracle_pwd; */
         EXEC SQL CONNECT :logname ;
         printf ("Connected to ORACLE... \n");
         EXEC SQL WHENEVER SQLERROR continue;
         get_pub_dates();
         memset (ddr_tape_name, 0, sizeof(ddr_tape_name));
         memset (ddr_partial_rpt, 0, sizeof(ddr_partial_rpt));
         memset (cusip_table_name, 0, sizeof(cusip_table_name));
         memset (payment_where_clause, 0, sizeof(payment_where_clause));
         memset (rights_where_clause, 0, sizeof(rights_where_clause));
         memset (tenders_where_clause, 0, sizeof(tenders_where_clause));
         memset (s_h_meet_where_clause, 0, sizeof(s_h_meet_where_clause));
         /* SET UP VARIABLES BASED ON THE DIFFERENT FREQUENCY OF TAPE */
         switch (which_tape)
              case 0:
                   get_partial_run_time();
                   /*sprintf (ddr_tape_name,
                        "idb_tape$out:ddr_partial%1d.asc", p_count); ** Comented by TCS **/
                   sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_PARTIAL_TAPE_TABLE");
                   /*sprintf (ddr_partial_rpt,
                        "idb_tape$out:ddr_partial%1d.rpt", p_count); ** Commented by TCS **/
                   sprintf (ddr_partial_rpt,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_RPT")); /* Added by TCS */
                   get_calendar_dates();
                   freq_type_code = '0';
                   sprintf (payment_where_clause,
    "AND PYMT_PUB_DATE IS NULL \
    AND ((PYMT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND PYMT_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (PYMT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND PYMT_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   sprintf (rights_where_clause,
    "AND RGHT_PUB_DATE IS NULL \
    AND ((RGHT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND RGHT_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (RGHT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND RGHT_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   sprintf (tenders_where_clause,
    "AND TNDR_PUB_DATE IS NULL \
    AND ((TNDR_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND TNDR_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (TNDR_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND TNDR_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   sprintf (s_h_meet_where_clause,
    "AND SMTG_PUB_DATE IS NULL \
    AND ((SMTG_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND SMTG_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (SMTG_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
    AND SMTG_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_from.arr, p_to.arr, p_from.arr, p_to.arr);
                   break;
              case 3:
    /*     PARTIAL 5     */
                   get_partial_run_time();
                   p_count = 5;
                   /**sprintf (ddr_tape_name,
                        "idb_tape$out:ddr_partial%1d.asc", p_count); ** Comented by TCS **/
                   sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_ASC")); /* Added by TCS */
    /* for testing only I am using seperate TABLE     */
                   /**strcpy (cusip_table_name,
                        "IDB.DDR_PARTIAL5_TAPE_TABLE"); ** Commented by TCS **/
                   strcpy (cusip_table_name,
                        "IDB.DDR_PARTIAL_TAPE_TABLE");
                   /*sprintf (ddr_partial_rpt,
                        "idb_tape$out:ddr_partial%1d.rpt", p_count); ** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_RPT")); /* Added by TCS */
                   get_calendar_dates();
                   freq_type_code = '3';
                   sprintf (payment_where_clause,
    "AND ( (PYMT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (PYMT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   sprintf (rights_where_clause,
    "AND ((RGHT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (RGHT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   sprintf (tenders_where_clause,
    "AND ((TNDR_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (TNDR_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   sprintf (s_h_meet_where_clause,
    "AND ((SMTG_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
    OR (SMTG_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
    p_to.arr, p_to.arr);
                   break;
              case 1:
                   /**strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_daily_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s",getOutFileName("DDR_DAILY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_DAILY_TAPE_TABLE");
                   get_calendar_dates();
                   freq_type_code = '1';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)", pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)", pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)", pub_to_date.arr);
                   sprintf (s_h_meet_where_clause, "AND (SMTG_PUB_DATE \
    = TO_DATE('%s','DD-MON-RR') OR SMTG_PUB_DATE IS NULL)", pub_to_date.arr);
                   break;
              case 5:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_weekly_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name, "%s",getOutFileName("DDR_WEEKLY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_WEEKLY_TAPE_TABLE");
                   get_calendar_dates();
                   freq_type_code = '2';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   /* ram - 6/28/95 - reverted back to original criteria: */
                   /* include on weekly tape based on pub-date, regardless of */
                   /* whether in calendar or not */
                   sprintf (s_h_meet_where_clause, "AND (SMTG_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR SMTG_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   break;
              case 12:
                   /* ram - 7/13/95          */
                   /* changed monthly "6" to "12" */
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_monthly_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name, "%s", getOutFileName("DDR_MONTHLY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_MONTHLY_TAPE_TABLE");
                   freq_type_code = '3';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   break;
              case 8:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_quarterly_tape.asc");** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s",getOutFileName("DDR_QUARTERLY_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_QUARTERLY_TAPE_TABLE");
                   freq_type_code = '3';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
    = TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr);               break;
              case 9:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_annual_tape.asc"); ** Comented by TCS **/
                   sprintf (ddr_tape_name,"%s", getOutFileName("DDR_ANNUAL_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_ANNUAL_TAPE_TABLE");
                   freq_type_code = '4';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') \
    OR PYMT_PUB_DATE = TO_DATE('29-OCT-1929','DD-MON-YYYY'))",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
    = TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr);               break;
              case 15:
                   /*strcpy (ddr_tape_name,
                        "idb_tape$out:ddr_general_tape.asc"); ** Commented by TCS **/
                   sprintf (ddr_tape_name,"%s", getOutFileName("DDR_GENERAL_TAPE_ASC")); /* Added by TCS */
                   strcpy (cusip_table_name,
                        "IDB.DDR_GENERAL_TAPE_TABLE");
                   freq_type_code = '3';
                   sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
    BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
    pub_from_date.arr, pub_to_date.arr);
                   sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
    = TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr);               break;
              default:
                   exit (printf ("Invalid tape option: %d\n", which_tape)); /*** %s changed by TCS to %d ***/
                   break;
         if ((fp = fopen(ddr_tape_name, "w+")) == NULL)
              exit (printf ("Unable to open asc <%s> file for write access\n",
                   ddr_tape_name));
    /*     GR. Partial 5
         if (which_tape == 0 || which_tape == 3 )
              if ((pfp = fopen(ddr_partial_rpt, "w+")) == NULL)
                   exit (printf ("Unable to open asc <%s> file \
    for write access\n", ddr_partial_rpt));
         /* WRITE THE HEADER RECORD ON THE TAPE */
         memset (copyright_notice, 0, sizeof(copyright_notice));
         sprintf (copyright_notice, "COPYRIGHT (c) %.4s STANDARD & POOR'S \
    CORPORATION. ALL RIGHTS RESERVED", year.arr);
         fprintf (fp, "%-80.80sDIVIDEND%8d%17.17s ",
    copyright_notice, control_date, run_date_start.arr);
         file_position = ftell(fp);
         fprintf (fp, "\n");
         total_records = 0;
         /* GET THE SPECIAL CATEGORY RECORDS */
         get_special_codes();
         /* SELECT FROM THE DRIVER TABLE TO GET ALL THE OTHER RECORDS */
         get_master_cusip_no();
         printf("After get_master_cusip_no()");
         get_run_date_finish();
         printf("After get_run_date_finish()");
         if ( DEBUGGING )
              printf ("initial cusip = %s\n", init_cusip_number);
              printf ("final cusip = %s\n", final_cusip_number);
              printf ("record type is %c\n", rec_type_code);
         /* WRITE THE TRAILER RECORD */
         fprintf (fp, "%8d%-17.17s%07d%-9.9s1%-9.9s%c\n", control_date,
    run_date_finish.arr, total_records, init_cusip_number , final_cusip_number,
    rec_type_code);
         /* re-wind and add to the header record ... */
         rewind(fp);
         fseek(fp, file_position - 33, 0);
         fprintf (fp, "%07d%-9.9s1%-9.9s%c", total_records, init_cusip_number,
    final_cusip_number, rec_type_code);
         fclose(fp);
    /*     GR Partial 5
         if (which_tape == 0 || which_tape == 3 )
              fclose(pfp);
         printf ("\nDONE: %07d%-9.9s1%-9.9s%c\n", total_records, init_cusip_number,
    final_cusip_number, rec_type_code);
    return (0); /*** Added by TCS ***/
    void prepare_declare_oracle_cursors() /* Modified by TCS */
         /* We'll us dynamic sql to get the appropriate where clause but use */
         /* a bind variable for the master cusip number. So we prepare and */
         /* declare get_issues, get_payments, get_tenders, get rights, and */
         /* get_s_h_meetings cursors only once, outside the driving loop. */
         EXEC SQL BEGIN DECLARE SECTION;
              /**** TCS Comment begins as per the change request ****
              VARCHAR          sql_stmt1[1500];*/     /* issues */
              /*VARCHAR          sql_stmt2[3000];     *//* payments */
              /*VARCHAR          sql_stmt3[500];          *//* tenders */
              /*VARCHAR          sql_stmt4[500];          *//* rights */
              /*VARCHAR          sql_stmt5[500];          *//* s_h_meetings */
              /**** TCS Add begins as per the change request ****/
              VARCHAR          sql_stmt1[2000];     /* issues */
              VARCHAR          sql_stmt2[4000];     /* payments */
              VARCHAR          sql_stmt3[1000];     /* tenders */
              VARCHAR          sql_stmt4[1000];     /* rights */
              VARCHAR          sql_stmt5[1000];     /* s_h_meetings */
              /**** TCS Add ends ****/
         EXEC SQL END DECLARE SECTION;
         /* prepare and declare the get_issues cursor */
         memset (sql_stmt1.arr, 0, sizeof(sql_stmt1.arr));
         sprintf (sql_stmt1.arr, "SELECT \
    A.ISSU_PAR_VALUE, \
    DECODE (A.ISSU_MARKET_SYMBOL||A.ISSU_NASDAQ,'OTCY','NASD', A.ISSU_MARKET_SYMBOL), \
    A.ISSU_C_RATE, A.ISSU_C_FREQ, A.ISSU_C_NEW_AMOUNT, A.ISSU_C_NEW_Q1, \
    A.ISSU_C_NEW_Q2, A.ISSU_C_NEW_Q3, A.ISSU_C_OLD_AMOUNT, A.ISSU_C_OLD_Q1, \
    A.ISSU_C_OLD_Q2, A.ISSU_C_OLD_Q3, A.ISSU_CURRENCY, \
    A.ISSU_UPD_HIS, A.ISSU_COMMENT, A.TAX_EXEMPT_FLAG,\
    B.SEC_TYPE_CODE, B.ACQ_BY_IND, B.ACQ_ISSUER_NO, \
    rtrim(substr(B.ACQ_ISSUER_DESCR,1,30)), \
    B.INDEX_CODE, B.TRFR_AGT_CODE, B.NY_AGT_CODE, B.TICKER_SYMBOL, \
    B.TICKER_SYMBOL2, \
    rtrim(substr(C.ISSR_DDR_ISSUER_DESCR,1,60)), \
    rtrim(substr(E.ISSUE_DESCR,1,30)), \
    rtrim(substr(D.ISSUER_DESCR1,1,30)), \
    F.TRFR_DAYS \
    FROM IDB.DDR_ISSUES A, IDB.DDR_ISSUES_2 B, IDB.DDR_ISSUERS C, \
    BLIS.CUSIP_ISSUERS D, BLIS.CUSIP_ISSUES E, IDB.DDR_TRANSFER F \
    WHERE A.ISSU_CUSIP_NO = :master_cusip_no \
    AND A.ISSU_CUSIP_NO = B.ISSU_CUSIP_NO(+) \
    AND SUBSTR(A.ISSU_CUSIP_NO, 1, 6) = C.ISSR_ISSUER_NO(+) \
    AND SUBSTR(A.ISSU_CUSIP_NO, 1, 6) = D.ISSUER_NO \
    AND A.ISSU_CUSIP_NO = E.CUSIP_NO \
    AND A.ISSU_TRANSFER_CODE = F.TRFR_TR_CD(+) ");
         sql_stmt1.len = strlen(sql_stmt1.arr);
         EXEC SQL PREPARE ISSUES FROM :sql_stmt1;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing ISSUES");
         EXEC SQL DECLARE ISSUES_C CURSOR FOR ISSUES;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring ISSUES");
         /* now the get_payments cursor */
         memset (sql_stmt2.arr, 0, sizeof(sql_stmt2.arr));
         sprintf (sql_stmt2.arr, "SELECT \
    a.PYMT_RP_DIV, \
    a.PYMT_RP_DEC, \
    a.PYMT_RP_EXD, \
    a.PYMT_RP_REC, \
    a.PYMT_RP_PAY, \
    a.PYMT_RP_DUE, \
    a.PYMT_RP_TAX, \
    a.PYMT_RP_ANN, \
    a.PYMT_PRP_DIV, \
    a.PYMT_PRP_DEC, \
    a.PYMT_PRP_EXD, \
    a.PYMT_PRP_REC, \
    a.PYMT_PRP_PAY, \
    a.PYMT_PRP_DUE, \
    a.PYMT_PRP_TAX, \
    a.PYMT_PRP_ANN, \
    NVL(a.PYMT_SEQ_NO,0), \
    TO_CHAR(a.PYMT_DECLARED, 'YYMMDD'), \
    TO_CHAR(a.PYMT_EX_DATE, 'YYMMDD'), \
    TO_CHAR(a.PYMT_STK_REC, 'YYMMDD'), \
    TO_CHAR(a.PYMT_TRANSFER_DATE, 'YYMMDD'), \
    TO_CHAR(a.PYMT_PAYABLE, 'YYMMDD'), \
    a.PYMT_CODES, \
    NVL(a.PYMT_CASH_DIVD,0.0), \
    NVL(b.ORDINARY_INCOME,0.0), \
    NVL(b.CAP_GAINS,0.0), \
    NVL(b.SHORT_TM_CAP_GAINS,0.0), \
    NVL(b.LONG_TM_CAP_GAINS,0.0), \
    NVL(b.RETURN_OF_CAPITAL,0.0), \
    b.STK_DIVD_IND, \
    NVL(a.PYMT_STK_DIVD,0), \
    b.FRAC_IN_CASH_STK_IND, \
    NVL(b.FRAC_IN_CASH_PRICE,0.0), \
    NVL(a.PYMT_SPLIT_NEW,0), \
    NVL(a.PYMT_SPLIT_OLD,0), \
    TO_CHAR(a.PYMT_DB_DATE, 'YYMMDD'), \
    NVL(b.ARREARS_PAID,0.0), \
    NVL(b.ARREARS_DUE,0.0), \
    b.SPINOFF_IND, \
    b.SPINOFF_ISSUE_NO, \
    b.SPINOFF_ISSUER_DESCR, \
    b.SPINOFF_ISSUE_DESCR, \
    NVL(b.TAX_CODE,0), \
    NVL(b.TAX_CODE_2,0), \
    NVL(b.OLD_SEQ_NO,0), \
    b.ORDINARY_INCOME_CODE, \
    b.CAP_GAINS_CODE, \
    b.SHORT_TM_CAP_GAINS_CODE, \
    b.LONG_TM_CAP_GAINS_CODE, \
    b.RETURN_OF_CAPITAL_CODE, \
    TO_CHAR(b.CALL_DATE, 'YYMMDD'), \
    NVL(b.CALL_PRICE,0.0), \
    b.CALL_PRICE_CURRENCY, \
    b.CALL_AGT_NO, \
    b.ACCRUED_DIVD_IND, \
    TO_CHAR(a.PYMT_DB_DATE, 'YYMMDD'), \
    a.PYMT_DB_TEXT, \
    a.PYMT_DVD_TEXT, \
    a.PYMT_YEAR, \
    TO_CHAR(a.PYMT_STK_REC, 'fmMon dd'), \
    TO_CHAR(a.PYMT_DB_DATE, 'fmMon dd'), \
    b.NY_CALL_AGT_NO, \
    NVL(b.FOREIGN_TAX_RATE, 0.0), \
    NVL(b.NET_RATE, 0.0), \
    NVL(b.FEE, 0.0), \
    NVL(b.COMMISSION, 0.0), \
    a.PYMT_CASH_DIVD_FNS, \
    a.PYMT_STK_DIVD_FNS, \
    a.PYMT_DECLARED_FNS, \
    a.PYMT_EX_DATE_FNS, \
    a.PYMT_STK_REC_FNS, \
    a.PYMT_PAYABLE_FNS, \
    a.PYMT_SPLIT_FNS, \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_PUB_DATE, 'YYYYMMDD')), 0), \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_TRANSFER_DATE, 'YYYYMMDD')), 0), \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_STK_REC, 'YYYYMMDD')), 0), \
    NVL (TO_NUMBER (TO_CHAR(a.PYMT_DB_DATE, 'YYYYMMDD')), 0) \
    FROM IDB.DDR_PAYMENTS A, IDB.DDR_PAYMENTS_2 B \
    WHERE A.PYMT_CUSIP_NO = :master_cusip_no \
    AND A.PYMT_CUSIP_NO = B.PYMT_CUSIP_NO (+) \
    AND A.PYMT_SEQ_NO = B.PYMT_SEQ_NO (+) \
    AND NVL(INSTR(A.PYMT_CODES,'CO'),0) NOT IN (1,3,5,7,9,11) ");
         strcat (sql_stmt2.arr, payment_where_clause);
         sql_stmt2.len = strlen(sql_stmt2.arr);
         EXEC SQL PREPARE PAYMENTS FROM :sql_stmt2;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing PAYMENTS");
         EXEC SQL DECLARE PAYMENTS_C CURSOR FOR PAYMENTS;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring PAYMENTS");
         /* now the get_tenders cursor */
         memset (sql_stmt3.arr, 0, sizeof(sql_stmt3.arr));
    /* FXL ADD SUBSTR to tndr_price_qual: substr(A.TNDR_PRICE_QUAL,1,14), 3/23/99,
    to to_number 3/29/99 */
         sprintf (sql_stmt3.arr, "SELECT \
    B.TNDR_AGT_NO, \
    B.NY_AGT_NO, \
    TO_CHAR(A.TNDR_TENDER_DATE, 'YYMMDD'), \
    A.TNDR_PRICE, \
    to_number(A.TNDR_PRICE_QUAL), \
    A.TNDR_TE_SIZE, \
    TNDR_TE_TEXT_1 \
    FROM IDB.DDR_TENDERS A, IDB.DDR_TENDERS_2 B \
    WHERE TNDR_CUSIP_NO = :master_cusip_no \
    AND TNDR_CUSIP_NO = TNDR_ISSUE_NO(+) \
    AND A.TNDR_TENDER_DATE = B.TNDR_TENDER_DATE(+) ");
         strcat (sql_stmt3.arr, tenders_where_clause);
         sql_stmt3.len = strlen(sql_stmt3.arr);
         EXEC SQL PREPARE TENDERS FROM :sql_stmt3;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing TENDERS");
         EXEC SQL DECLARE TENDERS_C CURSOR FOR TENDERS;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring TENDERS");
         /* now the get_rights cursor */
         memset (sql_stmt4.arr, 0, sizeof(sql_stmt4.arr));
    /* ADD TO_CHAR(A.RGHT_DB_DATE, 'YYMMDD') */
         sprintf (sql_stmt4.arr, "SELECT \
    B.NO_RIGHTS_ISSUED, \
    B.SHS_REQ_FOR_PURCH, \
    B.RGHTS_REQUIRED, \
    B.QTY_SHS_PURCHASED, \
    B.TYPE_SHS_ELIGIBLE, \
    B.NEW_SHS_CUSIP_NO, \
    B.NEW_CO_ISSUER_DESCR, \
    TO_CHAR(A.RGHT_RECORD, 'YYMMDD'), \
    TO_CHAR(A.RGHT_EX_DATE, 'YYMMDD'), \
    TO_CHAR(B.NYC_RECORD_DATE, 'YYMMDD'), \
    TO_CHAR(A.RGHT_EXPIRE, 'YYMMDD'), \
    TO_CHAR(A.RGHT_DB_DATE, 'YYMMDD'), \
    A.RGHT_PRICE, \
    NVL(A.RGHT_RECORD_FNS,' '), \
    NVL(A.RGHT_EXPIRE_FNS,' '), \
    NVL(A.RGHT_EX_DATE_FNS,' '), \
    NVL(A.RGHT_PRICE_FNS,' '), \
    NVL(A.RGHT_BASIS_FNS,' '), \
    A.RGHT_FOOTNOTE, \
    B.US_INELIGIBILITY_IND, \
    B.RGHT_TRFR_IND \
    FROM IDB.DDR_RIGHTS A, IDB.DDR_RIGHTS_2 B \
    WHERE RGHT_CUSIP_NO = :master_cusip_no \
    AND RGHT_CUSIP_NO = RGHT_ISSUE_NO(+) \
    AND A.RGHT_RECORD = B.RGHT_RECORD_DATE(+) ");
         strcat (sql_stmt4.arr, rights_where_clause);
         sql_stmt4.len = strlen(sql_stmt4.arr);
         EXEC SQL PREPARE RIGHTS FROM :sql_stmt4;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in preparing RIGHTS");
         EXEC SQL DECLARE RIGHTS_C CURSOR FOR RIGHTS;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring RIGHTS");
         /* ram - added logic on 7/18/95 */
         /* for the standard footnotes cursor */
         EXEC SQL DECLARE STANDARD_FOOTNOTES_C CURSOR
         FOR
         SELECT SFTN_S_F_TEXT, SFTN_S_F_TYPE
         FROM IDB.DDR_STANDARD_FOOTNOTES
         WHERE SFTN_S_F_TYPE = :standard_footnote_type;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring STANDARD_FOOTNOTES");
         /* now the issue footnotes cursor */
         EXEC SQL DECLARE ISSUE_FOOTNOTES_C CURSOR
         FOR
         SELECT FTNT_F_TEXT, FTNT_F_TYPE
         FROM IDB.DDR_FOOTNOTES
         WHERE FTNT_CUSIP_NO = :master_cusip_no
         AND FTNT_SYMBOL = :footnote_symbol
         AND FTNT_YEAR IS NULL;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring ISSUE_FOOTNOTES");
         /* now the payment footnotes cursor */
         EXEC SQL DECLARE PAYMENT_FOOTNOTES_C CURSOR
         FOR
         SELECT FTNT_F_TEXT, FTNT_F_TYPE
         FROM IDB.DDR_FOOTNOTES
         WHERE FTNT_CUSIP_NO = :master_cusip_no
         AND FTNT_SYMBOL = :footnote_symbol
         AND FTNT_YEAR = :footnote_year;
         if (sqlca.sqlcode)
              sql_error (SYSERR, sqlca.sqlcode,
                   "Error in declaring PAYMENT_FOOTNOTES");
         /* now the get_s_h_meetings cursor */
         /* ONLY for certain tape types. */
    /*     GR PARTial 5
         if (which_tape == 0 || which_tape == 3 || which_tape == 1 || which_tape == 5)
              memset (sql_stmt5.arr, 0, sizeof(sql_stmt5.arr));
              /* ram - 6/15/95 - changed ORigunal to smtg */
              /* TO_CHAR(ORIGINAL_REC_DATE, 'YYMMDD'), \ */
              sprintf (sql_stmt5.arr, "SELECT \
    TO_CHAR(SMTG_MTG_DATE, 'YYMMDD'), \
    TO_CHAR(SMTG_REC_DATE, 'YYMMDD'), \
    SMTG_FOOTNOTE \
    FROM IDB.DDR_S_H_MEETINGS \
    WHERE SMTG_CUSIP_NO = :master_cusip_no ");
              strcat (sql_stmt5.arr, s_h_meet_where_clause);
              sql_stmt5.len = strlen(sql_stmt5.arr);
              EXEC SQL PREPARE S_H_MEET FROM :sql_stmt5;
              if (sqlca.sqlcode)
                   sql_error (SYSERR, sqlca.sqlcode,
                        "Error in preparing S_H_MEET");
              EXEC SQL DECLARE S_H_MEET_C CURSOR FOR S_H_MEET;
              if (sqlca.sqlcode)
                   sql_error (SYSERR, sqlca.sqlcode,
                        "Error in declaring S_H_MEET");
         } /* end of if (which_tape == 0 || which_tape == 1 || which_tape == 5) */
    /* replaced get_calendar_dates function with use of PLSQL - ram - 5/24/95 */
    void get_calendar_dates() /* Modified by TCS */
         /* put first and last calendar dates into global ints */
         /* first_cal_date and last_cal_date (YYYYMMDD) using */
         /* ddr package function get_business_days. */
         /* The package object ddr is owned by idb, so I'll */
         /* specify this, just in case accounts other than idb */
         /* run this code. (EXECUTE priviledge is granted to */
         /* "idb_user" role.) */
    EXEC SQL BEGIN DECLARE SECTION;
              int          cal_start;
              int          cal_end;
              int          return_val;
    EXEC SQL END DECLARE SECTION;
         /* initialize destination globals */

    You actually need to run it with "check -access"; memuse and leaks won't help with the crash, which happens because of illegal memory access. Hopefully, "check -access" will help you to locate the bad guy, but that's not panacea either.
    To be precise:
    - start dbx
    $ dbx <your app>
    - issue
    (dbx) check -access
    (dbx) run
    and wait for dbx to stop and report suspicious memory access.

Maybe you are looking for