Java buffer overflow help

class test
     public static void main(String[]args)
System.out.println(1.20+4.90-4.90);          System.out.println(1.20+4.90-4.90-1.20);
please run the following program
i have a similar problem with this buffer overflow.
i am doing a cshier program that perform the calculation i wrote in the test program,
note that my values are double.. what can i do to prevet this??

E.D.-inc wrote:
class test
     public static void main(String[]args)
System.out.println(1.20+4.90-4.90);          System.out.println(1.20+4.90-4.90-1.20);
please run the following program
i have a similar problem with this buffer overflow.
i am doing a cshier program that perform the calculation i wrote in the test program,
note that my values are double.. what can i do to prevet this??As jverd mentioned, this isn't a buffer overflow. You need to format your answers.
public class Fubar1
    public static void main(String[] args)
        double d1 = 1.20 + 4.90 - 4.90;
        double d2 = 1.20 + 4.90 - 4.90 - 1.20;
        System.out.printf("%3.2f\n", d1);
        System.out.printf("%3.2f\n", d2);
}

Similar Messages

  • Buffer overflows in java

    Hi
    Ive read a lot that java eliminates Buffer overflow problems. Could some one please elaborate how this is done.
    Also if i were to limit the send and receive buffer sizes for a given socket by setting them to a small size and then send a String value over the socket with a larger byte size wouldn't that cause a buffer overflow ?
    tx in advance.

    sridanu wrote:
    Ive read a lot that java eliminates Buffer overflow problems. Bounded arrays. As such you can't write data outside the array and into potentially executable memory.
    Also if i were to limit the send and receive buffer sizes for a given socket by setting them to a small size and then send a String value over the socket with a larger byte size wouldn't that cause a buffer overflow ?That might cause your application to throw an exception, but it would not cause other sections of memory to be over written.

  • XMLTRANSFORM Too large stylesheet - code buffer overflow issue

    Hi All,
    My question is related to MSWordML generation from PLSQL stored procedure.
    1. I have table, containing XSLT stylesheets for different documents
    2. PLSQL stored procedure is generating dynamic content depending on some params and at the end I'm using
    SELECT XMLTRANSFORM(XMLTYPE.createxml(db_data_clob), XMLTYPE.createxml(x.xslt_clob)).GetClobVal()
    INTO   res
    FROM   msword_ml_data x
    WHERE  x.report_id = rep_id_variable;
    where : x.xslt_clob -> column, containing XSLT CLOB
    db_data_clob -> dynamic content CLOB
    res -> CLOB result
    All this was working fine on Oracle11gR1, but I had to reinstall database and I said why not install Oracle11gR2 ...
    Guess what. Stored procedure is raising exception when using XMLTRANSFORM :
    Exception : : ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00004: internal error "Too large stylesheet - code buffer overflow"
    Google says nothing about it. I don't recall setting some special DB property in Oracle11gR1.
    Has anyone encountered this ?
    I haven't changed procedure nor table.
    I'm using exactly the same XSLT's from Java code and they are working just fine, so they are not the reason. My guess is that something in Oracle11gR2 related to XML processing is changed.
    If anyone could help, thanks in advance

    For those who are interested.
    I have logged a service request and it turned out that this is is a bug in Oracle 11gR2.
    "The limitation on the style sheet is not exactly a size limit but a limitation on the number of style sheet instructions and depends on the way the style sheet has been written. This is a C based parser limitation"
    Anyway, the workaround is to create Java stored procedure and do transformation from there.

  • [SOLVED] Firefox and OpenJDK give buffer overflow

    Hello all,
    I hope I am posting this on the right forum. I am having some problems on sites with Java when opening them using Firefox 14.0.1 and the OpenJDK plugin.
    Whenever I open a site that has any kind of java (even the simple applet tutorial given on oracle website) I get a buffer overflow error. If I switch to Sun JDK (well Oracle? whatever...) everything works perfectly. Opera with OpenJDK works perfectly as well.
    This is what I get:
    *** buffer overflow detected ***: firefox terminated
    ======= Backtrace: =========
    /lib/libc.so.6(__fortify_fail+0x37)[0x7fcc895d16c7]
    /lib/libc.so.6(+0xf77a0)[0x7fcc895cf7a0]
    /usr/lib/jvm/java-7-openjdk/lib/IcedTeaPlugin.so(NP_Initialize+0x198)[0x7fcc5e1deb58]
    /usr/lib/firefox/libxul.so(+0x108b89a)[0x7fcc87ec589a]
    /usr/lib/firefox/libxul.so(+0x10778f2)[0x7fcc87eb18f2]
    /usr/lib/firefox/libxul.so(+0x108327f)[0x7fcc87ebd27f]
    /usr/lib/firefox/libxul.so(+0x1085639)[0x7fcc87ebf639]
    /usr/lib/firefox/libxul.so(+0x1085ac5)[0x7fcc87ebfac5]
    /usr/lib/firefox/libxul.so(+0x1085cf2)[0x7fcc87ebfcf2]
    /usr/lib/firefox/libxul.so(+0x10864a1)[0x7fcc87ec04a1]
    /usr/lib/firefox/libxul.so(+0xb08ee6)[0x7fcc87942ee6]
    /usr/lib/firefox/libxul.so(+0xb09165)[0x7fcc87943165]
    /usr/lib/firefox/libxul.so(+0x72cdf8)[0x7fcc87566df8]
    /usr/lib/firefox/libxul.so(+0x7226b9)[0x7fcc8755c6b9]
    /usr/lib/firefox/libxul.so(+0x71fceb)[0x7fcc87559ceb]
    /usr/lib/firefox/libxul.so(+0x1258ae3)[0x7fcc88092ae3]
    /usr/lib/firefox/libxul.so(+0x111a955)[0x7fcc87f54955]
    /usr/lib/firefox/libxul.so(+0xfe42ed)[0x7fcc87e1e2ed]
    /usr/lib/firefox/libxul.so(+0x84d64a)[0x7fcc8768764a]
    /usr/lib/firefox/libxul.so(+0x850e8d)[0x7fcc8768ae8d]
    /usr/lib/firefox/libxul.so(XRE_main+0x12d)[0x7fcc8768b120]
    firefox[0x40250b]
    /lib/libc.so.6(__libc_start_main+0xf5)[0x7fcc894f9725]
    firefox[0x406041]
    ======= Memory map: ========
    00400000-00417000 r-xp 00000000 08:05 1591079 /usr/lib/firefox/firefox
    00617000-00618000 r--p 00017000 08:05 1591079 /usr/lib/firefox/firefox
    00618000-00619000 rw-p 00018000 08:05 1591079 /usr/lib/firefox/firefox
    7fcc4e500000-7fcc4f200000 rw-p 00000000 00:00 0
    7fcc4f300000-7fcc4f600000 rw-p 00000000 00:00 0
    7fcc4f700000-7fcc4f900000 rw-p 00000000 00:00 0
    7fcc4fa00000-7fcc4fc00000 rw-p 00000000 00:00 0
    7fcc4fd00000-7fcc4fe00000 rw-p 00000000 00:00 0
    7fcc4ff00000-7fcc50000000 rw-p 00000000 00:00 0
    7fcc50100000-7fcc50200000 rw-p 00000000 00:00 0
    7fcc50300000-7fcc50600000 rw-p 00000000 00:00 0
    7fcc50700000-7fcc50c00000 rw-p 00000000 00:00 0
    7fcc50d00000-7fcc51100000 rw-p 00000000 00:00 0
    7fcc51200000-7fcc51500000 rw-p 00000000 00:00 0
    7fcc51600000-7fcc51700000 rw-p 00000000 00:00 0
    7fcc51800000-7fcc51900000 rw-p 00000000 00:00 0
    7fcc51a00000-7fcc51b00000 rw-p 00000000 00:00 0
    7fcc51bdf000-7fcc51be0000 ---p 00000000 00:00 0
    7fcc51be0000-7fcc523e0000 rw-p 00000000 00:00 0 [stack:13747]
    7fcc52500000-7fcc52600000 rw-p 00000000 00:00 0
    7fcc52700000-7fcc52800000 rw-p 00000000 00:00 0
    7fcc52900000-7fcc52a00000 rw-p 00000000 00:00 0
    7fcc52b00000-7fcc52c00000 rw-p 00000000 00:00 0
    7fcc52cfe000-7fcc52cff000 ---p 00000000 00:00 0
    7fcc52cff000-7fcc534ff000 rw-p 00000000 00:00 0 [stack:13733]
    7fcc534ff000-7fcc53500000 ---p 00000000 00:00 0
    7fcc53500000-7fcc54600000 rw-p 00000000 00:00 0 [stack:13732]
    7fcc546ac000-7fcc546ad000 ---p 00000000 00:00 0
    7fcc546ad000-7fcc54ead000 rw-p 00000000 00:00 0 [stack:13731]
    7fcc54ead000-7fcc58eae000 rw-s 00000000 00:0f 1035228 /dev/shm/pulse-shm-1172457461
    7fcc58eae000-7fcc58ec3000 r-xp 00000000 08:05 1310772 /usr/lib/libnsl-2.16.so
    7fcc58ec3000-7fcc590c2000 ---p 00015000 08:05 1310772 /usr/lib/libnsl-2.16.so
    7fcc590c2000-7fcc590c3000 r--p 00014000 08:05 1310772 /usr/lib/libnsl-2.16.so
    7fcc590c3000-7fcc590c4000 rw-p 00015000 08:05 1310772 /usr/lib/libnsl-2.16.so
    7fcc590c4000-7fcc590c6000 rw-p 00000000 00:00 0
    7fcc590c6000-7fcc59379000 r-xp 00000000 08:05 1335703 /usr/lib/libvorbisenc.so.2.0.9
    7fcc59379000-7fcc59578000 ---p 002b3000 08:05 1335703 /usr/lib/libvorbisenc.so.2.0.9
    7fcc59578000-7fcc59594000 r--p 002b2000 08:05 1335703 /usr/lib/libvorbisenc.so.2.0.9
    7fcc59594000-7fcc59595000 rw-p 002ce000 08:05 1335703 /usr/lib/libvorbisenc.so.2.0.9
    7fcc59595000-7fcc595df000 r-xp 00000000 08:05 1335711 /usr/lib/libFLAC.so.8.2.0
    7fcc595df000-7fcc597de000 ---p 0004a000 08:05 1335711 /usr/lib/libFLAC.so.8.2.0
    7fcc597de000-7fcc597e0000 rw-p 00049000 08:05 1335711 /usr/lib/libFLAC.so.8.2.0
    7fcc597e0000-7fcc597e5000 r-xp 00000000 08:05 1335668 /usr/lib/libasyncns.so.0.3.1
    7fcc597e5000-7fcc599e4000 ---p 00005000 08:05 1335668 /usr/lib/libasyncns.so.0.3.1
    7fcc599e4000-7fcc599e5000 r--p 00004000 08:05 1335668 /usr/lib/libasyncns.so.0.3.1
    7fcc599e5000-7fcc599e6000 rw-p 00005000 08:05 1335668 /usr/lib/libasyncns.so.0.3.1
    7fcc599e6000-7fcc59a45000 r-xp 00000000 08:05 1335721 /usr/lib/libsndfile.so.1.0.25
    7fcc59a45000-7fcc59c45000 ---p 0005f000 08:05 1335721 /usr/lib/libsndfile.so.1.0.25
    7fcc59c45000-7fcc59c47000 r--p 0005f000 08:05 1335721 /usr/lib/libsndfile.so.1.0.25
    7fcc59c47000-7fcc59c48000 rw-p 00061000 08:05 1335721 /usr/lib/libsndfile.so.1.0.25
    7fcc59c48000-7fcc59c4c000 rw-p 00000000 00:00 0
    7fcc59c4c000-7fcc59cab000 r-xp 00000000 08:05 1456447 /usr/lib/pulseaudio/libpulsecommon-2.1.so
    7fcc59cab000-7fcc59eab000 ---p 0005f000 08:05 1456447 /usr/lib/pulseaudio/libpulsecommon-2.1.so
    7fcc59eab000-7fcc59eac000 r--p 0005f000 08:05 1456447 /usr/lib/pulseaudio/libpulsecommon-2.1.so
    7fcc59eac000-7fcc59eae000 rw-p 00060000 08:05 1456447 /usr/lib/pulseaudio/libpulsecommon-2.1.so
    7fcc59eae000-7fcc59eb5000 r-xp 00000000 08:05 1350728 /usr/lib/libjson.so.0.0.1
    7fcc59eb5000-7fcc5a0b4000 ---p 00007000 08:05 1350728 /usr/lib/libjson.so.0.0.1
    7fcc5a0b4000-7fcc5a0b5000 r--p 00006000 08:05 1350728 /usr/lib/libjson.so.0.0.1
    7fcc5a0b5000-7fcc5a0b6000 rw-p 00007000 08:05 1350728 /usr/lib/libjson.so.0.0.1
    7fcc5a0b6000-7fcc5a0fe000 r-xp 00000000 08:05 1350892 /usr/lib/libpulse.so.0.14.3
    7fcc5a0fe000-7fcc5a2fe000 ---p 00048000 08:05 1350892 /usr/lib/libpulse.so.0.14.3
    7fcc5a2fe000-7fcc5a2ff000 r--p 00048000 08:05 1350892 /usr/lib/libpulse.so.0.14.3
    7fcc5a2ff000-7fcc5a300000 rw-p 00049000 08:05 1350892 /usr/lib/libpulse.so.0.14.3
    7fcc5a300000-7fcc5a800000 rw-p 00000000 00:00 0
    7fcc5a8ff000-7fcc5a900000 ---p 00000000 00:00 0
    7fcc5a900000-7fcc5b400000 rw-p 00000000 00:00 0 [stack:13729]
    7fcc5b44b000-7fcc5c5c4000 r-xp 00000000 08:05 1469133 /usr/lib/mozilla/plugins/libflashplayer.so
    7fcc5c5c4000-7fcc5c7c4000 ---p 01179000 08:05 1469133 /usr/lib/mozilla/plugins/libflashplayer.so
    7fcc5c7c4000-7fcc5c899000 rw-p 01179000 08:05 1469133 /usr/lib/mozilla/plugins/libflashplayer.so
    7fcc5c899000-7fcc5c9a8000 rw-p 00000000 00:00 0
    7fcc5c9a8000-7fcc5c9cd000 r-xp 00000000 08:05 1326525 /usr/lib/libjson-glib-1.0.so.0.1400.2
    7fcc5c9cd000-7fcc5cbcc000 ---p 00025000 08:05 1326525 /usr/lib/libjson-glib-1.0.so.0.1400.2
    7fcc5cbcc000-7fcc5cbcd000 r--p 00024000 08:05 1326525 /usr/lib/libjson-glib-1.0.so.0.1400.2
    7fcc5cbcd000-7fcc5cbce000 rw-p 00025000 08:05 1326525 /usr/lib/libjson-glib-1.0.so.0.1400.2
    7fcc5cc0b000-7fcc5cc0e000 r-xp 00000000 08:05 1456503 /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so
    7fcc5cc0e000-7fcc5ce0e000 ---p 00003000 08:05 1456503 /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so
    7fcc5ce0e000-7fcc5ce0f000 r--p 00003000 08:05 1456503 /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so
    7fcc5ce0f000-7fcc5ce10000 rw-p 00004000 08:05 1456503 /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so
    7fcc5ce10000-7fcc5d866000 r-xp 00000000 08:05 1334749 /usr/lib/libQtGui.so.4.8.2
    7fcc5d866000-7fcc5da65000 ---p 00a56000 08:05 1334749 /usr/lib/libQtGui.so.4.8.2
    7fcc5da65000-7fcc5daa7000 r--p 00a55000 08:05 1334749 /usr/lib/libQtGui.so.4.8.2
    7fcc5daa7000-7fcc5daae000 rw-p 00a97000 08:05 1334749 /usr/lib/libQtGui.so.4.8.2
    7fcc5daae000-7fcc5dab2000 rw-p 00000000 00:00 0
    7fcc5dab2000-7fcc5dd73000 r-xp 00000000 08:05 1334737 /usr/lib/libQtCore.so.4.8.2
    7fcc5dd73000-7fcc5df73000 ---p 002c1000 08:05 1334737 /usr/lib/libQtCore.so.4.8.2
    7fcc5df73000-7fcc5df7e000 r--p 002c1000 08:05 1334737 /usr/lib/libQtCore.so.4.8.2
    7fcc5df7e000-7fcc5df7f000 rw-p 002cc000 08:05 1334737 /usr/lib/libQtCore.so.4.8.2
    7fcc5df7f000-7fcc5df80000 rw-p 00000000 00:00 0
    7fcc5dfbd000-7fcc5dfce000 r-xp 00000000 08:05 1459536 /usr/lib/mozilla/plugins/skypebuttons.so
    7fcc5dfce000-7fcc5e1ce000 ---p 00011000 08:05 1459536 /usr/lib/mozilla/plugins/skypebuttons.so
    7fcc5e1ce000-7fcc5e1cf000 r--p 00011000 08:05 1459536 /usr/lib/mozilla/plugins/skypebuttons.so
    7fcc5e1cf000-7fcc5e1d0000 rw-p 00012000 08:05 1459536 /usr/lib/mozilla/plugins/skypebuttons.so
    7fcc5e1d0000-7fcc5e1ff000 r-xp 00000000 08:05 1585363 /usr/lib/jvm/java-7-openjdk/lib/IcedTeaPlugin.so
    7fcc5e1ff000-7fcc5e3fe000 ---p 0002f000 08:05 1585363 /usr/lib/jvm/java-7-openjdk/lib/IcedTeaPlugin.so
    7fcc5e3fe000-7fcc5e400000 rw-p 0002e000 08:05 1585363 /usr/lib/jvm/java-7-openjdk/lib/IcedTeaPlugin.so
    7fcc5e5f9000-7fcc5e5ff000 r-xp 00000000 08:05 1719200 /usr/lib/libcanberra-0.28/libcanberra-pulse.so
    7fcc5e5ff000-7fcc5e7fe000 ---p 00006000 08:05 1719200 /usr/lib/libcanberra-0.28/libcanberra-pulse.so
    7fcc5e7fe000-7fcc5e7ff000 r--p 00005000 08:05 1719200 /usr/lib/libcanberra-0.28/libcanberra-pulse.so
    7fcc5e7ff000-7fcc5e800000 rw-p 00006000 08:05 1719200 /usr/lib/libcanberra-0.28/libcanberra-pulse.so
    7fcc5e800000-7fcc5e900000 rw-p 00000000 00:00 0
    7fcc5e9ff000-7fcc5ea00000 ---p 00000000 00:00 0
    7fcc5ea00000-7fcc5f600000 rw-p 00000000 00:00 0 [stack:13726]
    7fcc5f6ff000-7fcc5f700000 ---p 00000000 00:00 0
    7fcc5f700000-7fcc60200000 rw-p 00000000 00:00 0 [stack:13725]
    7fcc602ff000-7fcc60300000 ---p 00000000 00:00 0
    7fcc60300000-7fcc60d00000 rw-p 00000000 00:00 0 [stack:13724]
    7fcc60dff000-7fcc60e00000 ---p 00000000 00:00 0
    7fcc60e00000-7fcc61700000 rw-p 00000000 00:00 0 [stack:13723]
    7fcc617ff000-7fcc61800000 ---p 00000000 00:00 0
    7fcc61800000-7fcc62100000 rw-p 00000000 00:00 0 [stack:13722]
    7fcc621ff000-7fcc62200000 ---p 00000000 00:00 0
    7fcc62200000-7fcc62f00000 rw-p 00000000 00:00 0 [stack:13721]
    7fcc62fab000-7fcc62fac000 ---p 00000000 00:00 0
    7fcc62fac000-7fcc637ac000 rw-p 00000000 00:00 0 [stack:13720]
    7fcc637ac000-7fcc637b1000 r-xp 00000000 08:05 1310783 /usr/lib/libnss_dns-2.16.so
    7fcc637b1000-7fcc639b0000 ---p 00005000 08:05 1310783 /usr/lib/libnss_dns-2.16.so
    7fcc639b0000-7fcc639b1000 r--p 00004000 08:05 1310783 /usr/lib/libnss_dns-2.16.so
    7fcc639b1000-7fcc639b2000 rw-p 00005000 08:05 1310783 /usr/lib/libnss_dns-2.16.so
    7fcc639ef000-7fcc639f7000 r--p 00000000 08:06 260678 /home/stefano/.config/dconf/user
    7fcc639f7000-7fcc639f8000 r--s 00000000 08:06 684980 /home/stefano/.cache/dconf/user
    7fcc639f8000-7fcc639ff000 r-xp 00000000 08:05 1354677 /usr/lib/gio/modules/libdconfsettings.so
    7fcc639ff000-7fcc63bfe000 ---p 00007000 08:05 1354677 /usr/lib/gio/modules/libdconfsettings.so
    7fcc63bfe000-7fcc63bff000 r--p 00006000 08:05 1354677 /usr/lib/gio/modules/libdconfsettings.so
    7fcc63bff000-7fcc63c00000 rw-p 00007000 08:05 1354677 /usr/lib/gio/modules/libdconfsettings.so
    7fcc63c00000-7fcc64d00000 rw-p 00000000 00:00 0
    7fcc64dff000-7fcc64e00000 ---p 00000000 00:00 0
    7fcc64e00000-7fcc65700000 rw-p 00000000 00:00 0 [stack:13727]
    7fcc657f9000-7fcc657fa000 ---p 00000000 00:00 0
    7fcc657fa000-7fcc65ffa000 rw-p 00000000 00:00 0 [stack:13716]
    7fcc65ffa000-7fcc65ffb000 ---p 00000000 00:00 0
    7fcc65ffb000-7fcc667fb000 rw-p 00000000 00:00 0 [stack:13719]
    7fcc667fb000-7fcc667fc000 ---p 00000000 00:00 0
    7fcc667fc000-7fcc66ffc000 rw-p 00000000 00:00 0 [stack:13718]
    7fcc66ffc000-7fcc66ffe000 r-xp 00000000 08:05 1334848 /usr/lib/libXss.so.1.0.0
    7fcc66ffe000-7fcc671fe000 ---p 00002000 08:05 1334848 /usr/lib/libXss.so.1.0.0
    7fcc671fe000-7fcc671ff000 r--p 00002000 08:05 1334848 /usr/lib/libXss.so.1.0.0
    7fcc671ff000-7fcc67200000 rw-p 00003000 08:05 1334848 /usr/lib/libXss.so.1.0.0
    7fcc67200000-7fcc67300000 rw-p 00000000 00:00 0
    7fcc6730d000-7fcc6735f000 r--p 00000000 08:05 2228918 /usr/share/fonts/TTF/DejaVuSansMono.ttf
    7fcc6735f000-7fcc6739f000 rwxp 00000000 00:00 0
    7fcc673af000-7fcc673ef000 rwxp 00000000 00:00 0
    7fcc673ff000-7fcc67400000 ---p 00000000 00:00 0
    7fcc67400000-7fcc68000000 rw-p 00000000 00:00 0 [stack:13711]
    7fcc68056000-7fcc68057000 rw-p 00000000 00:00 0
    7fcc68057000-7fcc680aa000 r--p 00000000 08:05 2230287 /usr/share/fonts/TTF/DejaVuSerif-Italic.ttf
    7fcc680aa000-7fcc680fe000 r--p 00000000 08:05 2230348 /usr/share/fonts/TTF/DejaVuSerif-Bold.ttf
    7fcc680fe000-7fcc680ff000 ---p 00000000 00:00 0
    7fcc680ff000-7fcc688ff000 rw-p 00000000 00:00 0 [stack:13710]
    7fcc688ff000-7fcc68900000 ---p 00000000 00:00 0
    7fcc68900000-7fcc69400000 rw-p 00000000 00:00 0 [stack:13717]
    7fcc69404000-7fcc694c2000 r--p 00000000 08:05 2231638 /usr/share/fonts/TTF/arial.ttf
    7fcc694c2000-7fcc694e0000 r--p 00000000 08:05 2231639 /usr/share/fonts/TTF/ariblk.ttfAborted
    It's not a very big issue for me, it takes a split second to switch between OpenJDK and Sun but if I happen to forget, things go pear shaped. Anyone else having this issue? I remember something like that, if I am not mistaken, happening with Firefox 3.5 but that has been fixed long ago.
    Last edited by StefaX (2012-08-05 07:32:19)

    Bett help fixing the bug: http://mail.openjdk.java.net/pipermail/ … 19629.html
    https://bugs.archlinux.org/task/30969
    http://icedtea.classpath.org/bugzilla/s … gi?id=1106
    Last edited by AndyRTR (2012-08-03 13:02:52)

  • How to check udp buffer overflow in solaris10

    Hello All,
    We have developped a C++ application which uses connection based udp socket for transfering the data between two solaris10 machines. The data transfer takesplace for every 20 min and continues for about 1 min. The total no of udp sockets i am using is more than 1200. During the time of socket creation i don't set the send and receive buffer size, so the default parameter configured in the system will be considered.
    In certain cases the receiving end application does not receive any data, but the sender continues sending the data, this i could see from the snoop. Also the write operation doesn't fail in the sender side.
    From the snoop command i could see the time interval between the packets sent is 30microseconds. So there could be possibility that udp buffer may overflow.
    Does anybody know the solaris system command to find the udp buffer overflow?.

    You are more likely to get helpful answers about Solaris questions in a Solaris forum. Try these:
    http://forum.java.sun.com/index.jspa?tab=solaris
    http://www.opensolaris.org/os/discussions/
    http://www.opensolaris.org/os/communities/#portal

  • Tiger to Snow Leopard upgrade fails  with buffer overflow

    I'm not sure where to proceed with the following situation:
    I have a 17" MB pro with 1GB memory and 22GB free hard drive space. I booted into the installer from the CD and stepped through the prompts without changing any options to the point where the install starts doing it's magic. Shortly after starting, the install will crash complaining about a buffer overflow during/just after the part where it's finding system files.
    I originally tried to do this with only 10GB free, but after the first failure, I did a repair disk using the Disk Utility and removed a bunch of really old files I no longer needed, which brought the available disk space to 22GB, but this did not help anything. At this point, I'm not sure what to do. I use Carbon Copy Cloner as a backup so I can do a full wipe and install, however I would prefer to avoid that as it is a lot of work to get things back.
    Any assistance is greatly appreciated!
    Error log follows. I cut out a lot of stuff so please let me know if that detail is needed.
    Sep 10 10:35:26 localhost OSInstaller[142]: Total install size including padding: 7325778944 b
    Sep 10 10:35:28 localhost OSInstaller[142]: Starting installation:
    Sep 10 10:35:28 localhost OSInstaller[142]: Calculating expected install size requirements
    Sep 10 10:35:28 localhost Unknown[84]: 2009-09-10 10:35:28.624 Mac OS X Installer[142:c607] Looking for system packages
    Sep 10 10:35:42 localhost Unknown[84]: 2009-09-10 10:35:42.115 Mac OS X Installer[142:c607] Finding system files...
    Sep 10 10:36:01 localhost Unknown[84]: buffer overflow!
    Sep 10 10:37:55 localhost LCA[83]: Child exited with status 6
    Sep 10 10:37:59 localhost Unknown[162]: Launching the Installer Crash Log Viewer
    Sep 10 10:38:32 localhost ReportCrash[159]: Process: Mac OS X Installer [142]
    Sep 10 10:38:32 localhost ReportCrash[159]: Path: /System/Installation/CDIS/Mac OS X Installer.app/Contents/MacOS/Mac OS X Installer
    Sep 10 10:38:32 localhost ReportCrash[159]: Identifier: Mac OS X Installer
    Sep 10 10:38:32 localhost ReportCrash[159]: Version: ??? (???)
    Sep 10 10:38:32 localhost ReportCrash[159]: Code Type: X86 (Native)
    Sep 10 10:38:32 localhost ReportCrash[159]: Parent Process: LCA [83]
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Date/Time: 2009-09-10 10:36:12.446 -0700
    Sep 10 10:38:32 localhost ReportCrash[159]: OS Version: Mac OS X 10.6 (10A432)
    Sep 10 10:38:32 localhost ReportCrash[159]: Report Version: 6
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Exception Type: EXC_CRASH (SIGABRT)
    Sep 10 10:38:32 localhost ReportCrash[159]: Exception Codes: 0x0000000000000000, 0x0000000000000000
    Sep 10 10:38:32 localhost ReportCrash[159]: Crashed Thread: 9
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Application Specific Information:
    Sep 10 10:38:32 localhost ReportCrash[159]: abort() called
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 0: Dispatch queue: com.apple.main-thread
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002b78fa machmsgtrap + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x002b8067 mach_msg + 68
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 com.apple.CoreFoundation 0x005d9dbf __CFRunLoopRun + 2447
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.CoreFoundation 0x005d8d34 CFRunLoopRunSpecific + 452
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.CoreFoundation 0x005d8b61 CFRunLoopRunInMode + 97
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.HIToolbox 0x05143fec RunCurrentEventLoopInMode + 392
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 com.apple.HIToolbox 0x05143da3 ReceiveNextEventCommon + 354
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 com.apple.HIToolbox 0x05143c28 BlockUntilNextEventMatchingListInMode + 81
    Sep 10 10:38:32 localhost ReportCrash[159]: 8 com.apple.AppKit 0x00bdbb99 _DPSNextEvent + 847
    Sep 10 10:38:32 localhost ReportCrash[159]: 9 com.apple.AppKit 0x00bdb40e -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    Sep 10 10:38:32 localhost ReportCrash[159]: 10 com.apple.AppKit 0x00b9d5fb -[NSApplication run] + 821
    Sep 10 10:38:32 localhost ReportCrash[159]: 11 com.apple.AppKit 0x00b95695 NSApplicationMain + 574
    Sep 10 10:38:32 localhost ReportCrash[159]: 12 com.apple.MacOSXInstaller 0x00006393 0x1000 + 21395
    Sep 10 10:38:32 localhost ReportCrash[159]: 13 com.apple.MacOSXInstaller 0x00002f25 0x1000 + 7973
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 1:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002e582a _semwaitsignal + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x00311681 nanosleep$UNIX2003 + 188
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 libSystem.B.dylib 0x00347872 sleep$UNIX2003 + 63
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.installframework 0x000abe13 dologwatch + 51
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 2: Dispatch queue: com.apple.libdispatch-manager
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002de10a kevent + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x002de824 dispatch_mgrinvoke + 215
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 libSystem.B.dylib 0x002ddce1 dispatch_queueinvoke + 163
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 libSystem.B.dylib 0x002dda86 dispatch_workerthread2 + 234
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 libSystem.B.dylib 0x002dd511 pthreadwqthread + 390
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 libSystem.B.dylib 0x002dd356 start_wqthread + 30
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 3:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002b78fa machmsgtrap + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x002b8067 mach_msg + 68
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 com.apple.CoreFoundation 0x005d9dbf __CFRunLoopRun + 2447
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.CoreFoundation 0x005d8d34 CFRunLoopRunSpecific + 452
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.CoreFoundation 0x005d8b61 CFRunLoopRunInMode + 97
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.Foundation 0x00863498 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 329
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 com.apple.Foundation 0x0082a964 -[NSThread main] + 45
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 com.apple.Foundation 0x0082a914 _NSThread__main_ + 1499
    Sep 10 10:38:32 localhost ReportCrash[159]: 8 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 9 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 4:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002b78fa machmsgtrap + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x002b8067 mach_msg + 68
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 com.apple.CoreFoundation 0x005d9dbf __CFRunLoopRun + 2447
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.CoreFoundation 0x005d8d34 CFRunLoopRunSpecific + 452
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.CoreFoundation 0x005d8b61 CFRunLoopRunInMode + 97
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.Foundation 0x008643e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 com.apple.Foundation 0x008b93c8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 79
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 com.apple.osinstallframework 0x0002dbc3 -[OSPreInstallSizingQueueElement _calculateReapedFreeSpace] + 176
    Sep 10 10:38:32 localhost ReportCrash[159]: 8 com.apple.osinstallframework 0x0002e1dd -[OSPreInstallSizingQueueElement run] + 178
    Sep 10 10:38:32 localhost ReportCrash[159]: 9 com.apple.installframework 0x0007be54 -[IFSession(Jobs) _runMetaQueueEngine] + 1594
    Sep 10 10:38:32 localhost ReportCrash[159]: 10 com.apple.Foundation 0x0082a964 -[NSThread main] + 45
    Sep 10 10:38:32 localhost ReportCrash[159]: 11 com.apple.Foundation 0x0082a914 _NSThread__main_ + 1499
    Sep 10 10:38:32 localhost ReportCrash[159]: 12 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 13 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 5:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002b795a semaphoretimedwait_signaltrap + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x002e5469 pthread_condwait + 1066
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 libSystem.B.dylib 0x00314268 pthreadcond_timedwait_relativenp + 47
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.Foundation 0x00866aec -[NSCondition waitUntilDate:] + 453
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.Foundation 0x0081f881 -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.Foundation 0x0081f764 -[NSConditionLock lockWhenCondition:] + 69
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 com.apple.installframework 0x0006aef6 +[IFDTargetController(WorkerThread) _handleTargetRequests] + 1169
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 com.apple.Foundation 0x0082a964 -[NSThread main] + 45
    Sep 10 10:38:32 localhost ReportCrash[159]: 8 com.apple.Foundation 0x0082a914 _NSThread__main_ + 1499
    Sep 10 10:38:32 localhost ReportCrash[159]: 9 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 10 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 6:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002e582a _semwaitsignal + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x00311681 nanosleep$UNIX2003 + 188
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 com.apple.Foundation 0x008b4c30 +[NSThread sleepForTimeInterval:] + 123
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.SystemMigration 0x01a04b69 -[SMManager _suppressSpotlightThread:] + 104
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.Foundation 0x0082a964 -[NSThread main] + 45
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.Foundation 0x0082a914 _NSThread__main_ + 1499
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 7:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002d6876 select$DARWIN_EXTSN + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 com.apple.CoreFoundation 0x0061904d __CFSocketManager + 1085
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 8:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x002b78fa machmsgtrap + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x002b8067 mach_msg + 68
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 com.apple.CoreFoundation 0x005d9dbf __CFRunLoopRun + 2447
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 com.apple.CoreFoundation 0x005d8d34 CFRunLoopRunSpecific + 452
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.CoreFoundation 0x005d8b61 CFRunLoopRunInMode + 97
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.Foundation 0x008643e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 com.apple.Foundation 0x008b93c8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 79
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 com.apple.installframework 0x0007d48d -[IFDInstallController(Private) _install] + 1561
    Sep 10 10:38:32 localhost ReportCrash[159]: 8 com.apple.osinstallframework 0x00018ccc -[OSInstallController(Private) _install] + 552
    Sep 10 10:38:32 localhost ReportCrash[159]: 9 com.apple.Foundation 0x0082a964 -[NSThread main] + 45
    Sep 10 10:38:32 localhost ReportCrash[159]: 10 com.apple.Foundation 0x0082a914 _NSThread__main_ + 1499
    Sep 10 10:38:32 localhost ReportCrash[159]: 11 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 12 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 9 Crashed:
    Sep 10 10:38:32 localhost ReportCrash[159]: 0 libSystem.B.dylib 0x00324c8e _semwait_signalnocancel + 10
    Sep 10 10:38:32 localhost ReportCrash[159]: 1 libSystem.B.dylib 0x00324b72 nanosleep$NOCANCEL$UNIX2003 + 166
    Sep 10 10:38:32 localhost ReportCrash[159]: 2 libSystem.B.dylib 0x003a05b2 usleep$NOCANCEL$UNIX2003 + 61
    Sep 10 10:38:32 localhost ReportCrash[159]: 3 libSystem.B.dylib 0x003c1c68 abort + 105
    Sep 10 10:38:32 localhost ReportCrash[159]: 4 com.apple.bom 0x0194fb3d _defaultHandler + 64
    Sep 10 10:38:32 localhost ReportCrash[159]: 5 com.apple.bom 0x0194fa8f _BOMExceptionHandlerCall + 89
    Sep 10 10:38:32 localhost ReportCrash[159]: 6 com.apple.bom 0x01971c01 BOMStreamReadUInt32 + 134
    Sep 10 10:38:32 localhost ReportCrash[159]: 7 com.apple.bom 0x01954e40 BOMBomOpen + 226
    Sep 10 10:38:32 localhost ReportCrash[159]: 8 com.apple.PackageKit 0x019a98e7 -[PKBOM initWithBOMPath:] + 148
    Sep 10 10:38:32 localhost ReportCrash[159]: 9 com.apple.PackageKit 0x019b82fe -[PKReceipt(Private) _BOM] + 77
    Sep 10 10:38:32 localhost ReportCrash[159]: 10 com.apple.PackageKit 0x019b7d55 -[PKReceipt(Private) _directoryEnumerator] + 34
    Sep 10 10:38:32 localhost ReportCrash[159]: 11 com.apple.SystemMigration 0x01a4deff -[SMFindSystemFiles _findSystemPaths] + 1785
    Sep 10 10:38:32 localhost ReportCrash[159]: 12 com.apple.SystemMigration 0x01a4e490 -[SMFindSystemFiles systemPaths] + 796
    Sep 10 10:38:32 localhost ReportCrash[159]: 13 com.apple.SystemMigration 0x01a50387 -[SMPathAnalyzer prunedSystemPathsReturningSize:] + 179
    Sep 10 10:38:32 localhost ReportCrash[159]: 14 com.apple.SystemMigration 0x01a508ca -[SMPathAnalyzer prunedReaperPathsReturningSize:] + 53
    Sep 10 10:38:32 localhost ReportCrash[159]: 15 com.apple.osinstallframework 0x00028807 -[IFDiskObject(OSExtensions) calculateReapedFreeSpace] + 404
    Sep 10 10:38:32 localhost ReportCrash[159]: 16 com.apple.osinstallframework 0x0002daf4 -[OSPreInstallSizingQueueElement _calculateReapedFreeSpaceThread] + 71
    Sep 10 10:38:32 localhost ReportCrash[159]: 17 com.apple.Foundation 0x0082a964 -[NSThread main] + 45
    Sep 10 10:38:32 localhost ReportCrash[159]: 18 com.apple.Foundation 0x0082a914 _NSThread__main_ + 1499
    Sep 10 10:38:32 localhost ReportCrash[159]: 19 libSystem.B.dylib 0x002e4fe1 pthreadstart + 345
    Sep 10 10:38:32 localhost ReportCrash[159]: 20 libSystem.B.dylib 0x002e4e66 thread_start + 34
    Sep 10 10:38:32 localhost ReportCrash[159]:
    Sep 10 10:38:32 localhost ReportCrash[159]: Thread 9 crashed with X86 Thread State (32-bit):
    Sep 10 10:38:32 localhost ReportCrash[159]: eax: 0x0000003c ebx: 0x00324ad9 ecx: 0xb04aa82c edx: 0x00324c8e
    Sep 10 10:38:32 localhost ReportCrash[159]: edi: 0x00000000 esi: 0xb04aa888 ebp: 0xb04aa868 esp: 0xb04aa82c
    Sep 10 10:38:32 localhost ReportCrash[159]: ss: 0x0000001f efl: 0x00000247 eip: 0x00324c8e cs: 0x00000007
    Sep 10 10:38:32 localhost ReportCrash[159]: ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    Sep 10 10:38:32 localhost ReportCrash[159]: cr2: 0xffe2a178
    Sep 10 10:38:32 localhost ReportCrash[159]:

    a brody wrote:
    Regarding the need to buy the packaged bundle, I keep seeing folks here and elsewhere claiming that is not necessary.
    That's because they have not read, or concern themselves with the license agreement. Section 2. "Permitted License Uses and Restrictions", section C says on http://images.apple.com/legal/sla/docs/macosx106.pdf
    It's been read forwards, backwards, and upside down. Nowhere on the packaging is there any identification of the $29 (or $49 family pack) version as only suitable as a "Leopard upgrade" version. There are vague mentions about it on Apple's online sales page and in press releases. I've read the license terms thoroughly and the only conclusion that could reasonably be conferred is that the $29 version carries a "single user" license simply because it doesn't say "family pack". There are plenty of reports that it installs over Tiger just fine.
    Granted I've read numerous reports and I installed my copy over Leopard. However - imagine someone who vaguely heard about it, walked into a store and bought a copy, thoroughly looked over the box and the license terms (within the disc), and installed it in good faith over Tiger. There is ZERO, ZIP, NADA on the package that would lead anyone to believe it is anything but a copy with a "SINGLE USER" license where the terms don't preclude installing over Tiger.
    C. Leopard Upgrade Licenses. If you have purchased an Upgrade for Mac OS X Leopard license, then subject to the terms and conditions of this License, you are granted a limited non-exclusive license to install, use and run one (1) copy of the Apple Software on a single Apple-branded computer as long as that computer has a properly licensed copy of *Mac OS X Leopard already installed on it.*
    The emphasis above is mine.
    While this may not be enforced by a software key, it is there in the license agreement on the PDF included on the CD, when you purchase the under $100 licenses, which are also called "Upgrade" on the store.
    There's an opinion that "Leopard upgrade" only applies to the "Up To Date" versions that require proof of purchase of a recent Mac computer. The reports on those installer discs are that they do in fact check for a valid Leopard installation.
    The following has the most in-depth discussion on the subject of whether or not the license allows for Snow Leopard over Tiger that I've seen so far:
    http://www.mackb.com/Uwe/Forum.aspx/mac/26361/the-29-purchase-price-of-Snow-Leop ard
    This is the best description I've heard on it, from someone who identifies himself as "David Empson":
    http://www.mackb.com/Uwe/Threads/Single.aspx/mac/26361?ArtId=1j5mofd.1pw6lllbtpj dwN%25dempson%40actrix.gen.nz
    If someone walks in and buys Snow Leopard, without written notice from
    Apple that they are buying an Upgrade version which requires Leopard,
    and without discussing that point with the seller, the buyer is under no
    obligation to have researched their purchase in advance and know all of
    Apple's publicity statements from three months ago.
    They are buying it in good faith, and the contract (licence) is valid.

  • Short dump in SAP R/3: SQL statement buffer overflow?

    Hello,
    I hope someone can help us with the following problem:
    A short dump in SAP R/3 (DBIF_RSQL_INVALID_RSQL, CX_SY_OPEN_SQL_DB)
    occurred during a delta load, which worked fine for several month.
    The custom code crashes at a FETCH NEXT CURSOR statement.
    I assume, it might be a SQL statement buffer overflow in SAP R/3?
    The problem can be reproduced by RSA3, and is therefore not time-dependent.
    The problem did not occur before or on the quality assurance system.
    Cursor code:
          Read all entries since last transfer (delta mechanism)
            OPEN CURSOR WITH HOLD s_cursor FOR
              SELECT * FROM ekko
                WHERE ebeln IN t_selopt_ekko.
    t_selopt_ekko has up to 60.000 data sets, which worked fine in the past.
    It is very likely that the amount of data during the first crash did not exceed this.
    SQL-Trace of RSA3 call:
    It seems that 25150 data set can be processed via fetch before the short dump occurs
    After that object SNAP is written:
    "...DBIF_RSQL_INVALID_RSQL...dynpen00 + 0xab0 at dymain.c:1645 dw.sapP82_D82
    Thdyn...Report für den Extraktoraufruf...I_T_FIELDS...Table IT_43[16x60]TH058FUNCTION=
    RSA3_GET_DATA_SIMPLEDATA=S_S_IF_SIMPLE-T_FIELDSTH100...shmRefCount  = 1...
    ...> 1st level extension part <...isUsed       = 1...isCtfyAble   = 1...> Shareable Table Header Data
    <...tabi         = Not allo......S_CURSORL...SAPLRSA3...LRSA3U06...SAPLRSA3...
    During dump creation the following occurs:
    "...SAPLSPIAGENTCW...CX_DYNAMIC_CHECK=...CRSFH...BALMSGHNDL...
    DBIF_RSQL_INVALID_RSQL...DBIF_RSQL_INVALID_RSQL...DB_ERR_RSQL_00013...
    INCL_ABAP_ERROR...DBIF_INCL_INTERNAL_ERROR...INCL_INTERNAL_ERROR...
    GENERAL_EXC_WITHOUT_RAISING...INCL_SEND_TO_ABAP...INCL_SEARCH_HINTS...
    INCL_SEND_TO_SAP...GENERAL_EXC_WITHOUT_RAISING...GENERAL_ENVIRONMENT...
    GENERAL_TRANSACTION...GENERAL_INFO...GENERAL_INFO_INTERNAL...
    DBIF_INCL_INTERNAL_CALL_CODE..."
    Basis says, that the Oracle data base works fine. The problem seems to be a SAP R/3 buffer.
    Does anyone had a similar problem or knows where such a buffer might be or how it can be enlarged?
    Best regards
    Thomas
    P.S.
    Found a thread that contains part of the dump message "dynpen00 + 0xab0 at dymain.c:1645":
    Thread: dump giving by std prg contains -> seems not to be helpful
    Found a similar thread:
    Thread: Short dump in RSA3 --Z Data Source -> table space or somting else?
    Edited by: Thomas Köpp on Apr 1, 2009 11:39 AM

    Hi Thomas,
          Its due to different field length.
    Just check it out in code after FETCH NEXT CURSOR what internal table you have mention.
    that internal table shoul deffined by taking refrence of ekko, because your code is
    OPEN CURSOR WITH HOLD s_cursor FOR
    SELECT * FROM ekko
    WHERE ebeln IN t_selopt_ekko.
    hope you got solution.
    Regards,

  • Microsoft C++ Buffer Overflow Error

    I have created two movies from iPhoto on my Mac. When I move them to an XP machine, sometime after 30 minutes of playing, I get the Microsoft C++ Buffer Overflow Error message, and Quicktime for Windows aborts. I have no problems playing them to completion on several Macs.
    I upgraded to the latest QT version, still see the problem.
    Any help appreciated.

    You're having the same issue as I...see my post here: http://discussions.apple.com/thread.jspa?threadID=672272&tstart=30
    Unfortunately, though, I have not gotten a response to my original post.

  • Exception of buffer overflow.

    Hi There,
    I have a code to read the text file in jsp, the problem i am facing is of buffer overflow as the text file contains more than 2000 records and when i upload data to database it throws exception of buffer overflow, any help will be appriciated.
    Thanks.

    P.S. A JSP should, obviously, do nothing but produce HTML, which is what it is meant for after all. Any other actions should, of course, be handled be external classes and uploads and other "like" actions should be done by servlets, again, of course. You do know this, right? You do know that scriptlets in a JSP are 1) just plain wrong, and 2) a maintainance nightmare, right? (among other things that are just plain wrong with this "plan".

  • Buffer Overflow -200141

    Hello,
    I modified the very simple example "Cont-Ext-Buff-Cnt" to use 20MHz source clock and connected the signal of my encoder to gate. I can read fine with slow RPM, 1000 or lower. But I do get Overflow problem (-200141) for RPM > 1000. I am using 16 MIO E series card. I changed the BufferSize, Rate, # of samples, but still had the same problem over 1000 RPM. I am using Visual C++ 2005/NIDAQmx8.5/Vista. My processor speed is very good. Here is a snippet of the code I am using. Could anyone help me with this issue, or had a similar situation?
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateCICountEdgesChan(taskHandle,"Dev1/Ctr0","",DAQmx_Val_Rising,0,DAQmx_Val_CountUp));
    DAQmxErrChk (DAQmxSetCICountEdgesTerm(taskHandle,"Dev1/Ctr0","/Dev1/20MHzTimebase"));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev1/PFI7",200000,DAQmx_Val_Falling,DAQmx_Val_ContSamps,3600));
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    while(i < 100) { // # of iterations
    i++;
    DAQmxErrChk (DAQmxReadCounterU32(taskHandle,1800,TimeOut,Buffer,3600,&ReadOnTimeCntr,NULL));
    printf("\rTime=%d at loop=%d",ReadOnTimeCntr,i);
    fflush(stdout);

    Hello Neal,
    Thank for the reply, and No, the name is not a comment about NI.
    I tried your suggestions and still couldn't get it to work. I think the error is Buffer overflow and here what it says: " DAQmx Error: Measurements: Data was overwritten before it could be read by the system.
    If Data Transfer Mechanism is Interrupts, try using DMA. Otherwise, divide the input signal before taking the measurement.Task Name: _unnamedTask<0> Status Code: -200141".  I think the "E" card uses DMA automatically, and I don't like to divide the signal of the encoder, as I know it worked before using traditional drivers. Here is the code I am using, this code fails when the RPM of the encoder exceeds about 1300 RPM or so (360 Samps/ Revolution).  I don't know what I am missing as I would think this example would be very trivial.
    int main(void)
    int error=0;
    int i=0;
    TaskHandle taskHandle=0;
    int32 read;
    uInt32 data[8000];
    char errBuff[2048]={'\0'};
    float64 Rate = 80000;
    // DAQmx Configure Code
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateCICountEdgesChan(taskHandle,"Dev1/ctr0","",DAQmx_Val_Rising,0,DAQmx_Val_CountUp));
    DAQmxErrChk (DAQmxSetCICountEdgesTerm(taskHandle, "Dev1/Ctr0", "/Dev1/20MHzTimebase") );
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev1/PFI7",Rate,DAQmx_Val_Rising,DAQmx_Val_ContSamps,50000));
    // DAQmx Start Code
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    printf("Continuously reading. Press Ctrl+C to interrupt\n");
    while( 1 ) {
    // DAQmx Read Code
    DAQmxErrChk (DAQmxReadCounterU32(taskHandle,8000,10.0,data,8000,&read,NULL));
    printf("\rAcquired %d samples",read);
    fflush(stdout);

  • Buffer overflow

    I have created executable file, tested it for several days on my laptop and send it to the customer together with hardware.
    As soon as he received it he  faced buffer overflow problem.
    Is it possible to eliminate this poblem?
    When this error appeares the part of the program that does acceleration analysis still workes but signal generation stopped.
    Unfortunately I do not have this hardware  so I have to modify the program wihou testing it.
    What are the ways to avoid buffer overflow(one of them is probably just to use DAQmx configure input buffer but I do not know where to insert it and how configure it).
    Attachments:
    Generator-Accelerometer New.vi ‏636 KB

    Here is what I see is happening.
    You are using DAQ assistant in the 2nd loop to acquire 1000 samples at 1000 Hz  It is set for continuous samples.  So that will take a second.  Then the data is passed of to the other functions.  I don't know how long they would take to run, but they are pretty substantial.  (By the way, your write measurment file as no data going into it.)  If it takes longer than a second, then the DAQ functions which have been continuing, will have the buffer overwritten and you will get the error.
    You could ignore the error, but that also means you've lost data which may or may not be important.
    It is better to pass the data off into a queue.  Let another parallel loop do the number crunching and saving to file.  Search the labview help and the discussion forums for producer/consumer design architecture for examples.  With only the DAQ assistant in the loop, you will get all of the data.  The only risk would be if the queue would grow without bounds in the event that each chunk of data still takes longer than a second to process.
    Putting a wait statement in the top loop as well will help.  Without a wait statement, a loop will run as fast as it possibly can.  Since you are mainly reading a local variable and some controls such as the stop button, you probably don't need to run instantaneously.  Even a small wait of a few milliseconds can help yield processor time to other loops.
    In your top loop, you are recalculating the waveform and writing it to the analog output on every iteration.  It would be better to put that code in a case statement that only executes in the event the values change.  I believe with continuous samples, and if you allow that channel to regenerate its data, the analog output will run continuously without needing to update it every iteration.
    Also, please move your front panel down and size it to fit closer to the front panel controls. For some reason your VI appears with the title bar off the top of the screen.
    Message Edited by Ravens Fan on 04-08-2008 01:33 PM

  • Data socket buffer overflow detection

    Hello,
    I plan to use data socket to access SharedVariables. I started with the example Buffering.vi from the Shared_Variable_Buffering.lvproj shipped with LabVIEW 2009 SP1 (DSC-Module).
    This example leads to a read buffer overflow caused by the high speed write loop and low speed read loops. The interesting part is, that reading the SharedVariable values using a SharedVariable-Node delivers a warning for that buffer overflow situation. But, the DataSocket-Read doesn't deliver any warning or error and I didn't find a way to detect the overflow. Does someone know how to get this done?
    Thanks for your help.
    Thomas

    Hello Maria,
    thank you for your reply.
    It took a while, but today I checked out the Variable Client - Server.lvproj example shipped with the newest LabVIEW. And I was surprised to find even another possibility to interact with Shared-Variables: the new VI's contained in the DataComunication/SharedVariables palette (used by the Variable Refnum API Client.vi in the example).
    And with the DSC-Module, another possibility is available: the also new VI's contained in the DSC Module/Tags palette (try the DSC Tag API.lvproj example, but don't forget to manually deploy the libs before starting the VI's).
    So, plenty of possibilities available. It will take some time to realize the advantages (or disadvantages) of each one, especially for the new VI's.
    Let's see what possibilities we gain with LabVIEW 2010...
    Regards,
    Thomas

  • Buffer overflow in sql plus...

    Hi,
    i am getting an error 'ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes' while using DBMS_OUTPUT function in a loop in pl/sql block in sql plus environment. please help me in this regard that how can i over come this error.
    thanks,

    i got the sulotion!
    it was really simple by setting the environment before running that code.
    Dbms_Output.Enable (1000000);
    although it is not permanent sulotion for the problem but at least one can get the much more output by increasing the limit of buffer size.
    best regards,

  • "iTunes has stopped working" (Buffer Overflow)

    My computer ran the update to 10.2.1.1 and some windows updates last night. I tried to start iTunes this morning and get an error saying "iTunes has stopped working".
    I have tried repair, un-install windows updates, un-istall iTunes and install legacy version, let apple software update re-install update to 10.2.1.1 from legacy version. I keep getting the same buffer overflow exception when I try to start.
    Here is what windows says:
    Problem signature:
    Problem Event Name: BEX
    Application Name: iTunes.exe
    Application Version: 10.2.1.1
    Application Timestamp: 4d756476
    Fault Module Name: StackHash_0a9e
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Offset: 69441800
    Exception Code: c0000005
    Exception Data: 00000008
    OS Version: 6.1.7601.2.1.0.256.48
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Here is what I get from the debugger:
    69441800()
    wdmaud.drv!67b9049f()
    [Frames below may be incorrect and/or missing, no symbols loaded for wdmaud.drv]
    CoreFoundation.dll!6bc0a893()
    CoreFoundation.dll!6bbd5b39()
    CoreFoundation.dll!6bbd5e36()
    CoreFoundation.dll!6bbd6444()
    iTunes.dll!5d4f12af()
    iTunes.dll!5d4f11a1()
    iTunes.dll!5cc50a08()
    iTunes.dll!5c7d51f3()
    iTunes.dll!5c7d4f5d()
    iTunes.dll!5c7d4dac()
    iTunes.exe!000e15f7()
    iTunes.exe!006e0075()
    ntdll.dll!77cafbda()
    ntdll.dll!77cafada()
    ntdll.dll!77cc9d4c()
    kernel32.dll!76f7886b()
    iTunes.exe!000e1984()
    kernel32.dll!76f733ca()
    ntdll.dll!77cc9ed2()
    ntdll.dll!77cc9ea5()
    Thanks

    I have the exact same error as Darsch with Windows 7, 64-bit with the same symptoms.
    Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.5.1.42
      Application Timestamp:    4ebf7d7c
      Fault Module Name:    MSVCR80.dll
      Fault Module Version:    8.0.50727.6195
      Fault Module Timestamp:    4dcddbf3
      Exception Offset:    00026b72
      Exception Code:    c000000d
      Exception Data:    00000000
      OS Version:    6.1.7601.2.1.0.256.48
      Locale ID:    1033
      Additional Information 1:    aec1
      Additional Information 2:    aec178c4debdc54fae8bafc6bd84621d
      Additional Information 3:    7696
      Additional Information 4:    7696eb266721b0f3efdd5c932aadd6a6
    Tried removing and reinstalling all apple sw as suggested here: http://support.apple.com/kb/HT1923 and it didn't work. Tried rolling back to my last working itunes version and no luck. Tried loading old itunes libraries and get the same error. Any help here would be appreciated.  Thanks..

  • RVS4000 IPS identifies flickr images, etc., as Microsoft Color Management Module Buffer Overflow exploit

    If I enable the IPS function in my RVS4000, some images from various popular websites like Flickr and blogspot will not load.  They are detected by IPS as "EXPLOIT Microsoft Color Management Module Buffer Overflow"
    You can test it yourself with this image hosted at blogspot:
    http://4.bp.blogspot.com/_a7jkcMVp5Vg/TF3gjYJrHBI/AAAAAAAAMqM/ScJAA8y9nZk/s400/sorry.jpg
    With IPS enabled, that image will not load.  With IPS disabled, it will.
    I am using firmware 1.3.2.0 and IPS signature version 1.42.
    I believe IPS is incorrectly identifying these images as containing the color management buffer overflow exploit.
    Any chance this could be corrected in the next IPS signature release?
    As an aside, I would prefer to open a case with support about this, but I really can't figure out how to do so.  I purchased the RVS4000 when it was still made by linksys.  I would assume I should still be able to get support on it now that it's own by Cisco, but trying to open a case on the web for this seems impossible.  Am I missing something?

    i've just removed the proxy in my browser, so that it connects direct.
    et voila: EXPLOIT Microsoft Color Management Module Buffer Overflow
    but this rises the fear that IPS works just as expected when no (external) proxy is used.
    that would be a serious problem, at least because it isn't mentioned in the online help/manual and because i'd leave my real ip at many places, which i wouldn't like.
    i'd be happy to read a response from cisco to the Buffer Overflow (is it a false positive) and if IPS should work when a external proxy is used (via unencrypted connections, so the [w]rvs has a chance to read the communication.

Maybe you are looking for