Memory leak checking doesn't work: SEGV problem while debugging with dbx

I am debugging a program which has memory leaks.
When I do the following:
dbx <program>
(dbx) run <input parameters>
everything runs fine, but as I didn't use RTC leaks checking, this is of no use. Therefore I do the following:
dbx <program>
(dbx) check -memuse
memuse checking - ON
(dbx) check -leaks -frames 8
leaks checking - ON
(dbx) run <input parameters>
which gives the following result:
Running: <program> <input parameters>
(process id 17075)
Reading rtcapihook.so
Reading rtcaudit.so
Reading libmapmalloc.so.1
Reading rtcboot.so
Reading librtc.so
RTC: Enabling Error Checking...
t@1 (l@1) signal SEGV (no mapping at the fault address) in __rtc_memcpy at 0xffffffff7312ed90
0xffffffff7312ed90: __rtc_memcpy+0x0014: st %o4, [%o0 + %o3]
dbx: Stopped within call to '__rtc_suppress_always'. Starting new command interpreter
(dbx) where -l
current thread: t@1
[1] libaio.so.1:_init(0xfffffffe52000058, 0x0, 0xffdfffff, 0xfffffffe52000030, 0x400000, 0x80000), at 0xfffffffe55907a90
[2] ld.so.1[L]:setup(0xffffffff7ffff250, 0x0, 0xffffffff7f72c2b0, 0x10000, 0x0, 0x0), at 0xffffffff7f610ba4
[3] ld.so.1[L]:_setup(0xffffffff7fffffab, 0x1f, 0xffffffff7ffff640, 0xffffffff7fffffbe, 0xffffffff7ffff628, 0xffffffff7f72dde8), at 0xffffffff7f61f24c
[4] ld.so.1[L]:_rt_boot(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xffffffff7f6052d4
I think this means that there is a problem within my 'RTC' libraries.
When I run the "version" command within my dbx session, I get following results:
(dbx) version
Machine hardware: sun4u
OS version: 5.9
Processor type: sparc
Hardware: SUNW,Sun-Fire-480R
The following components are installed on your system:
Sun Studio 9
Sun Studio 9 C Compiler
Sun Studio 9 C++ Compiler
Sun Studio 9 Tools.h++ 7.1
Sun Studio 9 C++ Standard 64-bit Class Library
Sun Studio 9 Garbage Collector
Sun Studio 9 Fortran 95
Sun Studio 9 Debugging Tools (including dbx)
Sun Studio 9 Debugger GUI
Sun Studio 9 Performance Tools (including collect, ...)
Sun Studio 9 X-Designer
Sun Studio 9 VIM editor
Sun Studio 9 XEmacs editor
Sun Studio 9 Native Connector Tool
Sun Studio 9 LockLint
Sun Studio 9 Building Software (including dmake)
Sun Studio 9 Documentation Set
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.6 2004/07/15
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.6 2004/07/15
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.0 2004/07/15
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.3 2004/07/15
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Performance Analyzer 7.3 2004/07/15
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.5 2004/07/15
Can anybody help me out?
Which additional information do I need to provide in order to solve this issue?
Message was edited by: B.V. (the "where -l" command has been added
B.V.

Hello Maxim,
As you said, it was worth to try, but unfortunately, it was not a very good investment :-(
The patch 117564-06 has been installed, and I have retried the same procedure, but the same problem occurs.
As you have mentioned in a previous reply, I have flagged the "rtc_error_stack" before launching the "where" command.
The result is the following:
Running: <program> <input parameters>
(process id 21873)
Reading rtcapihook.so
Reading rtcaudit.so
Reading libmapmalloc.so.1
Reading rtcboot.so
Reading librtc.so
RTC: Enabling Error Checking...
t@1 (l@1) signal SEGV (no mapping at the fault address) in __rtc_memcpy at 0xffffffff7312f068
0xffffffff7312f068: __rtc_memcpy+0x0014: st %o4, [%o0 + %o3]
dbx: Stopped within call to '__rtc_suppress_always'. Starting new command interpreter
(dbx) dbxenv rtc_error_stack on
(dbx) where -l
current thread: t@1
=>[1] librtc.so[0xffffffff7de01778]:__rtc_memcpy(0xfffffffe5013fff0, 0xfffffffe50220040, 0x8, 0x
10, 0x803, 0x64a3c338), at 0xffffffff7312f068
[2] librtc.so[0xffffffff7de01778]:change_masks_work(0xfffffffeff90e878, 0xfffffffeff90e878, 0x
803, 0x2, 0x0, 0xffffffff73243608), at 0xffffffff7312e618
---------- called from debugger ----------
[3] libmd5.so.1:_init(0xfffffffe50b00228, 0x0, 0xffdfffff, 0xfffffffe50b00208, 0x400000, 0x800
00), at 0xfffffffe531016e0
[4] ld.so.1[L]:setup(0xffffffff7ffff260, 0x0, 0xffffffff7f72c2b0, 0x10000, 0x0, 0x0), at 0xfff
fffff7f610ba4
[5] ld.so.1[L]:_setup(0xffffffff7fffffa6, 0x1f, 0xffffffff7ffff650, 0xffffffff7fffffb9, 0xffff
ffff7ffff638, 0xffffffff7f72dde8), at 0xffffffff7f61f24c
[6] ld.so.1[L]:_rt_boot(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xffffffff7f6052d4
(dbx)
Any ideas?
Thanks
Dominique

Similar Messages

  • Dbx SEGV signal encountered while memory leak checking

    Good morning,
    Last week, I have encountered the following problem while debugging a UNIX Solaris on a SUN server:
    Running the program without memory leak checking goes fine.
    Running the program while memory leak checking gives following error message:
    RTC: Enabling Error Checking...
    t@1 (l@1) signal SEGV (no mapping at the fault address) in __rtc_memcpy at 0xffffffff7312dc98
    I have already mentioned the problem on the SUN forum (as it is dbx related), but as the problem is not solved by installing patches, using more recent dbx versions and, most important, as a "where -l" dbx command reveals that the problem is located within an Oracle file, I start to believe that the problem is not caused by dbx, but by Oracle.
    The SUN forum post can be found back using following URL:http://forum.java.sun.com/thread.jspa?messageID=9575156
    The result of the "where -l" command is the following:
    (dbx) where -l
    current thread: t@1
    [1] libwtc8.so:_init(0x0, 0xffdfffff, 0xffffffff7f72a3f8, 0xffffffff7f72a9e8, 0x200000, 0x400000), at 0xfffffffd22501180
    [2] ld.so.1[L]:setup(0xffffffff7f72a9e8, 0xffffffff7f72a158, 0xffffffff7f72d838, 0xffffffff7f72a140, 0x3, 0x1001403c8), at 0xffffffff7f60f8fc
    [3] ld.so.1[L]:_setup(0x2710, 0x2710, 0xb00, 0xffffffffffffffff, 0x0, 0xffffffffffffffff), at 0xffffffff7f61d8c0
    [4] ld.so.1[L]:_rt_boot(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xffffffff7f604ce0
    <UNIX prompt>find / -name libwtc8.so 2>/dev/null
    <internal directory>/oracle/lib/libwtc8.so
    <internal directory>/oracle/lib64/libwtc8.so
    As the "nm" command only reveals a "_init" function for the latter libwtc8.so file, I believe strongly that this is the one referred by by dbx.
    In case you need more information (e.g. as far as Oracle versions are concerned), could you also include the UNIX commands, needed for retrieving this information?
    Kind regards
    Dominique

    The statement 'while memory leak checking' is not clear. Are u compiling with -g flag or profile flags ? OR using the 'collect' of SUN STUDIO ??
    Can u place the complete trace of CORE using the command 'dbx - core' for further analysis.
    Are U using any STL 3rd party libraries for Linking ?? .
    Place the sample code if possible.
    After going through SUN forum , I realize that there can be an imcompatibility with SOLARIS LIBS and Oracle of 64Bit layer. Are compiling in 64bit or 32 bit ?
    Try 64Bit compilation.

  • I seem to have multiple problems related or unrelated.  I cannot use Apple Mail for blueyonder and mostly for gmail as both show that the server is off line.  My pop up blocker doesn't work and I am blitzed with pop up windows on nearly every command

    Firstly I am unable to use Apple mail except for hotmail, for blueyonder, gmail or Sky as the server shows as (off line) and I have no idea how to get them on line even though I tell them to go there. 
    My pop up blocker doesn't work and I am blitzed with advertising windows virtually on ever command I make, one seems to be impossible to unsubscribe from. 
    When I am in an email with a web link the web link doesn't work and I get a window saying that I must have a pop up blocker, but if I switch it off it is no different, what does work is switching the "enable Java script off", then when I get to the web site I can't use it until I switch the java script back on.
    I can't do a screen shot either full or partial, when I try it changes the web site that is on screen to another.
    So what have I done that might have caused problems, downloading Yosemite seemed to be the start of the problems.  Since then I have started to install Mackeeper, after checking with a family members who should know, that MacPaw is safe.  I decided that I didn't want to pay the subscription, so went through the uninstall instructions but it comes up as a pop up with considerable regularity.
    My stress levels have gone through the roof with pop ups happening so regularly and not being able to use Apple mail.o can anyone help please?
    S

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • IChat 'spell checker' doesn't work.

    Hello,
    Recently upgraded to Tiger .. and the spell checker doesn't work when selected as 'Check spelling as you type'. It works manual -when I click on 'Check Spelling' ... but not whle I type.
    The spell checker works fine in Mail and Pages,etc. Just not iChat.
    I did reinstall iChat and didn't solve problem.
    Any thoughts?

    Just to add more info - when selected as 'Check spelling as you type' ... when I type a misspelled word, it will underline the word in red. BUT - when I right-click the word - NO word suggestions are in the popup menu.
    If I click 'Check Spelling' ... and then right-click the word ... it works perfectly ... with word suggestions in the popup menu AND other options (ignore spelling, learn spelling ... etc)
    Thanks.

  • I've noticed this especially when I youtube or video stream for a while. Switching between tabs takes 3-4 seconds. Definitely a memory leak! Is it a general problem or addon specific?

    I've noticed this especially when I youtube or video stream for a while. Switching between tabs takes 3-4 seconds.
    Definitely a memory leak! Is it a general problem or addon specific?
    Also, when I try to close firefox and restart it, the process doesn'y get killed with the normal Command + Q in Mac.
    I need to use Force Quit instead.

    Try updating Flash. You appear to be running an older version dating from September 2010 which might be the cause of the problem. Download from http://get.adobe.com/flashplayer/
    If the problem persists after updating, try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.

  • Continuous inventory based on zero stock check doesn't work

    Hello!
    The contiunous inventory based on zero stock check doesn't work.
    The problem is that I ticked both signs in the customizing for zero
    stock check and it doesn't work. The box for zero stock check
    appears, but if you check afterwards the inventory with LX25 nothing
    is done.
    Could the problem be that I my inventory method is PZ - continuous
    inventory?
    Help urgently needed!
    Thanks

    Now I can see the problem - fault of a beginner!
    I have not created any inventory document including this storage bins.
    Now my question is, how to create this?
    I have tried to create one for the continuous inventory stock, but I'm not able
    to book any goods movement on it because it is locked.
    Please help me how to create the inventory document, so that
    the continuous inventory based on zero stock check works.
    Kind regards,
    Barbara

  • After downloading Firefox, my e-mail spell check doesn't work

    for years I had used IE. I recently installed Firefox and now my e-mail spell check doesn't work. The dictionary is loaded but cannot figure out how to resolve this. It still works when using IE, so am assuming it's a Firefox glitch.

    Do you have a dictionary installed and selected?
    * You can see which dictionary is selected if you right-click in a text area and open the Languages submenu.
    * Open the "Add Dictionaries" link to install a dictionary if you do not have one.
    * Make sure that [X] "Check Spelling" in the right-click context menu is check-marked.
    You can enable or disable spell checking globally:
    * Tools > Options > Advanced : General: Browsing: "Check my spelling as I type"
    You can look here for dictionaries:
    * https://addons.mozilla.org/firefox/language-tools/
    See also:
    * http://kb.mozillazine.org/Spell_checking
    * http://kb.mozillazine.org/Dictionaries
    * https://support.mozilla.com/kb/Using+the+spell+checker

  • My safari doesn't work sometimes, but I connect with the internet.

    my safari doesn't work sometimes, but I connect with the internet. Some of the videos I can't see with the Safari browser, but I can see it with other brower. But my friend can see these videos with her safari. And I can not connect with the app store sometimes.

    Before you try to configure the settings on your Router, first thing which you need to do is, Press and hold the reset button for 60 seconds...Release the reset button...Unplug the power cable from your router, wait for 60 seconds and re-connect the power cable...
    Connect the Modem to the Linksys Router on the Internet Port and then connect your computer to the Linksys router on the LAN Port 1. On your Computer click on Start - Run - CMD and click Ok... Now in the Command Prompt window type "ipconfig" and hit enter and note down the "IP address, Subnet Mask and Default Gateway" , Now again in the Command Prompt window type "ping default gateway IP" and hit enter and check if you are getting any replies, If yes then you can login to the setup page of the configure all the settings on it from scratch. 
    If your Internet Service Provider is Cable follow this link

  • I am from Brazil, and i have an iphone 5. Since it was purchased the 3G/4G data signal doesn't work. I made contact with people in Apple from Brazil and they told me I had to ask for your support to unlock the 3G/4G data signal.

    I am from Brazil, and i have an iphone 5. Since it was purchased the 3G/4G data signal doesn't work. I made contact with people in Apple from Brazil and they told me I had to ask for your support to unlock the 3G/4G data signal. How do I have to proceed to unlock this feature in my iphone?
    I would appreciate if you can help me.
    Thanks!

    Greetings alex.bonifacio! I'm very sorry that you're having connection problems with your iPhone 5. While would love to help in any way I can, the device must at least be on an active line of service with Verizon Wireless in order for me to be able to make any changes. I must therefore urge you to contact your local wireless carrier for your equipment options. Good luck and thanks!
    DionM_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Why the imsg doesn't work without a sim card with iOS 7???

    Why the imsg doesn't work without a sim card with iOS 7???

    If it worked for you using iOS 6, then it appears iOS 7 has made some changes.  Was it working before?

  • I just want to reinstall windows 7. will i face any problem while syncing with new itunes, i just want to reinstall windows 7. will i face any problem while syncing with new itunes???

    i just want to reinstall windows 7. will i face any problem while syncing with new itunes, i just want to reinstall windows 7. will i face any problem while syncing with new itunes???

    Syncing to a new iTunes library or computer will erase your iPhone. Only if you back up your phone manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPhone without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    You can also back up iTunes and restore it on your new computer How to back up your media in iTunes ,but the iPhone will be erased anyway during the first sync.

  • Spell checking doesn't work at all

    I can't get any of the spelling related features to work for Pages 2. It won't spell-check the document, nor will it underline words with Check Spelling As you Type.
    Anyone have any thoughts on the matter?

    Which is your login language? That should be what decides what spelling dictionary is used. If you login language doesn't have any spelling dictionary, the default language is probably "none".
    Check in the Inspector > Text > More. If the Language is set to "None" that is your problem. The solution is to select a language of course.

  • Sound Check doesn't work

    I just switched from Mini to Nano and now when I playback songs the volume is all over the board. One song is on 5 one is on 10 and back and forth... I have tried several times to check and re-check the Sound Check feature. Am I doing someting wrong? If the song volume was close to each other it would be fine but it is WAY OFF. Thanks for the help.
    Packard Bell   Windows XP Pro  
    Packard Bell   Windows XP Pro  
    Title edited by Apple Host

    You need to check that option at iTunes as well. Did you remember to do that?
    If it doesn't work, try send Apple feedback about your iPod. Be polite and clear and if this is a general problem they will correct it on the next software updater.
    Hope this helps
    Viper

  • Inspiron 1520: memory card reader doesn't work in Windows 8

    I upgraded my daughters Inspiron 1520 to Windows 8 and everything works well. The only problem we are having is the memory card reader does not work. Windows 8 recognizes it and shows the action center flag and advises us to install a new driver.. We install the driver R188776.exe, install it, and re-boot, but the memory card reader still doesn't work.. Is there another driver we can install?

    Did you ever get this problem figured out?  I had two hardware devices indicating problems when installing windows 8 on my 1520.  Never actually used my card reader until I had everything up and running.  I downloaded "Ricoh R5C832, R5C843, R5C833, v.1.0.1, A00 Ricoh R5C832, R5C843, R5C833, v.1.0.1, A00
    R141246.EXE | Hard-Drive (582 KB)
    Chipset|
    Release date 26 Jun 2007
    |Last Updated 03 Nov 2011"
    It asked if I wanted to use it since I already had a newer driver in installed and I did it anyways.  No more flags in device manager.  Hope it helps. 

  • Shared memory - free_instance method doesn't work

    I am using shared memory to store data, set the data in a program and then read in an update task.  My write and read both work, but I would like to "delete" the shared memory instance after the read in the update task.  I am using the free_instance method - it works sometimes, but a very small percentage of the time.  Here is the code I am using:
    To write to shared memory:
    data: lv_inst        type shm_inst_name,
              lo_shared_area type ref to z_cl_binkill_shared_area,
              lo_root        type ref to z_cl_binkill_rmnqty.
        lv_inst = ordim_confirm-matid.
        shift lv_inst LEFT DELETING LEADING space.
        concatenate ordim_confirm-who ordim_confirm-vlpla lv_inst into lv_inst.
        try.
        Attach Shared Area
          lo_shared_area = z_cl_binkill_shared_area=>attach_for_write( lv_inst ).
        Create Root Object ( Object to be created in Memory )
          create object lo_root area handle lo_shared_area.
        Set the value for our message
          lo_root->set_data( ordim_confirm ).
        Set the root back into the Area
          lo_shared_area->set_root(  lo_root ). "<- Note the 2 spaces before go_root (didn't work without!)
        Commit and detatch
          lo_shared_area->detach_commit( ).
        catch cx_shm_attach_error.
        endtry.
    To read from shared memory and then (hopefully) delete:
    DATA: lv_inst          TYPE shm_inst_name,
            ls_ordim_confirm TYPE /scwm/s_rf_ordim_confirm,
            lv_rc            TYPE shm_rc,
            lo_shared_area   TYPE REF TO z_cl_binkill_shared_area,
            lo_root          TYPE REF TO z_cl_binkill_rmnqty.
    lv_inst = ls_ordim_c-matid.
              SHIFT lv_inst LEFT DELETING LEADING space.
              CONCATENATE ls_ordim_c-who ls_ordim_c-vlpla lv_inst INTO lv_inst.
              TRY.
                  lo_shared_area = z_cl_binkill_shared_area=>attach_for_read( lv_inst ).
                  lo_root        = lo_shared_area->root.
                  TRY.
                      ls_ordim_confirm = lo_root->get_data( ).
                    CATCH cx_root.
                      CLEAR ls_ordim_confirm.
                  ENDTRY.
                  lo_shared_area->detach( ).
                  lv_rc = lo_shared_area->free_instance( lv_inst ).
                CATCH cx_shm_attach_error.
                  CLEAR ls_ordim_confirm.
              ENDTRY.
    Any ideas why the free_instance doesn't work?
    Jeff Mathieson

    If an UICommand element inside a UIData table does not invoke the method behind the action binding, then this generally means that the row object is out of the scope while the action event is getting to be fired. Test it by putting the managed bean in session scope and see if it will solve the problem. If so, and if you want to keep the managed bean in the request scope, then change/rearrange your data loading logic so that the data is available during at least the invocation phase of the JSF lifecycle. Or split the backing bean in two beans, one for strictly request-scoped data and another for strictly session-scoped data.

Maybe you are looking for

  • Period 012 is not valid in financial year variant V3

    Hi all   i already posted this issue on ASSET ACCOUNTING two weaks ago ....but still waiting for your responce  ............. Can any one pls help me out ..........its an urgent ........... when i check dep. thro' t.code AW01N/AS02 i am getting an er

  • Replace specific string in a file while reading it

    Hi, I am kind of an in between learner & intermediate programmer. I am trying to replace a specific string pattern in a file by reading it using BufferedReader & BufferedWriter. I tried it for 2 days. Can anyone give me a piece of code which reads a

  • What is CZGOLD concept in Oracle Configurator?

    Hi Guys, If anyone knows about, what is CZGOLD concept in Oracle Configurator? Thanks, Rajesh

  • TDMS file viewer not functioning as expected

    I'm new to LV so I'm probably doing something obvious to the battle hardened among you, I'd appreciate a hand! I've got a cRio that's running a modified version of one of the datalogging examples, and it's logging to its internal memory, which I FTP

  • Increase no. of thread in JDK1.4

    Hi all, is there any way to increase the number of java threads? I have written a java program to create 1000 of java threads but it will throw the following error when up to about 800 of java threads. Error message: Exception in thread "main" java.l