Discover is showing UMRs when using getaddrinfo/getnameinfo

Hi,
I started playing with the discover (Studio 12.4, Solaris 11.2, x86) tool to check my apps for memory errors etc.
I noticed that I get UMR warnings/errors when using the getaddrinfo()/getnameinfo() socket functions. Why?
me@solaris11_2_x86:/tmp $ cat getaddrinfo.c
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
int
main(void)
    struct addrinfo *result, *res;
    int error;
    error = getaddrinfo("www.oracle.com", NULL, NULL, &result);
    for (res = result; res != NULL; res = res->ai_next)
        char hostname[NI_MAXHOST];
        error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
        if (*hostname != '\0')
            printf("hostname: %s\n", hostname);
    freeaddrinfo(result);
    return 0;
me@solaris11_2_x86:/tmp $ cc -g getaddrinfo.c -lsocket
me@solaris11_2_x86:/tmp $ discover -w - a.out
me@solaris11_2_x86:/tmp $ ./a.out
ERROR 1 (UMR): accessing uninitialized data "result" at address 0xfeffe650 (4 bytes) on the stack at:
        main() + 0x141  <getaddrinfo.c:14>
                11:        int error;
                12:
                13:        error = getaddrinfo("www.oracle.com", NULL, NULL, &result);
                14:=>      for (res = result; res != NULL; res = res->ai_next)
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
        _start() + 0x71
ERROR 2 (UMR): accessing uninitialized data "*(result + 16)" at address 0x8080518 (4 bytes) on the heap at:
        main() + 0x247  <getaddrinfo.c:18>
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
                18:=>          error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
                19:            if (*hostname != '\0')
                20:                printf("hostname: %s\n", hostname);
                21:        }
        _start() + 0x71
    was allocated at (32 bytes):
        get_addr() + 0x22f
        _getaddrinfo() + 0x496
        getaddrinfo() + 0x1e
        main() + 0xee  <getaddrinfo.c:13>
                10:        struct addrinfo *result, *res;
                11:        int error;
                12:
                13:=>      error = getaddrinfo("www.oracle.com", NULL, NULL, &result);
                14:        for (res = result; res != NULL; res = res->ai_next)
                15:        {
                16:            char hostname[NI_MAXHOST];
        _start() + 0x71
ERROR 3 (UMR): accessing uninitialized data "*(result + 24)" at address 0x8080520 (4 bytes) on the heap at:
        main() + 0x289  <getaddrinfo.c:18>
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
                18:=>          error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
                19:            if (*hostname != '\0')
                20:                printf("hostname: %s\n", hostname);
                21:        }
        _start() + 0x71
    was allocated at (32 bytes):
        get_addr() + 0x22f
        _getaddrinfo() + 0x496
        getaddrinfo() + 0x1e
        main() + 0xee  <getaddrinfo.c:13>
                10:        struct addrinfo *result, *res;
                11:        int error;
                12:
                13:=>      error = getaddrinfo("www.oracle.com", NULL, NULL, &result);
                14:        for (res = result; res != NULL; res = res->ai_next)
                15:        {
                16:            char hostname[NI_MAXHOST];
        _start() + 0x71
ERROR 4 (PIR): accessing partially initialized data at address 0x8084cd5 (51 bytes) on the heap at:
        __mappedtov4() + 0x134
        getipnodebyaddr() + 0x179
        getnameinfo() + 0xbd
        main() + 0x2b1  <getaddrinfo.c:18>
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
                18:=>          error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
                19:            if (*hostname != '\0')
                20:                printf("hostname: %s\n", hostname);
                21:        }
        _start() + 0x71
    was allocated at (8500 bytes):
        __IPv6_alloc() + 0x39
        getipnodebyaddr() + 0x95
        getnameinfo() + 0xbd
        main() + 0x2b1  <getaddrinfo.c:18>
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
                18:=>          error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
                19:            if (*hostname != '\0')
                20:                printf("hostname: %s\n", hostname);
                21:        }
        _start() + 0x71
ERROR 5 (PIR): accessing partially initialized data at address 0x8086e51 (51 bytes) on the heap at:
        getnameinfo() + 0xf5
        main() + 0x2b1  <getaddrinfo.c:18>
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
                18:=>          error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
                19:            if (*hostname != '\0')
                20:                printf("hostname: %s\n", hostname);
                21:        }
        _start() + 0x71
    was allocated at (8500 bytes):
        __IPv6_alloc() + 0x39
        __mappedtov4() + 0x53
        getipnodebyaddr() + 0x179
        getnameinfo() + 0xbd
        main() + 0x2b1  <getaddrinfo.c:18>
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
                18:=>          error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
                19:            if (*hostname != '\0')
                20:                printf("hostname: %s\n", hostname);
                21:        }
        _start() + 0x71
hostname: a23-43-22-140.deploy.static.akamaitechnologies.com
ERROR 6 (UMR): accessing uninitialized data "*(result + 28)" at address 0x8080524 (4 bytes) on the heap at:
        main() + 0x37a  <getaddrinfo.c:14>
                11:        int error;
                12:
                13:        error = getaddrinfo("www.oracle.com", NULL, NULL, &result);
                14:=>      for (res = result; res != NULL; res = res->ai_next)
                15:        {
                16:            char hostname[NI_MAXHOST];
                17:
        _start() + 0x71
    was allocated at (32 bytes):
        get_addr() + 0x22f
        _getaddrinfo() + 0x496
        getaddrinfo() + 0x1e
        main() + 0xee  <getaddrinfo.c:13>
                10:        struct addrinfo *result, *res;
                11:        int error;
                12:
                13:=>      error = getaddrinfo("www.oracle.com", NULL, NULL, &result);
                14:        for (res = result; res != NULL; res = res->ai_next)
                15:        {
                16:            char hostname[NI_MAXHOST];
        _start() + 0x71
***************** Discover Memory Report *****************
No allocated memory left on program exit.
DISCOVER SUMMARY:
        unique errors   : 6 (6 total)
        unique warnings : 0 (0 total)

Hi,
Thanks for reporting the issue.
Discover instruments the target binary and dependent libraries in order to correctly identify memory errors. For this particular program, the dependent library libsocket.so does not have compiler annotations and so cannot be instrumented by Discover. The current solution for such library function calls is to do interpositions instead. I have created Bug#20139045 against Discover to add support for these functions. In the future releases, we may have more general solutions. Stay tuned.
- Discover engineer

Similar Messages

  • Feature Request: Continue to show Info when using Crop tool

    Way, way back, I don't remember how many versions in the past, Info would continue to show numbers when using the Crop tool. I was hoping this might return in CS6, but it does not seem to be the case. I found this feature very useful when cropping product shots on a white background, which have a shadow and/or reflection at the base of the product. I don't want to crop into the shadow/reflection, but as they fade to white they get very light, of course, and difficult to see. I know I can make guides, etc., but I'd still love to have that feature return.
    Thanks in advance,
    Dan Clark
    www.weinberg-clark.com

    Yes, the Info panel. After making a selection (or whatever you want to call it) with the Crop tool, there are no longer any RGB or CMYK values (depends on what your preferences are set to, of course) in the Info panel. PS used to display values when using the Crop tool, but hasn't for quite a few versions.
    Dan Clark
    www.weinberg-clark.com

  • Tecra A9 - external Monitor shows stripes when using the Laptop pluged.

    Hello
    I've heard about at least 3 Tecras A9 witch produces stripes on the external Monitor only when the Laptop is pluged. When using the Laptop with the battery, the Monitor works just fine. they tried to divide the cables of the Monitor and the power supply as far as possible, but still the same problem. When using the Laptop with a non-toshiba-AC Adaptor, the external Monitor is working fine.

    Hello
    In my opinion you should visit nearest authorized Toshiba service provider. They can connect your Tecra to external monitors and test it. If the result is the same I am pretty sure you will get AC adapter replacement for free.
    Do not wait and discuss for days here. Contact them and I hope they will help you.

  • REPOST:Timing does not show up when using custom templates

    all,
    When I create an unstructured template and use it in a report with show timing set to true, the timing does not show up.
    any tips

    Correcting my previous reply,
    Timing will NOT show if you are using custom template.
    null

  • External drive doesn't show volume when used internally (and vv)

    I have an early 2011 MBP 17" where I have replaced the optical drive with the 750G hard drive that came with the computer. in the hard drive spot I put in an SSD. Recently I got a 1T 2.5" drive and I want to copy all the files from the internal 750G to the 1T and then put the 1T in the optical drive bay to replace the 750G.
    I got everything copied to the 1T drive via USB - i put the drive in a USB 3.0 enclosure that I've used before with this machine. everything copied fine. so i swapped out the 750G for the 1T in the laptop. when I booted up, the drive did now show in the finder. in Disk Utility it shows up as a device and the indented volume is a greyed out and showing a system volume designation (something like disk3d or whatever the OS uses for this [I didn't make note of the specific volume name]). when I put the disk back in the USB enclosure, it worked fine.
    So i formatted the 1T in the macbook, interally, and it works fine that way. but when I put the 750G in the external enclosure, thinking I could copy the files that way [external to internal]) - the 750G does the same thing: the device shows up ok in Disk Utility but the volume is grey and shows as an OS volume name. like the 1T I am not able to mount it or do anything other than format it.
    So I am at a loss. why can I not copy files to an external drive and put that in the machine internally? this is the way I've done this kind of thing over the years. this is the first time I am doing this with the MBP. what can I do in order to get this to work so I can get all the files on the 750G onto the 1T and work in my MBP?
    I know I can leave the 750G in the computer, connect a drive and copy it all over to it. then put the 1T in the computer and copy all the files off the external drive to the 1T. likely this would work. however a) i don't have a large enough external drive to do this with and b) i'd like to understand what is going on here and solve it as i may need to do this in the future.
    any ideas?
    thanks!

    How did you backup your internal hard drive to the external?  In order to boot a Macintosh has to be partitioned using the GUID scheme and then formatted as Mac OS extended Journaled. Both operations are performed in Disk Utility. You can clone your drive to to the external using a utility such as Carbon Copy Cloner or Super Duper. I'm not sure what you expect to accomplish without install discs. When you clone a drive you're making an exact copy. You shoud probably look at calling Apple and requesting a set of original discs or purchase a full install of Snow Leopard at http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • Only background image showing up when using DVI - RVA

    I'm trying to connect my macbook pro to my TV...I'm using the yellow RVA video cable... When I connect the cables my background image will show up on the TV, but none of my icons will. The image just stays there no matter what I open up on the screen.
    Andy suggestions?

    Are you using 'Extended Desktop' (sounds like you are) or 'Mirroring' (in which case the same image should show on both screens) ?

  • Photos on timeline showing black when using ken burns effect

    My photos in the project are not visible in the preview window when selecting'show settings' after the ken burns effect has been applied. The arrow moves but the screen is black.
    Any ideas ??

    Although you've posted in the iMovie 5 forum, that sounds like a well-known iMovie 6 bug. If you are using iMovie 6 you may have encountered the bug:
    http://discussions.apple.com/thread.jspa?threadID=714698&tstart=0
    Karl

  • Navigator thumbnail turns green instead of showing image when using Crop

    I am very news to photoshop  and I am using  CS4 and have experienced a problem today that I have not encountered before.l  When cropping a picture just a small green box with the normal red outline exists in Navigator howeverf if I click on Histroy the original pictgure will show back up on photoshop.  Please tell what is causing this and how to fix it.
    for the first three weeks I did not have a probloem with this issue,  I am trying to get a fell for photoshop and then upgrade to the newest edition.  Thank you, 
    Message title was edited by: Brett N

    This is definitely abnormal behavior, so I am moving this thread out of the Beginners forum.
    Generally, behavior like this is caused by issues with a video driver. Make sure you have the most up to date drivers installed for your video card, as downloaded from your manufacturers web site.

  • PDf shows black when using PMS color

    I made a file for a postcard using 1PMS color & bk in ID6. When i exported to make a pdf - all looks fine.
    when i went to mai to client and i previewed in email b4 i sent, it appeared bk only. I snet to clent and the PMS show black. Any suggestions?

    I can't replicate your problem. Here's a PantoneReflexBlue PDF/X-4
    http://www.zenodesign.com/forum/REFLEX.pdf
    This is a long shot but did you rename the new X-4 pdf? If it has the same name maybe the old version is somehow being cached on your client's machine.
    The preview won't matter for the printer—it doesn't affect the separation when the job is spot color.

  • Why are java windows showing transparency when using the Aero Peak Themes in windows 7 home premium

    I'm using Windows 7 home premium version. When I choose an "Aero Theme" selected from Control Panel/All Control Panel Items/Personalization, Java windows become transparent. I.E. the java content showing with the widows desktop image showing also. When choosing a regular theme, the java window is normal. The problem does not occur when running Firefox in "safe mode".

    I'm using Windows 7 home premium version. When I choose an "Aero Theme" selected from Control Panel/All Control Panel Items/Personalization, Java windows become transparent. I.E. the java content showing with the widows desktop image showing also. When choosing a regular theme, the java window is normal. The problem does not occur when running Firefox in "safe mode".

  • Outlined version of my watermark shows up when using Brush tool.

    When I try to use the brush tool when in Actions, an outlined version of my watermark shows up on my image instead of the brush applying the Action.  I do not know what I did but it is super frustrating... how do I remove?  Help!

    Try saving your watermark as PNG24 which will preserve any transparency.
    Use File >> Save For Web
    Choose PNG24 as the file type and save
    Then use Edit >> Define Brush to create and save a new brush with that image.

  • Not all emails are showing up when using a contact group

    Hi,
    I haven't seen a similar question posted to the forum, so hopefully someone can help me.
    I have a MBP running Mavericks 10.9.5 and I'm trying to create a contact group to expedite emails. I've created the group in my mac's contact app, however when I select the group to email (regardless of if I select "send email to..." in contacts or do a search for the group directly in the To:  line of the email) only 2 of the 6 contacts in the group show up.
    Some troubleshooting I've already tried:  adding the same group to all the accounts in the contacts app (i.e. iCloud, On My Mac and my personal email account); verifying there's only one email address shown in each of the individual contact cards; switching all the email address labels from "email" to "home" in each contact person's card; and the classic restart.
    It's always the same 2 contacts of the 6 that show up, so I'm assuming there must be something those two have the the others don't. I appreciate any ideas on what else to try.
    Thanks!

    Thanks. I had the first row colored as a header but it wasn't defined as a header. As soon as I did that within Numbers the table appeared.

  • Album Art does not show up when using shuffle.

    When I turn on shuffle in my 80gb Classic the album art does not show up.
    It is about 50/50 some songs will show art and some will not. The art that did not show up the last time I shuffled will show up this time. It is not consistant. When I am not in shuffle the art always shows up just fine.
    Anyone having this problem? Any ideas on how to stop this from happening? Thanks, Robert

    You might also recreate your iTunes library on your computer... and then when you connect your iPod you should be presented with a dialogue asking you to erase & sync the iPod. Click the erase & sync button (provided your songs are still in iTunes).
    Here's how to recreate your library:
    http://support.apple.com/kb/HT1451
    CG

  • Dreamweaver CC 2014.1: Auto uppercase on " nobr " closeing tag showing " /NOBR " when using tag wrap shortcut.

    Using the tag wrap shortcut (Command/Ctrl + T) works well. But, I've had to use <nobr> to wrap non-breaking text. This is useful for working on HTML emails and this always leaves the with uppercase letters in the ending tag like this, "</NOBR>".
    I understand that the <nobr> tag is outdated but Email HTML usually forces us to write code like this frequently.
    Any ideas why?
    I'm using Adobe Dreamweaver CC 2014.1

    It's curious. But I often do HTML emails and have never had (or felt the need) to use this antique tag. Can you substitute CSS's white-space:nowrap instead? Anyhow, why do you object to the uppercase closing tag? Esthetics?

  • SharePoint Online Personal Outlook 2013 Email Inbox, Task, My Contacts Not Showing Up when using add web part

    I am trying to connect my Outlook 2013 Inbox to SharePoint Online. I keep getting these errors all over the place. See the screen shot.
    Arjun Tank [email protected] Iron Cove Solutions

    Hi Arjun, take a look at this article:
    http://blogs.technet.com/b/lystavlen/archive/2012/05/29/outlook-web-app-in-sharepoint-online.aspx
    Dimitri Ayrapetov (MCSE: SharePoint)

Maybe you are looking for

  • Index issue with or and between when we set one partition index to unusable

    Need to understand why optimizer unable to use index in case of "OR" whenn we set one partition index to unusable, the same query with between uses index. “OR” condition fetch less data comparing to “BETWEEN” still oracle optimizer unable to use inde

  • Valuation type with batch management.

    Dear all: We have created our self valuation category D, without automatic valuation type. From what we have checked, it is mandatory to enter a valuation type during batch creation with MSC1N. This link between batch master and valuation type is imp

  • FI Invoice

    Hi, I have created a custom sapscript form for Invoice printing in FI module. I also created a custom print program based on standard programn RFKORD30. The customizing was already done linking the new correspondence to the new sapscript form and new

  • Converting Informix data to Oracle 10g

    Hi, We are planning to convert data on Informix 5.x based legacy system over to Oracle 10g. Wondering if anyone would like to share some light on this process, experience, use of Oracle or Other tools.. Regards, Subhash

  • Deleting the SWCV in SLD

    Hi all, Plz clarify me how the impact would be when the SWCV is deleted from SLD after the configuration has been done?