Very strange segmentation fault

My application is segfaulting on a line:

width = photoInfo.getWidth ();

In this context, 'width' is defined in the class as:

int width;

... and photoInfo is declared and set to the previous line:

PhotoInfo photoInfo = getPhotoInfo (filePath);

On the line that goes down, which is once again:

width = photoInfo.getWidth ();

... I can enter the function getWidth and see it return its value OK and then boom, a segmentation fault.

I am at a loss, because I'm not aware that there is possible segfault when assigning an integer to a private member variable that is a primitive type itself. (int - and it's a plain int, not a pointer to an int value) My understanding is that segfaults always involved incorrect pointers.

What could be going on here?  Clearly, I've spent too many years in the land of Java and not enough in the land of C++

Just as I type this, I wonder if the pointer to the object that contains the method running was bad, and so perhaps address the private member variable 'width' memory is bad. I am going to study this possibility...

Of course, that's all.  I guess my mental model of segfaults was not as informed as it should be.

Tags: BlackBerry Developers

Similar Questions

  • Skype segmentation fault - 4.0.0.7 - r2

    Hello

    I've just updated my Skype Linux based on Gentoo for Skype - 4.0.0.7 - r2 of sources.

    Skype does not start after that little start up. I get the "segmentation fault" if I run it from the terminal. And get the tail the log like this:

    kernel: Skype [4569]: Segfault at 0807dc0d sp bfd4c720 error ip 3f 6 in Skype [8048000 + 19ba000]

    Then I reinstall it and working fine until a couple of starts. Then it will repeat.

    Y at - it an idea to fix it? Or should I just use for the old one version, that works so - so?

    Behavior very srtange Skype executable. It changes during execution. So, there is a decision (http://forum.xakep.ru/m_2657618/tm.htm):

    chmod w/opt/bin/skype

    or

    chmod w/usr/bin/skype

    Depending on your distribution.

  • Segmentation fault

    Hello

    I just came across this error when you try to start the AMS on the invoice, pro forma:

    PI@raspberrypi ~/javame8ea/bin $ sudo./usertest.sh

    argv [1] = runMidlet

    argv [2] = + UseProxy

    argv [3] == VMAgentBufferSize4000

    argv [4] = - 1

    argv [5] = com.sun.midp.appmanager.AmsLauncher

    argv [6] = - debugger

    argv [7] = - wdogenable

    [INFO] [CORE] iso = 0:javanotify_start_java_with_arbitrary_args() > >

    Java is starting. Press Ctrl-C to exit

    [INFO] [CORE] iso = 0:JavaTask() JAVATASK_EVENT_START_ARBITRARY_ARG > >

    Segmentation fault

    Any suggestions? I don't know where to look and it worked very well for me yesterday.

    Thank you

    Ed

    HI -.

    One of our developers was a problem - where the jwc_properties.ini file has been altered.  Can you look back and determine

    It is possible that you unplugged the Raspberry Pi, while running the AMS?

    I'm just trying to determine if it is causing this situation...

    Thank you

    Tom

  • After upgrade to El Capitan, Python segmentation fault 11 after two commands are entered.

    2011 Macbook pro with Snow Leopard (8 MB RAM).  I upgraded to 10.11.4 and now interactive Python (2.7.2) is broken.   After you enter the two commands any (?), it crashes:

    Pauls-MacBook-Pro: ~ python $ paul

    Python 2.7.2 (v2.7.2:8527427914 has 2, June 11, 2011, 15:22:34)

    [GCC 4.2.1 (Apple Inc. build 5666) (point 3)] on darwin

    Type "help", "copyright", "credits" or "license" for more information.

    > > > x = 1

    > > > y = 2

    Segmentation fault: 11

    Pauls-MacBook-Pro: ~ paul$

    I saw the posts here and on StackOverflow, saying that this problem is corrected in python 2.7.6 but I have a few questions:

    one) because it is a problem for a few years, why not upgrade the El Capitan installs a new version of python (if I understand correctly, the El Capitan installation includes)?   :/   For example, instead of everyone made the upgrade (at least in some versions) with the problem individually?

    Given that I apparently must upgrade to python:

    (b) I saw mention of problems with the evolution of the system version of python.   Can I change the version of the system (my preference), for example. 2.7.11, or do I need to install a version for my personal use?

    (c) how DO I upgrad.e the version of the system, or install another version?

    Thank you

    It is not the system Python, which is the version 2.7.10. What you get from "which python"?

  • Satellite Pro 6100 - battery acting very strange.

    As mentioned in the title, my laptop battery is very strange.

    The symptoms are:

    When the battery is flat after only 7-10 minutes he turns not, however if the battery is removed and placed in the laptop, the laptop will start as it has never happened.
    Not only that, but the bonus after the first can indefinitely until this that loaded into an OS and immediately after starting start the laptop stops due to an apparent lack of power, when there is power always, enough to do the same thing again. Also, the battery can still start even after being just in a freezer.

    This reacondioned back to normal battery or is this safe to use battery?
    Thanks in advance!

    Hello

    I guess that your battery is old like machines of this Satellite Pro 6100 and maybe it can't be charged more. In this case, your battery should be replaced.

    But even if the battery is faulty, you should be able to use the device connected to the power adapter.
    So even if the battery is removed, you could power the unit with the mains.

  • Examples UHD Segmentation Fault

    Hi all

    I'm having some trouble trying to use the UHD examples.

    Some of them I can use. However, some of them give me a Segmentation fault

    ==========================================================

    Rafael@Rafael-Inspiron-7537: / usr/lib/uhd/examples$. / dry tx_bursts - 5 - ampl 0.5 freq - 50e6
    Linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.005.005 - 0-unknown

    UHD WARNING:
    Failed to set the priority of the thread. Performance may be affected negatively.
    Read the general application notes in the manual for instructions.
    EnvironmentError: OSError: error in pthread_setschedparam

    The creation of the usrp device with:...
    -Opening of a USRP2/N-Series device...
    -Current frame size recv: 1472 bytes
    -Current send image size: 1472 bytes

    UHD WARNING:
    Failed to set the priority of the thread. Performance may be affected negatively.
    Read the general application notes in the manual for instructions.
    EnvironmentError: OSError: error in pthread_setschedparam
    Segmentation fault (core dumped)

    ==========================================================

    The same problem to get examples like:
    rx_timed_samples, test_timed_commands, tx_bursts and others

    I use:

    Ubuntu - 14.04

    N210 - USRP

    Hi Rafael,.

    While you can find other UHD users in these forums that can help the best bet is probably to send your question to [email protected] because they are much more experienced in troubleshooting UHD.

    Best regards

    Peter W.

    PES OF RF

  • Can someone help me with this problem of very strange wireless networking? (intermittent connectivity)

    So I'm having a very strange problem with my wireless adapter. (surprise, right?) Let me explain just what is happening here: I will use my computer, online, do a lot of things like play games or surf the web. Randomly, for no apparent reason, my wireless adapter disconnects the current network disconnect myself from everything I do. When I check my available wireless networks, I can't see a single network. This has happened to me for a while. When he started it first, I tried many things including the uninstallation of a reinstall of my adapter without success. I have to restart my computer to fix. This happens from time to time and has not stopped since the first occurrence. Originally, if I would try to find a network or uninstall/reinstall, my computer would be soft locking and I would be able to use the windows closed functionality, it would just hang out there indefinitely until I hard loaded. Now its being less skittish and let me do a reset software to fix, but it becomes very annoying. I know this isn't my router because all my roommates can still connect to the network very well, and the router will not prevent me to see many (15-20) wireless networks in the region. If someone can help me even by some light on what is happening, I would be very grateful, because I'm getting very frustrated by that. I reinstalled the map, he pulled for dust, etc. etc. It is not usb and its actions with the system. The Device Manager it says as a 802.11n wireless adapter PCI Express LAN Card, manufactured by LITE-ON TECHNOLOGY CORPORATION. Connected to the 4 PCI bus, device 0, function 0.

    Thanks in advance:

    Justeroo

    Try without commitment TCP/IPv6 (which is done by going to network connection > click > properties > it uncheck > OK.)

    http://digitalmediaphile.WordPress.com/IPv6-how-to-unbind-from-a-NIC-in-Windows-Vista/

    See you soon.

    Mick Murphy - Microsoft partner

  • ISE restoration fails after 80% (Segmentation fault)

    Hi all

    After a system crash, I try to restore. First of all, I did an ise to reset zero-config application, then a restore on an ftp repository.

    After 80%, it will fail with to DB Syncup with a segmentation fault. Tried with different backup versions have the last patch level.

    Any ideas?

    Thank you

    Start the restore.  Please wait...
    % of ongoing restoration: from restoration... 10% have completed
    % of ongoing restoration: recover the repository backup file... 20% completed
    % of current restore: backup data decryption... 25% completed
    % of current restore: backup data extraction... 30% completed
    Leaving the currently connected AD domain
    Please join the AD domain since the administration interface
    % of ongoing restoration: ISE stopping process required for the restoration... 35% completed
    % of ongoing restoration: restoration ISE configuration database... 40% completed
    % of ongoing restoration: the metadata for database update... 70% finished
    % of current restore: restore the logs... 75% have completed
    % of ongoing restoration: ISE performance, database synchup... 80% finished
    /opt/CSCOcpm/bin/isecfgrestore.sh: line 1248:11162 Segmentation fault (core dumped) curl - q - k - a tlsv1 - connect-timeout 10 https://$MYIP/admin/index.jsp > / dev/null 2 > & 1
    /opt/CSCOcpm/bin/isecfgrestore.sh: line 1248:11177 Segmentation fault (core dumped) curl - q - k - a tlsv1 - connect-timeout 10 https://$MYIP/admin/index.jsp > / dev/null 2 > & 1
    /opt/CSCOcpm/bin/isecfgrestore.sh: line 1248:11187 Segmentation fault (core dumped) curl - q - k - a tlsv1 - connect-timeout 10 https://$MYIP/admin/index.jsp > / dev/null 2 > & 1

    .. .and so forth

    **************************************************************************************************************

    Deploying applications engine Cisco OS version: 2.2
    ADE-OS Build Version: 2.2.0.162
    ADE-OS system architecture: x86_64

    Copyright (c) 2005-2014 by Cisco Systems, Inc.
    All rights reserved.

    Version information for the installed applications
    ---------------------------------------------

    Cisco Identity Services engine
    ---------------------------------------------
    Version: 1.3.0.876
    Build Date: Kills Oct 28 04:02:29 2014
    Installation date: Fri Dec 5 08:31:15 2014

    Cisco Identity Services engine Patch
    ---------------------------------------------
    Version: 1
    Installation date: Mon Jan 26 10:21:50 2015

    After sending the papers suitable for TAC, I learned that even if the restoration seemed to have failed, 80% the effective restoration is complete and what was failing was the synchronization of the node.   Knowing this, I could access the admin GUI and synchronize to other nodes and worked no problem manually.

    It turns out it's documented issue, CSCur36983will be fixed in version 1.4.

    Here is the answer I got from the TAC:

    "According to the newspapers sent, we are certainly hit CSCur36983 who will be."
    set in point 1.4 of the ISE:
    https://Tools.Cisco.com/bugsearch/bug/CSCur36983/

    According to the details of the bug, when we reach 80% of the food part is
    has already completed. What is a failure is a synchronization with the rest of the nodes
    in the deployment. Therefore, you can reload the ISE at this point and you
    should have access to the GUI admin again. From there, you can force a synchronization upward with the other nodes. »

  • IPS - Segmentation fault

    Hi all

    I'm running out of 2 IPS, I've updated them, with a signature.

    The one loaded properly, the other... Well basically gave me the following

    Connection ICCIPS:

    Password:

    Last login: my Jul 11 11:38:25 on ttyS0

    NOTICE *.

    This product contains cryptographic features and is under the United States

    and local laws governing the import, export, transfer and use. Delivery

    Cisco cryptographic products does not imply permission to third parties to import,

    export, distribute or use encryption. Importers, exporters, distributors and

    users are responsible for compliance with U.S. and local country. With the help of

    This product you agree to comply with the regulations and laws in force. If you

    are unable to meet the United States and local laws, return the product.

    A summary of U.S. laws governing Cisco cryptographic products to:

    http://www.Cisco.com/WWL/export/crypto/tool/stqrg.html

    If you need assistance please contact us by mail at

    [email protected] / * /.

    Error: Unable to communicate with mainApp (getVersion). Please contact your system administrator.

    You want to run cidDump? [No]: Yes

    Transfer file to remote server or display it on the screen? [transfer]: display

    / usr/CIDS/idsRoot/bin/cidDump: line 233: 20371 Broken pipe cat $IDSROOT/etc/config/signatureDefinition/default.xml

    Segmentation fault 20372 | d gzip - > $TMPDIR/cidDump.output

    Is there an easy way to solve this, or is this average recreate the image?

    Hi Martin,

    The message "error: cannot communicate with mainApp (getVersion).» Please contact your system administrator. "you had means that there was a failure of software on your IPS.

    Reset the module deletes it (and he did), but he might come back then I advise you to upgrade to the latest version on the train, you're running to pick up all the patches that have been integrated to the it and prosecute TAC if you are interested in the exact cause of the problem.

    Kind regards

    Nicolas

  • Very strange problem with quick mask

    Hoping someone can help me with a very strange problem that just started to happen when I enter the quick mask in PS CS5. Let me guide you through the problem.

    (1) I opened my image in PS, go in the Mode mask quick and 'paint' my image in translucent red with a brush (100% of opacity, brush, etc. normal mode).

    Screen Shot 2016-06-05 at 23.34.57.png

    (2) once I fully painted my picture in translucent red, I leave the Quick Mask mode and the area outside the translucent red is selected. I hit M for the marquee tool, right-click on the picture I have just painted and choose 'Select inverse', which then selects everything within the translucent red area (note that I made this a million times over the years).

    Screen Shot 2016-06-05 at 23.35.25.png

    (3) my image is now selected. In general, what I do now is cut (cmd + x) that selected the image and paste it into another canvas, generally where is my biggest project. Whenever I did it, the image cuts and fits exactly as it is seen and leaves an empty space in the original image. However, when I cut it now, it seems to cut a transparent version, leaving behind a transparent 'ghost' of the original image.

    Screen Shot 2016-06-05 at 23.35.27.png

    (4) then when I paste the image cut in a new canvas, it is transparent as a default value.

    Screen Shot 2016-06-05 at 23.35.30.png

    I checked the transparency of all the paintings, and they are set to 100%. As I already said, I cut from images of no solid media using the quick mask all the time and it's never happened before. In fact, I made this weekend and it has only just begun in the last hour, so I think I clearly something clicked or activated a parameter without realizing account!

    In considering this explanation, I hope someone knows what is causing my pictures to cut and paste transparent after that I used the quick mask. It certainly is driving me crazy!

    Any advice or assistance would be most appreciated.

    Thank you

    In your first screenshot the color of foreground in the Toolbox is not 100% black (RGB 0,0,0)

    Until you try the quick mask, press D to set the foreground on black (RGB 0,0,0)

  • When I make a rectangle, the left and right edges are a bit fuzzy and thicker, then the bottom and at the top. It seems very strange and I don't know why that is.

    When I make a rectangle, the left and right edges are a bit fuzzy and thicker, then the bottom and at the top. It seems very strange and I don't know why that is.

    I made a new document (72 dpi, preview mode: by default) and I tried to see if it's the same thing on another screen, and it is.

    I thought that the problem would be with the 'align on the pixel grid' property but by activating / deactivating it doesn't matter. Maybe it's something with anti-aliasing? "Work of anti-aliasing" is checked in my preferences...

    Screen Shot 2016-04-15 at 17.51.29.png

    Here's an example, zoom level 100%.

    The forms do not look sharp at all. No idea what this can be?

    Lieselot,

    Or you can try to switch between the GPU and CPU by pressing Ctrl / Cmd + E, or you try disabling GPU performance by clicking on the icon of the rocket in the bar of the App, or on the top of the menu bar, deselect the box Performance GPU. You may also uncheck performance GPU in your preferences.

  • Segmentation fault and stuck in the emulator program

    I went to run the test code GPIOLEDTest tonight.  When loading on the Pi, I got the following error in the PuTTY window:

    [ERROR] ISO [DAAPI] = - 1 cannot open Segmentation Fault.

    Also, I get this error when you try to run the GPIOSwitchTest code that I downloaded.

    I reduced the offending code to the following:

    In GPIOLEDTest, is line 39 in GPIOLED.java-> as - DeviceManager.open (ledID);

    In GPIOSwitchTest, line 52 in. GPIOSwitch.java-> switchPin = (GPIOPin) DeviceManager.open (config1);

    Thus, it seems that this has something to do with me and the DeviceManager.open () method.

    Trying to debug, I went back to something I knew ran in the past, the code of duties 1.  When I try to launch it on IP, the emulator think test GPIOLED code is still ongoing.  I tried selecting this line in the emulator and hit remove them, but nothing that I do take this program in the list of the emulator.  Can anyone help?

    The following is the log file for the execution of the GPIOLEDTest device.  I guess that the GPIOSwitchTest file is similar.  The last line seems to indicate that the JAD file is not found, even if there is a JAD file in the expected directory.  Any help would be greatly appreciated.

    Property editors custom registering [22:43:46.773] - lkit.bootstrap.DeployerManager - INFO

    [22:43:46.786] INFO - me.toolkit.bootstrap.Namespace - batch of start-up, object basis-server module

    [22:43:46.792] INFO - bootstrap. ObjectGraphProcessor - consolidation of dependencies...

    [22:43:46.792] INFO - bootstrap. ObjectGraphProcessor - dependencies consolidated...

    [22:43:46.793] INFO - bootstrap. ObjectGraphProcessor - calculation of order...

    [22:43:46.793] INFO - bootstrap. ObjectGraphProcessor - order calculated

    [22:43:46.807] INFO - un.jme.toolkit.bootstrap.Batch - initializing objects...

    [22:43:46.807] INFO - un.jme.toolkit.bootstrap.Batch - I18N applied

    INFO objects - un.jme.toolkit.bootstrap.Batch - initialized [22:43:46.808]

    [22:43:46.808] INFO - un.jme.toolkit.bootstrap.Batch - call create() methods...

    [22:43:46.808] INFO - un.jme.toolkit.bootstrap.Batch - call start() methods...

    [22:43:46.812] INFO - un.jme.toolkit.bootstrap.Batch - objects began

    [22:43:46.814] - me.toolkit.bootstrap.Namespace - INFO starting batch, base of the devices/EmbeddedExternalDevice module

    Property of WARN - otstrap.deployer.bean.BeanFile - container not supported [22:43:46.829]: mpfprojectdir\dev10\src\csharp\projectbase.file

    Property of WARN - otstrap.deployer.bean.BeanFile - container not supported [22:43:46.829]: .bound classes

    Property of WARN - otstrap.deployer.bean.BeanFile - container not supported [22:43:46.834]: mpfprojectdir\dev10\src\csharp\projectbase.file

    Property of WARN - otstrap.deployer.bean.BeanFile - container not supported [22:43:46.834]: .bound classes

    [22:43:46.852] INFO - bootstrap. ObjectGraphProcessor - consolidation of dependencies...

    [22:43:46.852] INFO - bootstrap. ObjectGraphProcessor - dependencies consolidated...

    [22:43:46.853] INFO - bootstrap. ObjectGraphProcessor - calculation of order...

    [22:43:46.854] INFO - bootstrap. ObjectGraphProcessor - order calculated

    [22:43:47.500] INFO - un.jme.toolkit.bootstrap.Batch - initializing objects...

    [22:43:47.772] INFO - un.jme.toolkit.bootstrap.Batch - I18N applied

    INFO objects - un.jme.toolkit.bootstrap.Batch - initialized [22:43:47.773]

    [22:43:47.773] INFO - un.jme.toolkit.bootstrap.Batch - call create() methods...

    [22:43:47.818] INFO - un.jme.toolkit.bootstrap.Batch - call start() methods...

    [22:43:48.039] INFO - .rmiimpl. RemotingConnectorImpl - service: jmx:rmi starting the JMX connector: jndi / / / / rmi://127.0.0.1:60918 / device-3

    [22:43:48.183] INFO - toolkit.ui.actions.AmsExecImpl - connected Proxy. isNetworkMonitorSupported = false

    [22:43:49.008] INFO - un.jme.toolkit.bootstrap.Batch - objects began

    [22:43:50.207] FATAL - lkit.ui.actions.AmsExecInstall - Unknown error: invalid url: file:///D:/RobShare/Programming/classes/Oracle - Java development integrated Applications using a raspberry Pi/Code/Homework_2/GPIOLEDTest/GPIOLEDTest/dist/GPIOLEDTest.jad

    Thank you

    OK, I feel really bad here, I finally understood that.  This is another error PEBKAC (problem exists between keyboard and Chair).

    This problem was caused by the no runnng./usertest.sh without the sudo command.

    Lesson learned here: ALWAYS RUN WITH SUDO usertest.sh!

    Thanks to all who helped!

    Rob

  • I work in a sensitive project where I have a specific slide which will not move forward. I created a click box that goes to the next slide, and it remains in the same blade if it is in a loop. Very strange. What might be missing?

    I work in a sensitive project where I have a specific slide which will not move forward. I created a click box that goes to the next slide, and it remains in the same blade if it is in a loop. Very strange. What might be missing?

    You can check the Advanced Interaction Panel? You have a note attached to the interactive objects in the simulation? If so, check the desired option Quiz, more specific preferences.

  • Segmentation fault (core dumped)

    Hi all

    11.2.0.1

    AIX 6.1

    We have DEV & UAT servers with oracle 11.2.0.1 db. and with the same operating system.

    Then we have a pro * c program exe which run on DEV without error, but when it is run on UAT he throws Segmentation fault (core dumped)

    But the database have the same content of tables and data.

    No idea why this error?

    Thank you

    Petra k.

    Hi all

    I let the program do some trace and exposure where the error occurs and it seems that the program can't handle certain conditions. So, it's a bug in the program.

    Thank you

  • segmentation fault & ora-1653

    In my application when trying to connect to the operating system get segmentation fault and something like below.

    bash - $3.2 uname - a
    bash: / bin/uname: input/output error
    bash - $3.2 df-h
    Segmentation fault

    I check the side DB DB is running and when I check the alertlog file I found error below.

    ORA-1653: unable to extend table utilisateur_admin. TABLE_NEW1 of 128 in tablespace USERS
    ORA-1653: impossible to extend the table. utilisateur_admin TABLE_NEW1 by 8192 in tablespace USERS


    This error is my application problem.

    I suspect that for DB issue that we need to increase the size of the data file or need to add the new data file.
    (or)
    You will need to clean the table.

    Any Lucette have an idea why segmentation falult and error input/output to come?


    Kind regards
    Hari

    Why don't you add data files of tablespace that is this table.
    How many records you want to delete! This isn't a solution.

    Osama...

Maybe you are looking for

  • I can't use the promps search or search history, I have to type in the full research

    When I type in the search box, suggested guest and search history is displayed, but when I use it, nothing happens, historical research and promps suggested search box just disappear, and I'm always on the current page. I have to type in the name of

  • ALL my bars at the top have disappeared. I removed them and now it won't let me get back them.

    I removed all the toolbars, the address bar and all other bars, and now it won't let me get back them. How to make a comeback?

  • Utility software of fingerprint error

    After starting the computer, you receive the following message: "Fingerprints digital-software error."Internal error (win 32: wtsrsn err 1702)Details"Internal OXE 7210001 error (win 32: wtsrsn err 1702). What wrong?

  • dead computer

    I have a Dell Vista Home that will not start, it seems that power does not work, I can get a new power supply so I can back up my data or do I have to upgrade and just move the hard drive to the new computer?

  • Sky Drive

    Hello! I use for my photos in Sky Drive. Then slowly, over time, they (Microsoft?), began to remove them. Why would they do that? I never learned that my photos would just stay for a certain period of time, and then are deleted. I see that there is n