Seg Fault at exit of trivial c program. Why?

#include <stdio.h>
int main (void) { printf("Hi mom.\n"); }
ldd himom.exe
libc.so.1 => /usr/lib/libc.so.1
libucb.so.1 => /usr/ucblib/libucb.so.1
libresolv.so.2=> /usr/lib/libresolv.so.2
libsocket.so.1=>/usr/lib/libsocket.so.1
libnsl.so.1=> /usr/lib/libnsl.so.1
libelf.so.1=> /usr/libelf.so.1
libdl.so.1=> /usr/lib/libdl.so.1
libmp.so.2=> /usr/lib/libmp.so.2
/usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
truss ./himom.exe
Incurred fault #6, FLTBOUNDS %pc = 0x00000008
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
Received signal #11, SIGSEGV [default]
siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
*** process killed ***
I cannot arrange things so it avoid the seg fault. Why not?
I can omit the printf altogether. Changes nothing about the segfault. My program runs and does all that it is supposed to do, but ALWAYS seg faults at the conclusion.
How do I go about debugging this further?
ggw

How are you compiling it.
The library list for a similar program I get is completely different...
ds2> gcc -o fred fred.c
ds2> ./fred
hello world
ds2> ldd fred
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
ds2> cat fred.c
#include <stdio.h>
int main(void) {printf("hello world\n");}

Similar Messages

  • Apache Seg Fault

    I have an apache 1.3 server that is intermittently seg faulting. The setup is 32 bit RHEL 5.2 Apache/mod_perl, Apache::DBI, Oracle 10.2.0.2 Server, Oracle 10.2.0.4 instant client.
    This does not happen when using the 10.1.0.5 instant client.
    The core dump shows the seg fault happening here:
    #0 0x06d39c9f in DecodePrivateKeyInfo () from /usr/local/oracle/instantclient_10_2/libnnz10.so
    Has anyone seen this before?

    I couldn't find anything on Metalink that sounds like that.
    Is the problem easily reproducible or does it occur intermittently?
    If you have a support contract with Oracle, you should open a service request.
    At any rate, it would be good if you could create a stack trace from the dump:
    * Make sure that "ulimit -c unlimited" is set for the user executing the program so that you get a full core dump.
    * Find out which executable it was (assuming the core file is called core.12345, you could "file core.12345").
    * Assuming the executable was "/usr/bin/httpd" and the core file is in /home/apache, start the debugger with "gdb /usr/bin/httpd /home/apache/core.12345".
    * Inside the debugger, type "info threads" to see if there is more then one thread.
    * Type "thread apply all where" to obtain a stack trace for all threads.
    * Type "quit" to exit the debugger.
    Post the stack trace, maybe we can see something from it.
    If you open a service request, include the stack trace.
    Yours,
    Laurenz Albe

  • JVM 1.4 seg faults with pure java code?

    Has anybody else seen JVM 1.4 seg fault when running pure java code? This seems like it shouldn't be possible, but I get the following at indeterminate times. Unfortunately, it is difficult to isolate since decreasing the size of the program avoids the problem. When the seg fault happens, the size in memory is ~1GB and there is plenty of real and virtual memory to spare.
    Unexpected Signal : 11 occurred at PC=0xDE88BC8E
    Function=[Unknown. Nearest: +0x100E]
    Library=/usr/j2se/jre/lib/i386/server/libjvm.so
    Dynamic libraries:
    0x8050000 java
    0xdfb60000 /usr/lib/libthread.so.1
    0xdfba0000 /usr/lib/libdl.so.1
    0xdfab0000 /usr/lib/libc.so.1
    0xde800000 /usr/j2se/jre/lib/i386/server/libjvm.so
    0xdfa40000 /usr/lib/libCrun.so.1
    0xdfa20000 /usr/lib/libsocket.so.1
    0xdf980000 /usr/lib/libnsl.so.1
    0xdf960000 /usr/lib/libm.so.1
    0xdfa70000 /usr/lib/libw.so.1
    0xdf920000 /usr/lib/libmp.so.2
    0xdf8f0000 /usr/j2se/jre/lib/i386/native_threads/libhpi
    .so
    0xdf8c0000 /usr/j2se/jre/lib/i386/libverify.so
    0xdf880000 /usr/j2se/jre/lib/i386/libjava.so
    0xdf860000 /usr/j2se/jre/lib/i386/libzip.so
    0xda890000 /usr/lib/nss_files.so.1
    Local Time = Tue May 14 16:03:38 2002
    Elapsed Time = 72
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D3
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b91 mixed
    mode)
    # An error report file has been saved as hs_err_pid945.log.
    # Please refer to the file for further information.

    Hi sevenM,
    Did you figure out a workaround for this problem?. Did you get it solved with the SUN people?. Is it a known bug?.
    I've got exactly the same problem on the same function and VM library.
    Any info on this is very much welcome.
    Thx
    Krithiga
    I get the same error sometimes with tomcat-4.0.4 on a
    Slackware 8.0.0 and JDK 1.4.0. I don't user any JSPs,
    only servlets and the business calls a remote SLSB on
    a remote JBOSS server and afterwards select some data
    form a remote DB2 7.1 over JDBC.
    Here is the log:
    Unexpected Signal : 11 occurred at PC=0x40267D98
    Function=copy_to_survivor_space__16DefNewGenerationP7oo
    DescPP7oopDesc+0x28
    Library=/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjv
    .so
    Current Java thread:
    at
    at java.net.PlainSocketImpl.socketAccept(Native
    tive Method)
    at
    at
    at
    t
    java.net.PlainSocketImpl.accept(PlainSocketImpl.java:34
    - locked <0x44ed3400> (a
    400> (a java.net.PlainSocketImpl)
    at
    at
    at
    t
    java.net.ServerSocket.implAccept(ServerSocket.java:438)
    at
    at
    at
    t java.net.ServerSocket.accept(ServerSocket.java:409)
    at
    at
    at
    t
    org.apache.catalina.core.StandardServer.await(StandardS
    rver.java:293)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.start(Catalina.jav
    :794)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.execute(Catalina.j
    va:681)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.process(Catalina.j
    va:179)
    at
    at
    at
    t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    at
    at
    t
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
    AccessorImpl.java:39)
    at
    at
    at
    t
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
    ngMethodAccessorImpl.java:25)
    at
    at
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    at
    at
    t
    org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
    a:243)
    Dynamic libraries:
    08048000-0804d000 r-xp 00000000 03:03 757599
    /usr/local/j2sdk1.4.0/bin/java
    0804d000-0804e000 rw-p 00004000 03:03 757599
    /usr/local/j2sdk1.4.0/bin/java
    40000000-40015000 r-xp 00000000 03:03 885142
    /lib/ld-2.2.3.so
    40015000-40016000 rw-p 00014000 03:03 885142
    /lib/ld-2.2.3.so
    40017000-40020000 r-xp 00000000 03:03 69536
    /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
    i.so
    40020000-40021000 rw-p 00008000 03:03 69536
    /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
    i.so
    40021000-40022000 r--p 00000000 03:03 33106
    /usr/lib/locale/en_US/LC_IDENTIFICATION
    40022000-40030000 r-xp 00000000 03:03 885133
    /lib/libpthread-0.9.so
    40030000-40038000 rw-p 0000d000 03:03 885133
    /lib/libpthread-0.9.so
    40038000-4003b000 r-xp 00000000 03:03 885149
    /lib/libdl-2.2.3.so
    4003b000-4003c000 rw-p 00002000 03:03 885149
    /lib/libdl-2.2.3.so
    4003c000-40143000 r-xp 00000000 03:03 885147
    /lib/libc-2.2.3.so
    40143000-40149000 rw-p 00106000 03:03 885147
    /lib/libc-2.2.3.so
    4014d000-40410000 r-xp 00000000 03:03 1150891
    /usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
    40410000-40558000 rw-p 002c2000 03:03 1150891
    /usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
    4056c000-4057d000 r-xp 00000000 03:03 885152
    /lib/libnsl-2.2.3.so
    4057d000-4057f000 rw-p 00010000 03:03 885152
    /lib/libnsl-2.2.3.so
    40581000-405b5000 r-xp 00000000 03:03 950285
    /usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
    .0.so
    405b5000-405c1000 rw-p 00033000 03:03 950285
    /usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
    .0.so
    405c3000-405e4000 r-xp 00000000 03:03 885138
    /lib/libm-2.2.3.so
    405e4000-405e5000 rw-p 00020000 03:03 885138
    /lib/libm-2.2.3.so
    405e5000-405f6000 r-xp 00000000 03:03 69542
    /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    405f6000-405f8000 rw-p 00010000 03:03 69542
    /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    405f8000-40619000 r-xp 00000000 03:03 69543
    /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    40619000-4061b000 rw-p 00020000 03:03 69543
    /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    4061c000-40630000 r-xp 00000000 03:03 69545
    /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40630000-40633000 rw-p 00013000 03:03 69545
    /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40633000-4063a000 r--s 00000000 03:03 890455
    /usr/local/jakarta-tomcat-4.0.4/bin/bootstrap.jar
    4063a000-40641000 r--s 00000000 03:03 890436
    /usr/local/jakarta-tomcat-4.0.4/common/lib/naming-comm
    n.jar
    40641000-40655000 r--s 00000000 03:03 890437
    /usr/local/jakarta-tomcat-4.0.4/common/lib/servlet.jar
    40655000-4065e000 r--s 00000000 03:03 890438
    /usr/local/jakarta-tomcat-4.0.4/common/lib/naming-reso
    rces.jar
    4065e000-40660000 r--s 00000000 03:03 890439
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jdbc2_0-std
    xt.jar
    40660000-4066c000 r--s 00000000 03:03 890440
    /usr/local/jakarta-tomcat-4.0.4/common/lib/activation.
    ar
    4066c000-4066f000 r--s 00000000 03:03 890441
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jta-spec1_0
    1.jar
    4066f000-4082a000 r--s 00000000 03:03 890443
    /usr/local/jakarta-tomcat-4.0.4/common/lib/xerces.jar
    4082a000-40874000 r--s 00000000 03:03 890444
    /usr/local/jakarta-tomcat-4.0.4/common/lib/tyrex-0.9.7
    0.jar
    40874000-408b9000 r--s 00000000 03:03 890445
    /usr/local/jakarta-tomcat-4.0.4/common/lib/mail.jar
    408b9000-408d2000 r--s 00000000 03:03 890446
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jndi.jar
    408d2000-40958000 r--s 00000000 03:03 890482
    /usr/local/jakarta-tomcat-4.0.4/common/lib/db2java.jar
    40958000-4096e000 r--s 00000000 03:03 890483
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-clien
    .jar
    4096e000-4097c000 r--s 00000000 03:03 890484
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-j2ee.
    ar
    4097c000-40996000 r--s 00000000 03:03 890485
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jaas.jar
    40996000-409a0000 r--s 00000000 03:03 890486
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jbosssx-cli
    nt.jar
    409a0000-409a6000 r--s 00000000 03:03 890487
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jnp-client.
    ar
    409a6000-40d10000 r--s 00000000 03:03 890488
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jt400_3.0.j
    r
    40d10000-40d37000 r--s 00000000 03:03 890489
    /usr/local/jakarta-tomcat-4.0.4/common/lib/log4j.jar
    40d37000-423af000 r--s 00000000 03:03 69634
    /usr/local/j2sdk1.4.0/jre/lib/rt.jar
    423f1000-42408000 r--s 00000000 03:03 69566
    /usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
    42408000-42476000 r--s 00000000 03:03 69568
    /usr/local/j2sdk1.4.0/jre/lib/jsse.jar
    42476000-42489000 r--s 00000000 03:03 69567
    /usr/local/j2sdk1.4.0/jre/lib/jce.jar
    42489000-4270a000 r--s 00000000 03:03 69632
    /usr/local/j2sdk1.4.0/jre/lib/charsets.jar
    447b2000-447b3000 r--p 00000000 03:03 33104
    /usr/lib/locale/en_US/LC_MEASUREMENT
    447b3000-447b4000 r--p 00000000 03:03 33102
    /usr/lib/locale/en_US/LC_TELEPHONE
    447b4000-447b5000 r--p 00000000 03:03 33103
    /usr/lib/locale/en_US/LC_ADDRESS
    447b5000-447b6000 r--p 00000000 03:03 33100
    /usr/lib/locale/en_US/LC_NAME
    447b6000-447b7000 r--p 00000000 03:03 33109
    /usr/lib/locale/en_US/LC_PAPER
    447b7000-447b8000 r--p 00000000 03:03 459106
    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    447b8000-447b9000 r--p 00000000 03:03 33110
    /usr/lib/locale/en_US/LC_MONETARY
    447b9000-447bf000 r--p 00000000 03:03 33107
    /usr/lib/locale/en_US/LC_COLLATE
    447bf000-447c0000 r--p 00000000 03:03 33101
    /usr/lib/locale/en_US/LC_TIME
    4c840000-4c841000 r--p 00000000 03:03 33105
    /usr/lib/locale/en_US/LC_NUMERIC
    4c841000-4c85c000 r--p 00000000 03:03 33108
    /usr/lib/locale/en_US/LC_CTYPE
    4c85c000-4c85e000 r--s 00000000 03:03 36766
    /usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
    4c85e000-4c866000 r--s 00000000 03:03 890421
    /usr/local/jakarta-tomcat-4.0.4/server/lib/jakarta-reg
    xp-1.2.jar
    4c866000-4c867000 r--s 00000000 03:03 890422
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-co
    mon.jar
    4c867000-4c871000 r-xp 00000000 03:03 885148
    /lib/libnss_compat-2.2.3.so
    4c871000-4c873000 rw-p 00009000 03:03 885148
    /lib/libnss_compat-2.2.3.so
    4c89e000-4c8bb000 r--s 00000000 03:03 36765
    /usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
    4c8bb000-4c95e000 r--s 00000000 03:03 36767
    /usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
    4c95e000-4c96c000 r--s 00000000 03:03 36768
    /usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
    4c96c000-4ce06000 r--s 00000000 03:03 298906
    /usr/local/j2sdk1.4.0/lib/tools.jar
    4ce06000-4ce0c000 r--s 00000000 03:03 890423
    /usr/local/jakarta-tomcat-4.0.4/server/lib/commons-log
    ing.jar
    4ce0c000-4ce0e000 r--s 00000000 03:03 890424
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-in
    oker.jar
    4ce0e000-4ce11000 r--s 00000000 03:03 890425
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-ma
    ager.jar
    4ce11000-4ce19000 r--s 00000000 03:03 890426
    /usr/local/jakarta-tomcat-4.0.4/server/lib/warp.jar
    4ce19000-4ceab000 r--s 00000000 03:03 890427
    /usr/local/jakarta-tomcat-4.0.4/server/lib/catalina.ja
    4ceab000-4ceb4000 r--s 00000000 03:03 890428
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-http
    1.jar
    4ceb4000-4ceb9000 r--s 00000000 03:03 890429
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-de
    ault.jar
    4ceb9000-4cec9000 r--s 00000000 03:03 890430
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-ajp.
    ar
    4cec9000-4ceed000 r--s 00000000 03:03 890431
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-util
    jar
    4ceed000-4cefb000 r--s 00000000 03:03 890432
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-coyo
    e.jar
    4cefb000-4cf01000 r--s 00000000 03:03 890434
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-we
    dav.jar
    4cf01000-4cf13000 r-xp 00000000 03:03 69548
    /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    4cf13000-4cf14000 rw-p 00011000 03:03 69548
    /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    4cf14000-4cf25000 r--s 00000000 03:03 890458
    /usr/local/jakarta-tomcat-4.0.4/lib/jasper-runtime.jar
    4cf25000-4cf59000 r--s 00000000 03:03 890459
    /usr/local/jakarta-tomcat-4.0.4/lib/jasper-compiler.ja
    4cf59000-4cf5e000 r--s 00000000 03:03 890460
    /usr/local/jakarta-tomcat-4.0.4/lib/naming-factory.jar
    4cf5e000-4cf5f000 r--s 00000000 03:03 789670
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46958.tm
    (deleted)
    4cf5f000-4cf60000 r--s 00000000 03:03 789673
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46959.tm
    (deleted)
    4cf60000-4cf63000 r--s 00000000 03:03 430785
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/arenajobs.jar
    4cf63000-4d067000 r--s 00000000 03:03 430786
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/arenatrading.jar
    4d067000-4d08c000 r--s 00000000 03:03 430787
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/quartz.jar
    4d08c000-4d08e000 r--s 00000000 03:03 430788
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/scheduler.jar
    4d08e000-4d091000 r--s 00000000 03:03 790391
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46960.tm
    (deleted)
    4d091000-4d195000 r--s 00000000 03:03 790392
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46961.tm
    (deleted)
    4d195000-4d1ba000 r--s 00000000 03:03 790394
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46962.tm
    (deleted)
    4d1ba000-4d1bc000 r--s 00000000 03:03 790395
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46963.tm
    (deleted)
    4d1bc000-4d1bd000 r-xp 00000000 03:03 69559
    /usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
    4d1bd000-4d1be000 rw-p 00000000 03:03 69559
    /usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
    4d1be000-4d1c2000 r-xp 00000000 03:03 69558
    /usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
    4d1c2000-4d1c3000 rw-p 00003000 03:03 69558
    /usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
    4d1c9000-4d1d2000 r-xp 00000000 03:03 885155
    /lib/libnss_files-2.2.3.so
    4d1d2000-4d1d3000 rw-p 00008000 03:03 885155
    /lib/libnss_files-2.2.3.so
    Local Time = Tue Oct 8 18:57:29 2002
    Elapsed Time = 32640
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D3
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
    mode)
    # An error report file has been saved as
    hs_err_pid26505.log.
    # Please refer to the file for further information.

  • Pacman seg fault(Solved but with comments on pacman-db-upgrade)

    Performed an install from FTP and booted into root login.
    Performed pacman -Syu  and received report system up to date.
    Performed downloads via pacman of twelve packages including xorg and xfce4.
    Performed download of abs package. 
    Downloaded abs repos.
    Modified abs extra vlc package and performed pacman -U install of modified package.
    Pacman working well at this point.
    Rebooted.
    After reaching xfce4 Desktop, attemptd to install firefox.
    Pacman -S firefox produced..... /usr/bin/pacman/ report(forget the exact error)
    Subsequent trials with ...pacman -U .... produces seg fault.
    Cannot use pacman.  All other programs seem to perform correctly.  Perhaps have lost DNS.
    Cannot perform ...pacman -Syu --debug.....segfaults.
    Last edited by lilsirecho (2011-07-19 18:19:49)

    Solved the difficulty but have no idea what can be done to prevent it from occuring for another user.
    It seems that the db did not get upgraded when the ...pacman-db-upgrade ...command was executed.  There was no statement for ..."pre 3.5 db" upgrade....while executing the command.
    After re-install, the upgrade command performed correctly and pacman now performs correctly after reboots.
    The question comes up as to what to do if the upgrade command does not work correctly and whether some indicator of correct response should appear in the beginners guide.  Additionally, what can be done in the event that the upgrade command fails to meet the correct response.
    These questions will in time be resolved by a new .iso but the present exposure is amazing in its consequences!
    Perhaps the upgrade command is also a function of properly synced mirrors but the command requesting the upgrade was ...pacman -Syy... the mirror sync function!
    What do we have...catch22?
    The resultant segfaults make sense if the pacman sync db is not upgraded.
    How is a user to know the upgrade failed?  What to do about such a condition?
    Marking this thread as solved ...with comments...

  • [SOLVED] Seg fault on Haswell processor (TSX+glibc)

    Hello,
    I just installed ArchLinux on a brand new Intel i7 4770S (Haswell) because my old laptop was unable to handle HD content properly under Kdenlive. I have the exact package versions on both machines but when disabling a simple effect in Kdenlive I get a seg fault.
    You can see my bug report on Kdenlive bug tracker here: http://www.kdenlive.org/mantis/view.php?id=3186
    I then looked at the trace and found this stuff about lock elision that seems very (hardware) specific to Haswell CPU.
    http://lwn.net/Articles/534758/
    http://halobates.de/adding-lock-elision-to-linux.pdf
    http://www.phoronix.com/scan.php?page=n … px=MTQzNDk
    http://www.anandtech.com/show/6290/maki … tensions/2
    I looked at the PKGBUILD for the current glibc 2.18-9 and it has the  "--enable-lock-elision" so I used ABS to recompile it without support for it to see if it would make my Kdenlive work again. And yes problem is gone.
    Is this a problem with Kdenlive code or lock elision implementation in current glibc?   Don't know if this is related but I also had some issues with Digikam when using the default glibc.
    Thanks
    Alphazo
    Bug reported: https://bugs.archlinux.org/task/37617#comment116170
    Last edited by alphazo (2013-11-06 08:11:46)

    I've managed to fix it by appending --opencc-options -OPT:Olimit=99999 to nvcc's compiling flags. It compiles and executes fine. Even though that's still a bug (no program should seg fault).

  • Safari seg faults when invoking Live Meeting or Space Cruiser

    Running OSX 10.5.2 and java J2SE5.0. Trying to invoke either LiveMeeting or Space Cruiser (both net conferencing programs) causes Safari to abruptly quit. The stack trace looks like a BAD ACCESS seg fault. Both of these worked previously. Don't know if it is the 10.5.2, Safari 3.1 or the java version that is now causing the problem.
    This is a big step backwards for Apple. These programs are a must in the corporate environment. Does anyone have any experience with this? Is there a Debug setting that will allow these to work?

  • Frozen bubble seg faults.

    I installed frozen-bubble but every time I try to run it, I get the following output and it seg faults..
    tom@tomolds ~ $ frozen-bubble &
    [1] 14199
    tom@tomolds ~ $ Prototype mismatch: sub main::LC_ALL: none vs () at /usr/bin/frozen-bubble line 52
    Prototype mismatch: sub main::LC_NUMERIC: none vs () at /usr/bin/frozen-bubble line 52
    Prototype mismatch: sub main::LC_TIME: none vs () at /usr/bin/frozen-bubble line 52
    Prototype mismatch: sub main::LC_MONETARY: none vs () at /usr/bin/frozen-bubble line 52
    Prototype mismatch: sub main::LC_CTYPE: none vs () at /usr/bin/frozen-bubble line 52
    Prototype mismatch: sub main::LC_MESSAGES: none vs () at /usr/bin/frozen-bubble line 52
    Prototype mismatch: sub main::LC_COLLATE: none vs () at /usr/bin/frozen-bubble line 52
    Constant subroutine main::NULL redefined at /usr/bin/frozen-bubble line 56
    main::BEGIN() called at /usr/lib/perl5/vendor_perl/SDL.pm line 56
    eval {...} called at /usr/lib/perl5/vendor_perl/SDL.pm line 56
    Constant subroutine FBLE::NULL redefined at /usr/lib/perl5/vendor_perl/FBLE.pm line 35
    [[ Frozen-Bubble-2.1.0 ]]
    http://www.frozen-bubble.org/
    Copyright (c) 2000-2006 The Frozen-Bubble Team.
    Artwork: Alexis Younes
    Amaury Amblard-Ladurantie
    Soundtrack: Matthias Le Bidan
    Design & Programming: Guillaume Cottenceau
    Level Editor: Kim and David Joham
    Originally sponsored by Mandriva <http://www.mandriva.com/>
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2, as
    published by the Free Software Foundation.
    [SDL Init] XDM authorization key matches an existing client!XDM authorization key matches an existing client!XDM authorization key matches an existing client!
    [1]+ Segmentation fault frozen-bubble
    Any ideas?
    Thanks in advance..
    Tom

    Had the same problem only when using XDM.
    Here is the solution that worked for me:
    add a line to /etc/X11/xdm/xdm-config
    DisplayManager*authName: MIT-MAGIC-COOKIE-1
    I found this solution from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=486606

  • Flex seg fault

    Hello every one
    I have a little problem and have no idea of how to solve it.
    I'm working on a project where I use bison, scons, flex, gcc and vim.
    I work in writing rules, compilation, writing rules, compilation...
    And at one time flex seg fault :
    flex -i -d -oparser/F2S_lexical.cpp parser/F2S_lexical.lex
    Erreur de segmentation
    /usr/bin/m4:stdin:634: ERROR: end of file in string
    But between two compilation, I have not install or remove any program.
    The project is under subversion and I get the same error with some previous version of my file.
    I have tried to reinstall flex and his dependence but this doesn't work.

    my version is 2.5.34-1 but where can I get the old package,
    it is not in my
    /var/cache/pacman/pkg
    and neither in this mirror
        *  http://phraktured.net/archmirror/ (Note that this cannot be used as an Arch mirror in your pacman.conf, you have to manually download any packages.)
        * http://ftp.tu-chemnitz.de/pub/linux/sun … archlinux/
        * http://ftp.icm.edu.pl/pub/Linux/sunsite … archlinux/
    maybe can I compile it with abs ?

  • How to use the variables of Function exit in the include program

    i have a problem of using the variables of a function exit in the include program..
    If i use those variables there will be an error indicating 'Field FEBVW_IN is unknown. It is neither in one of the specified tables nor defined by a DATA statement'. Please help... Below is the code of the function exit:
    FUNCTION EXIT_SAPLIEDP_202.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IDOC_CONTROL_INDEX)
    *"     VALUE(IDOC_DATA_INDEX)
    *"     VALUE(FEBVW_IN) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_IN) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_IN) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_IN) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_IN) LIKE  FEBPI STRUCTURE  FEBPI
    *"  EXPORTING
    *"     VALUE(I_FIMSG) LIKE  FIMSG STRUCTURE  FIMSG
    *"     VALUE(FEBVW_OUT) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_OUT) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_OUT) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_OUT) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_OUT) LIKE  FEBPI STRUCTURE  FEBPI
    *"  TABLES
    *"      IDOC_CONTROL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_AVIP STRUCTURE  AVIP OPTIONAL
    *"      IDOC_AVIR STRUCTURE  AVIR OPTIONAL
    *"      IDOC_AVIT STRUCTURE  AVIT OPTIONAL
    *"  CHANGING
    *"     REFERENCE(IDOC_AVIK) TYPE  AVIK OPTIONAL
    *"  EXCEPTIONS
    *"      PROC_ERROR
      INCLUDE ZXF08U10.
    Here is the code for the include program.
      INCLUDE ZXF08U10
    MOVE febvw_in TO febvw_out.

    Sometimes you will get this error message when checking include code in exits even though there is really no error - it happens because the include does not realise it is in the function due to the navigation index being out of date.
    Try activating the code - it may work even though the check said there were errors.
    You can also get this issue when trying to drill down on the field in the include to view its structure.
    Andrew

  • Exiting LDB in custom program but contiue with further execution....

    Hello Gurus,
    I have a program attributed a logical database 'VAV'. I have a parameter after the logical selection field for maxium transaction hits. If the logical database selection exceeds the maximum hits , then I want the logical database selection to exit from further selection looping and go to next executable statement.
    In case below, the next executable statement is (WRITE:/ 'Success'.). But I see that the program exits completely instead of going to the next execuatble statement. How can make program execution to go to exit LDB selection loop but still continue with further execution after maximum hit is encountered.
    DATA: i_counter type i.
    SELECTION-SCREEN BEGIN OF BLOCK BSD2 WITH FRAME Title text-025.
    parameters: max_tran(8).
    SELECTION-SCREEN END OF BLOCK BSD2.
    NODES: vbak, vbap.
    start-of-selection.
    GET VBAK FIELDS KUNNR BSARK AUART VBELN BSTNK AUDAT AUGRU ERNAM VKBUR.
    if not max_tran is initial.
        i_counter =  i_counter + 1.
        if i_counter GT max_tran.
          EXIT FROM STEP-LOOP.
        endif.
      endif.
    end-of-selection.
    write:/ 'success'.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Feb 26, 2009 6:26 PM

    Try to remove
    EXIT FROM STEP-LOOP
    and include only
    EXIT
    Please check demo program DEMO_PROGRAM_EXIT_1 & DEMO_PROGRAM_EXIT_2

  • How can i exit in "LOAD-OF-PROGRAM" event?

    Hi, experts.
    I want to know how to exit in "load-of-program event".
    Recently our system was upgraded from 4.6c to ecc 6.0.
    Some programs have a coding as follows.
    LOAD-OF-PROGRAM.
    IF SY-TCODE = 'XXXXX' OR SY-TCODE = 'YYYYY'.
      IF SY-UNAME = 'AAAAA'.
        MESSAGE E000 WITH TEXT-001.
      ENDIF.
    ENDIF.
    CLEAR ............
    PERFORM ..............
    It's running well in 4.6c but occurred error in ecc 6.0 as follows.
    Runtime Errors         SYSTEM_LOAD_OF_PROGRAM_FAILED
    Short text
        Illegal interruption of the event LOAD-OF-PROGRAM.
    During the flow of the event LOAD-OF-PROGRAM (event for the
    initialization of an ABAP program), a condition occurred under which
    the event was to be left early. This is not permitted as it would
    result in an inconsistent status in the ABAP program.
    I think that used a option "message type;e" in the load-of-program event.
    For example, it's ok with "s,i,w" options...
    Teach me how to exit in load-of-program. Thanks.
    p.s That programs' type  is module-pool.
    Regards.
    ytkim.

    Thank you for your answer.
    But my question has not been answered yet.
    It still occured a error as follows.
    Runtime Errors         SYSTEM_LOAD_OF_PROGRAM_FAILED
    Short text
        Illegal interruption of the event LOAD-OF-PROGRAM.
        Error in the ABAP Application Program
        The current ABAP program "YT_TEST06" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
        During the flow of the event LOAD-OF-PROGRAM (event for the
        initialization of an ABAP program), a condition occurred under which
        the event was to be left early. This is not permitted as it would
        result in an inconsistent status in the ABAP program.
    I think that i maybe use the keyword "exit"...

  • OCCI: ORA-21500 [17099] seg faults on 10.2.0.4.1 client

    Hi,
    I've been getting this seg fault using OCCI, my environment:
    Oracle client 10.2.0.4.1 x86_64 (jul 2009) on rhel5.4
    Oracle database 9.2.0.8 x86_64 on rhel4.8
    I've written a g++ multi thread app that is making use of Connection Pooling, within 5 minutes of my app starting it seg faults with:
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    Errors in file :
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    ----- Call Stack Trace -----
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    Errors in file :
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    calling call entry argument values in hex
    location type point (? means dubious value)
    Cannot seek to string table section header in /proc/8712/exe.
    Cannot seek to string table section header in /proc/8712/exe.
    Segmentation fault
    its compiled against gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
    I've tried the following:
    Installing the occi download from http://www.oracle.com/technology/tech/oci/occi/occidownloads.html and compiling with gcc-3.4.6
    I'm using the following commands to compile & link:
    g++ -DMOXA_DEBUG -I/database/u00/app/oracle/product/10.2.0/db_1/rdbms/demo -I/database/u00/app/oracle/product/10.2.0/db_1/rdbms/public -I/database/u00/app/oracle/product/10.2.0/db_1/plsql/public -I/database/u00/app/oracle/product/10.2.0/db_1/network/public -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"src/DB_Table.d" -MT"src/DB_Table.d" -o"src/DB_Table.o" "../src/DB_Table.cpp"
    g++ -L/database/u00/app/oracle/product/10.2.0/db_1/rdbms/lib -L/database/u00/app/oracle/product/10.2.0/db_1/lib -shared -o"libmoxa.so" ./src/DB_Table.o ./src/Dialup.o ./src/Modem.o ./src/Rtu.o ./src/Rtu_Type.o ./src/Session.o ./src/Session_Log.o ./src/Soe_Point.o ./src/Soe_Point_Event.o ./src/Thread.o ./src/Utils_Time.o ./src/db.o -locci10_343 -lclntsh -ldl -lm
    I've tried to do a -locci10 instead of the -locci10_343, still nothing..
    Intesting to note, the older version of the application on the same environment doesn't have this problem..
    I do know OCCI is a bit tempremental, especially when creating threads, as i've had to put a 100ms delay otherwise i get other errors
    the back trace looks like, it allways core dumps when releasing the connection..
    #0 0x00002b01b9fd8cae in slrac () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    (gdb) bt
    #0 0x00002b01b9fd8cae in slrac () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #1 0x00002b01b9fd8b3d in kgdsaaddr () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #2 0x00002b01b9fd83b8 in kgdsdst () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #3 0x00002b01b9c7f0b0 in skgudmp () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #4 0x00002b01b9fb27ac in kgeriv () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #5 0x00002b01b9fb2fab in kgesiv () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #6 0x00002b01b9fb2ace in kgesic0 () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #7 0x00002b01b9ace52d in kpuhhfre () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #8 0x00002b01b9ad9a3a in kpuhmcfre () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #9 0x00002b01b9a6ca5a in kputac () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #10 0x00002b01b9b8265a in kpuspsessionrelease () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #11 0x00002b01b9be1d6f in OCISessionRelease () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #12 0x00002b01b95452f1 in oracle::occi::ConnectionImpl::do_destroy () from /home/fep/moxa_1.3/libmoxa/Debug/libmoxa.so
    #13 0x00002b01b954d78c in oracle::occi::ConnectionPoolImpl::terminateConnection () from /home/fep/moxa_1.3/libmoxa/Debug/libmoxa.so
    #14 0x00002b01b953c47c in DB::release_connection (conn=0xed36498) at ../src/db.cpp:126
    I'm downloading the 11.2g client in the hope it works there without a hitch..
    Any help/suggestions whould be much appreciated..
    Cheers
    James

    Shiyer,
    libmoxa.so is the library I have created which is performing the oracle queries..
    The pool is created from the main thread by:
    Environment _env = Environment::createEnvironment (Environment::DEFAULT);
    ConnectionPool connectionpool = _env->createConnectionPool(
    username, passwd, tnsname, 1, 10, 1);
    And then each query is used run inside a connect initiated with:
    Connection *conn = connectionpool->createConnection(_username.c_str(), passwd.cstr());
    Statement *stmt = conn->createStatement("select 1 from dual;");
    ResultSet *rset = stmt->executeQuery();
    while( rset->next() == rset->DATA_AVAILABLE ) {
    std::cout << rset->getInt(1) << std::endl;
    stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
    and connection released with:
    connectionpool->terminateConnection(conn);
    Hope this helps!
    cheers
    James

  • User Exit for trx FAGL_FC_VAL program FAGL_FC_VALUATION

    does anybody knows if is there a user exit for trx FAGL_FC_VAL / program FAGL_FC_VALUATION?
    I need SAP to copy some information fron valuated document into valuation document created by the program.
    Cheers
    Rafael Barreda

    does anybody knows an answer to this question?
    thanks in advance.

  • Seg fault using catalyst(-total) driver for my ATI/intel hybrid card

    I am using a HP Envy 14 with Radeon 5650.
    This is my lspci: http://pastebin.com/5w7SFdrK
    What I've done so far is I've installed xf86-video-intel (for the onboard card) and catalyst-total (from AUR) for the discrete card. I am using the proprietary version since I need the HDMI output.
    Then I've done a aticonfig --initial , blacklisted radeon module in modprobe.d , and then installed the relevant packages for startx to work.
    This is the seg fault log from /var/log/Xorg.0.log: http://pastebin.com/PsPbiXj7
    This is the my xorg.conf: http://www.pastebin.com/NviWjr0i
    I am stuck now, how can I proceed?
    Thanks!

    I wanted to Bump this because I have the same laptop with the same setup and get the same errors.  I have tried all methods suggested for installing the catalyst to this intel/ati setup including the AUR files catalyst and catalyst-utils, the unofficial catalyst repository and the official ATI installer.  Hope somebody might be able to help us out with this.
    Thanks in advance.

  • FreeRADIUS rlm_krb5 seg fault

    I'm having a few problems setting up freeRadius with a kerberos backend on arch and would really appreciate a little help.
    Kernal: Linux 3.11.6-1-ARCH i686
    freeradius 3.0.0-1
    All the configuration changes I have made to the default configs are listed below:
    /etc/raddb/users
    Added the following line at the top of the file:
    DEFAULT Auth-Type = Kerberos
    /etc/raddb/sites-enabled/default and /etc/raddb/sites-enabled/inner-tunnel
    Added the following in the Authenticate section directly after the pap entry
    Auth-Type Kerberos {
    krb5
    I have also copied the file /etc/raddb/mods-available/krb5 to /etc/raddb/mods-enabled/krb5 and edited the entries to point to the keytab and principle im using for radius. The keytab contains two entries one for radius/hostname.domain and one for host/hostname.domain.
    I have verified the keytab is ok by using it with kinit to get a valid ticket for both principles. Additionally im sure my kerberos setup is ok as it works fine with ldap, nslcd and ssh.
    The problem is when I run radiusd -X and then attempt a radtest I get the following:
    (0) files : users: Matched entry DEFAULT at line 1
    (0) [files] = ok
    (0) [expiration] = noop
    (0) [logintime] = noop
    (0) WARNING: pap: No “known good” password found for the user. Not setting Auth-Type.
    (0) WARNING: pap: Authentication will fail unless a “known good” password is available.
    (0) [pap] = noop
    (0) } # authorize = ok
    (0) Found Auth-Type = Kerberos
    (0) # Executing group from file /etc/raddb/sites-enabled/default
    (0) Auth-Type Kerberos {
    at which point the server dies with no further output. Running the server using systemctl start freeradius and then looking at the status after its died shows its failed with Main PID: 21835 (code=dumped, signal=SEGV)
    I have looked all over the internet but the only place I have found someone with the same problem is here:
    http://www.mail-archive.com/freeradius- … 77744.html
    I have also enabled core dumps in the radiusd.conf however I have no idea how to actually view the dump or where it is (and yes I did google it, but all the responses made no sence to me)
    I have also tried the freeradius-git package on the AUR however that throws errors when building, something to do with undefined symbols while making radattr.
    CC src/main/radattr.c
    LINK build/bin/radattr
    UNIT-TEST rfc.txt
    ./build/bin/radattr: symbol lookup error: ./build/bin/radattr: undefined symbol: _fr_cursor_init
    src/tests/unit/all.mk:23: recipe for target 'build/tests/unit/rfc.txt' failed
    make: *** [build/tests/unit/frc.txt] Error 127
    => ERROR: A failure occurred in build().
    Aborting...
    => ERROR: Makepkg was unable to build freeradius-git.
    => Restart building freeradius-git ? [y/N]
    => -----------------------------------------------
    =>
    I don't usually post here as every problem i've had using arch so far, I've solved after reading the wiki/forums or random googling. However i'm at a complete loss this time, i have literally no idea how to solve this...
    Thanks

    Just as a quick update, the rlm_krb module still seems to be causing seg faults, however it is possible to get it working by configuring freeRadius to use PAM and then telling PAM to authenticate with kerberos.

Maybe you are looking for

  • Etrecheck results and damaged Property List Data

    In the past couple of weeks I have discovered several problems with my (mid-2010) iMac (System: OS X 10.9.4). First of all, Safari does not automatically open when I boot my computer. Although the computer appears to work alright otherwise, I then su

  • Showing Oracle 10g reports in Dashboard?

    Configuration: Oracle Business Intelligence Release 10.1.3.4 on Windows 2003 EE R2 Oracle 10gR1 on Windows 2003 EE R2 Problem: We have to show Oracle Reports 10i in Oracle Busines Publisher. Resolving failure: Conversion of current reports to "xdo" a

  • Signature Scribble value MUST empty

    Sample File [HERE] I want to make the Signature Scribble field EMPTY once the client empties Printed Name or Date. By result Invisible and Disabled it does not remove the value; it hides and make the field invisible only, but once Printed Name and Da

  • [SOLVED]Xorg+Virtualbox

    Hi all. I've launched latest Arch on my Windows 7 using Virtualbox. I've installed KDE and used hal method (without xorg.conf) to autodetect all the components. Evertyhing works fine, KDE lunches as on my second machine where Archlinux is native OS,

  • Accessor vs Mutator methods

    Nowadays I'm studying for SCJP 5.0 and I found a strange definition about Encapsulation . When I have seen the "Accessor methods" To me, it would be related with the both "setters" and "getters" methods But on a mock I found this definition: "Accesso