Apache 2.2.17-2 Segmentation Fault
Hi,
I just upgraded apache to the 2.2.17-2 version and now all my php/mysql pages that have a login ($_SESSION)
crash the server (apache child segfaults):
[Tue May 10 12:50:54 2011] [notice] child pid 11446 exit signal Segmentation fault (11)
Anyone encountered the same problem?
UPDATE: It works with apache 2.2.17-1 if you stop and start the daemon after the downgrade.
Thanks,
Adrian.
Last edited by symtab (2011-05-10 10:14:21)
There is already a thread regarding this.
https://bbs.archlinux.org/viewtopic.php?id=118671
where it says that downgrading apache to 2.2.17-1 resolves this issue.
Similar Messages
-
Segmentation fault with apache plug-in
The debug flag is on with apache.Getting the following message and core dump.wl 6.0, jdk 1.3, Solaris 2.6 105181-21, apache 1.3.12, gcc 2.8(FSF), make(3.7.6)os patch 10559-09 installed.[Fri Dec 29 14:57:11 2000] [notice] child pid 27661 exit signal Segmentation Fault (11), possible coredump in /usr/local/apache
The debug flag is on with apache.Getting the following message and core dump.wl 6.0, jdk 1.3, Solaris 2.6 105181-21, apache 1.3.12, gcc 2.8(FSF), make(3.7.6)os patch 10559-09 installed.[Fri Dec 29 14:57:11 2000] [notice] child pid 27661 exit signal Segmentation Fault (11), possible coredump in /usr/local/apache
-
Apache - Weblogic plug-in - Segmentation fault. Please Help me!
Hi all,
Im trying to set up Apache weblogic plug-in, and im having problems with
that.
Im running Solaris 9 with Apache/1.3.26 (Unix) and Weblogic 7 with sp2.
Here is what i did:
I copied mod_wl_ssl.so from
/bea/weblogic700/server/lib/solaris/mod_wl_ssl.so to /usr/apache/libexec
Added entries in httpd.conf as
LoadModule weblogic_module /usr/apache/libexec/mod_wl_ssl.so
AddModule mod_weblogic.c
<LocationMatch "\.jsp$">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<LocationMatch "/(service1|service2|service3)/">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 7001
HungServerRecoverSecs 300
ConnectTimeoutSecs 5
</IfModule>
When i access the url with out specifying port 7001 it's not working.
I checked the /var/apache/logs/error_log file. Im getting the error as
child pid 805 exit signal Segmentation Fault (11)
Am i missing anything here?
Thank you
RajaYou may want to check the certifications for Solaris 9 and the Apache plug-in at
http://e-docs.bea.com/wls/certifications/certifications/sun_solaris9.html#40366.
It looks like you will have to upgrade to at least Apache 2.0.39. We had to do
this on Solaris 8 as well.
"Raja Balasubramanian" <[email protected]> wrote:
Thank you Eric,
I will do that
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
I believe this is going to require more debugging such as attachinga
debugger(gdb) to Apache and getting a backtrace.
I suggest opening up a support case.
Regards,
Eric
"Raja Balasubramanian" <[email protected]> wrote in message
news:[email protected]...
Hi Eric,
Thank you for the replies.
I tried with the same test as you specified. Still im getting the
same
problem.
[Mon Mar 10 13:57:21 2003] [notice] child pid 1184 exit signal
Segmentation Fault (11)
Im running Solaris 9 in SPARC platform. It's a Sun E450 server.
Im using the default apache package which comes with Solaris 9. Ididn't
do
anything with apache.
Bea website says that Weblogic 7 sp2 is certified for Soalris 9.
That's
y
i
installed Solaris 9.
I tested the same on a Linux Machine (Redhat Linux 7.1 on IA). It
works
fine
without any problem.
How can i make things work?
Thank you for your kind replies
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
Looks like it should work.
Let's simplify your test:
<Location /test>
WebLogicHost 127.0.0.1
WebLogicPort 7001
Debug ALL
DebugConfigInfo ON
SetHandler weblogic-handler
</Location>
Try with just that.
Another thing is that I am unsure as to whether we have tested
with
Solaris
9. This is SPARC right? Also, can you outline the steps you took
when
building apache? Did you use GCC?
Thanks,
Eric
"Raja Balasubramanian" <[email protected]> wrote
in
message
news:[email protected]...
Hi,
Now i changed to mod_wl_ssl.so.
And i changed the httpd.conf as
LoadModule weblogic_module libexec/mod_wl_ssl.so
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 7001
Debug ALL
DebugConfigInfo ON
StatPath true
HungServerRecoverSecs 300
ConnectTimeoutSecs 5
</IfModule>
But im getting the same error. NO wlproxy.log file is created
in my
server.
I tried Debug ON also. Still the same.
Am i doing anything wrong?
Please help me...
Thank you
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
That means that your apache instance is compiled with -DEAPI
and
should
use
the mod_wl_ssl.so.
Can you please try to set Debug ALL and get the log in
/tmp/wlproxy.log
and
share that?
Thanks,
Eric
"Raja Balasubramanian" <[email protected]> wrote
in
message
news:[email protected]...
Hi Eric,
When im using mod_wl.so im getting warning from Apache as
[Mon Mar 10 12:41:15 2003] [warn] Loaded DSO
libexec/mod_wl.so
uses
plain Apache 1.3 API, this module might crash under
EAPI!
(please
recompile it with -DEAPI)
Thank you
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
Are you using modssl or any apache with EAPI compiled in?
Otherwise, you should be using the mod_wl.so.
As well, please set Debug ALL to see if we can get more
debug.
Thanks,
Eric
"Raja Balasubramanian" <[email protected]>
wrote
in
message
news:[email protected]...
Hi all,
Im trying to set up Apache weblogic plug-in, and im having
problems
with
that.
Im running Solaris 9 with Apache/1.3.26 (Unix) and Weblogic
7
with
sp2.
Here is what i did:
I copied mod_wl_ssl.so from
/bea/weblogic700/server/lib/solaris/mod_wl_ssl.so to/usr/apache/libexec
Added entries in httpd.conf as
LoadModule weblogic_module/usr/apache/libexec/mod_wl_ssl.so
AddModule mod_weblogic.c
<LocationMatch "\.jsp$">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<LocationMatch "/(service1|service2|service3)/">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 7001
HungServerRecoverSecs 300
ConnectTimeoutSecs 5
</IfModule>
When i access the url with out specifying port 7001 it's
not
working.
I checked the /var/apache/logs/error_log file. Im getting
the
error
as
child pid 805 exit signal Segmentation Fault
(11)
Am i missing anything here?
Thank you
Raja -
Segmentation fault with mod_wl_22.so and Apache 2.2.3
Hi,
Every few requests, the proxy plugin seg faults.
The following backtrace is logged:
[Sun Sep 26 06:26:16 2010] [notice] child pid 28254 exit signal Segmentation fault (11)
*** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0x00002b285a9882f0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x2b2853f3230f]
/lib64/libc.so.6(cfree+0x4b)[0x2b2853f3276b]
/etc/httpd/modules/mod_wl_22.so(_tmf90043+0x2f)[0x2b285d4f9954]
/etc/httpd/modules/mod_wl_22.so(_tmf90047+0x51)[0x2b285d4e0c2c]
/etc/httpd/modules/mod_wl_22.so(_tmf90487+0xa3)[0x2b285d4e062d]
/etc/httpd/modules/mod_wl_22.so(_ZN3URL5closeEv+0x69)[0x2b285d49d353]
/etc/httpd/modules/mod_wl_22.so(_Z19getPooledConnectionP8ListNodePKctiiP10LogContext+0x1c2)[0x2b285d498ff2]
/etc/httpd/modules/mod_wl_22.so[0x2b285d490ee4]
/etc/httpd/modules/mod_wl_22.so(request_handler+0x10b0)[0x2b285d493018]
/usr/sbin/httpd(ap_run_handler+0x7a)[0x2b2851fc5a4a]
/usr/sbin/httpd(ap_invoke_handler+0x78)[0x2b2851fc8ed8]
/usr/sbin/httpd(ap_process_request+0x1a8)[0x2b2851fd3978]
/usr/sbin/httpd[0x2b2851fd0bb0]
/usr/sbin/httpd(ap_run_process_connection+0x72)[0x2b2851fcccd2]
/usr/sbin/httpd[0x2b2851fd77c9]
/usr/sbin/httpd[0x2b2851fd7a5a]
/usr/sbin/httpd[0x2b2851fd7b10]
/usr/sbin/httpd(ap_mpm_run+0xccb)[0x2b2851fd87fb]
/usr/sbin/httpd(main+0x7e8)[0x2b2851fb2e48]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x2b2853edd994]
/usr/sbin/httpd[0x2b2851fb2199]
I am using the following plugin version:
Oracle WebLogic plugin build date/time: Apr 20 2009 15:29:36. Change Number: 1211636
The OS is a stock RHEL 5.4 (64 bit)
Any ideas?I've tried to upgrade to plugin version 1.1, but now it refuses to use SSL between the proxy and the weblogic server.
All I get from the logs is the following:
Sun Sep 26 12:03:32 2010 <2450512854954051> mod_weblogic(ssl): Connection mod_wl SSL handshake failed (29024)
Sun Sep 26 12:03:32 2010 <2450512854954051> mod_weblogic(ssl): SSL Handshake failed
I've created a wallet, and imported my certificate to it as a trusted certificate.
It should be noted that I have a wildcard certificate, and the previous plugin version did not support it - I had to use
RequireSSLHostMatch false
EnforceBasicConstraints false
for it to work. These options are no longer supported in 1.1 - Why? -
SQL Server Driver for Linux causes Segmentation Fault
Hello,
I'm using the SQL Server Driver 11.0.1790 on Linux with mod_perl and Apache. While running fine with all my CLI Perl apps I occasionally get Segmentation Faults when using it from within mod_perl applications. Sometimes every other connect to the database
segfaults. I've created a core dump and did a stack backtrace:
Loaded symbols for /usr/lib/../lib64/libxml2.so.2
Core was generated by `/usr/sbin/httpd2 -X'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007f8a8aeda803 in __connect_part_two (connection=0x7f8a99c885e0) at SQLConnect.c:1891
#2 0x00007f8a8aedffd6 in SQLDriverConnect (hdbc=0x7f8a99c885e0, hwnd=0x0, conn_str_in=0x7fff1e7369ee "",
len_conn_str_in=<value optimized="" out="">,
conn_str_out=0x7fff1e736a80 "DSN=XXXXX;UID=XXX;PWD=XXXXXXXX;WSID=XXXXXXXX;DATABASE=XXXXX;MARS_Connection=Yes;",
conn_str_out_max=512, ptr_conn_str_out=0x7fff1e736a7e, driver_completion=0) at SQLDriverConnect.c:1530
#3 0x00007f8a8b1458ee in odbc_db_login6 (dbh=0x7f8a99938ca0, imp_dbh=0x7f8a99c8acd0,
dbname=0x7fff1e736c80 "DSN=XXXXX;MARS_Connection=Yes;UID=XXX;PWD=XXXXXXXX", uid=0x7f8a9996e8b0 "XXX",
pwd=0x7f8a9996e8d0 "XXXXXXXX", attr=0x7f8a99938c40) at dbdimp.c:942
#4 0x00007f8a8b141822 in XS_DBD__ODBC__db__login (my_perl=<value optimized="" out="">, cv=<value optimized="" out="">) at ./ODBC.xsi:98
#5 0x00007f8a9125b091 in Perl_pp_entersub (my_perl=0x7f8a96274f50) at pp_hot.c:3046
#6 0x00007f8a912595f6 in Perl_runops_standard (my_perl=0x7f8a96274f50) at run.c:41
#7 0x00007f8a911eb755 in Perl_call_sv (my_perl=0x7f8a96274f50, sv=0x7f8a99938bc8, flags=2) at perl.c:2632
#8 0x00007f8a8b791d02 in XS_DBI_dispatch (my_perl=0x7f8a96274f50, cv=0x7f8a98cbbe60) at DBI.xs:3473
#9 0x00007f8a9125b091 in Perl_pp_entersub (my_perl=0x7f8a96274f50) at pp_hot.c:3046
#10 0x00007f8a912595f6 in Perl_runops_standard (my_perl=0x7f8a96274f50) at run.c:41
#11 0x00007f8a911ebab0 in Perl_call_sv (my_perl=0x7f8a96274f50, sv=0x7f8a97db4f68, flags=10) at perl.c:2647
#12 0x00007f8a9154ba31 in modperl_callback (my_perl=0x7f8a96274f50, handler=0x7f8a96230c90, p=0x7f8a96334838, r=0x7f8a963348b0,
s=0x7f8a962303b0, args=0x7f8a998376a8) at modperl_callback.c:101
#13 0x00007f8a9154c79c in modperl_callback_run_handlers (idx=6, type=4, r=0x7f8a963348b0, c=<value optimized="" out="">, s=0x7f8a962303b0,
pconf=<value optimized="" out="">, plog=0x0, ptemp=0x0, run_mode=MP_HOOK_RUN_FIRST) at modperl_callback.c:262
#14 0x00007f8a9154cb6f in modperl_callback_per_dir (idx=-1714610816, r=<value optimized="" out="">, run_mode=<value optimized="" out="">)
at modperl_callback.c:369
#15 0x00007f8a91546b93 in modperl_response_handler_run (r=0x7f8a963348b0) at mod_perl.c:1000
#16 modperl_response_handler (r=0x7f8a963348b0) at mod_perl.c:1039
#17 0x00007f8a95f01e08 in ap_run_handler ()
#18 0x00007f8a95f0226c in ap_invoke_handler ()
#19 0x00007f8a95f0ff00 in ap_process_request ()
#20 0x00007f8a95f0ce98 in ?? ()
#21 0x00007f8a95f08b28 in ap_run_process_connection ()
#22 0x00007f8a95f14e5a in ?? ()
#23 0x00007f8a95f15126 in ?? ()
#24 0x00007f8a95f15903 in ap_mpm_run ()
#25 0x00007f8a95eec9be in main ()
</value></value></value></value></value></value></value>
Calling something at NULL obviously doesn't look right…
Can onebody help fixing this issue?
Best regards,
StephanHi Stephan,
This is a bug in the unixODBC Driver Manager 2.3.0. Essentially, you can only have one HDBC per HENV. The mod_perl must be creating the connections upon the same HENV.
The bug appears to be fixed in version 2.3.1 but we have not yet certified that out driver can work with 2.3.1. See the 2.3.1 release notes at
http://www.unixodbc.org/ where the last item says:
"Driver version was not being held when a second connection was made to the driver"
The Driver Manager would "forget" that we are an ODBC V3 driver and try intereacting with us as an ODBC V2 driver for the second connection (which fails).
The workaround is to create a new HENV for each connection but I'm not sure if this is possible in mod_perl. -
Hi-
I've experienced a segmentation fault from Berkeley DB XML Java bindings running in a web application (Tomcat). I'm not able to reproduce the error myself, but it's particularly troubling becasue it brought down the entire JVM that was running the web site. I'm not at all proficient with JNI, so maybe I'm not able to properly diagnose the problem from the logs. Below is the seg fault error that was logged by the JVM:
# An unexpected error has been detected by Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x063966c3, pid=20961, tid=1839516576
# Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# V [libjvm.so+0x3966c3]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x08822c00): JavaThread "http-8080-6" daemon [_thread_in_vm, id=21027, stack(0x6da2c000,0x6da4d000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000000
Registers:
EAX=0x00000000, EBX=0x08b598d8, ECX=0x0006da4b, EDX=0x08822c00
ESP=0x6da4b6d4, EBP=0x6da4b738, ESI=0x00000ffc, EDI=0x6db77880
EIP=0x063966c3, CR2=0x00000000, EFLAGS=0x00010216
Top of Stack: (sp=0x6da4b6d4)
0x6da4b6d4: 00000000 67c9ecf8 67c9ece3 08b598d8
0x6da4b6e4: 6db77880 6db77888 6db77c74 08822c00
0x6da4b6f4: 00000000 00c5a1e3 6da4b718 08822c00
0x6da4b704: 6e000048 00000011 67d0b11c 08822c00
0x6da4b714: 0000001d 6da4b738 67c92fa4 08822d14
0x6da4b724: 08a64cb4 08c4cddc 67d0b11c 00000000
0x6da4b734: 0000001d 6da4b7f8 67c732db 08822d14
0x6da4b744: 00000000 00000000 67c9ece3 6da4b7d0
Instructions: (pc=0x063966c3)
0x063966b3: ac 8b 43 08 89 45 b0 8b 43 0c 89 45 b4 8b 45 0c
0x063966c3: 8b 00 50 e8 35 02 fe ff 83 ec 0c 89 c6 50 e8 72
Stack: [0x6da2c000,0x6da4d000], sp=0x6da4b6d4, free space=125k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x3966c3]
C [libdbxml_java-2.4.so+0x2612db] _Z17createCPPXmlValueP7JNIEnv_P8_jobjectPb+0xd3
C [libdbxml_java-2.4.so+0x26bbcd] _Z24createCPPXmlQueryContextP7JNIEnv_P8_jobjectP7_jclass+0x969
C [libdbxml_java-2.4.so+0x27f2ff] Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1prepare_1_1SWIG_10+0xe7
j com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_prepare__SWIG_0(JLcom/sleepycat/dbxml/XmlManager;Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)J+0
j com.sleepycat.dbxml.XmlManager.prepare(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)Lcom/sleepycat/dbxml/XmlQueryExpression;+7
j com.mycompany.dao.xml.XmlDao.executeQuery(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)Ljava/util/List;+14
j com.mycompany.dao.xml.XMLArticleDAO.getArticleId(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+91
j com.mycompany.service.impl.DefaultArticleService.getArticleIdFromUrl(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+7
j com.mycompany.controller.Level3Controller.handleRequestInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/springframework/web/servlet/ModelAndView;+236
j org.springframework.web.servlet.mvc.AbstractController.handleRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/springframework/web/servlet/ModelAndView;+62
j org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;)Lorg/springframework/web/servlet/ModelAndView;+6
j org.springframework.web.servlet.DispatcherServlet.doDispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+224
j org.springframework.web.servlet.DispatcherServlet.doService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+219
j org.springframework.web.servlet.FrameworkServlet.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+10
j org.springframework.web.servlet.FrameworkServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+35
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+374
j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+804
j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+365
j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+157
j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+432
j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [libjvm.so+0x375c9d]
V [libjvm.so+0x5057f8]
V [libjvm.so+0x3755b0]
V [libjvm.so+0x37563d]
V [libjvm.so+0x3e5ca5]
V [libjvm.so+0x5cde5d]
V [libjvm.so+0x506929]
C [libpthread.so.0+0x53cc]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_prepare__SWIG_0(JLcom/sleepycat/dbxml/XmlManager;Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)J+0
j com.sleepycat.dbxml.XmlManager.prepare(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)Lcom/sleepycat/dbxml/XmlQueryExpression;+7
j com.mycompany.dao.xml.XmlDao.executeQuery(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)Ljava/util/List;+14
j com.mycompany.dao.xml.XMLArticleDAO.getArticleId(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+91
j com.mycompany.service.impl.DefaultArticleService.getArticleIdFromUrl(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+7
j com.mycompany.controller.Level3Controller.handleRequestInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/springframework/web/servlet/ModelAndView;+236
j org.springframework.web.servlet.mvc.AbstractController.handleRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/springframework/web/servlet/ModelAndView;+62
j org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;)Lorg/springframework/web/servlet/ModelAndView;+6
j org.springframework.web.servlet.DispatcherServlet.doDispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+224
j org.springframework.web.servlet.DispatcherServlet.doService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+219
j org.springframework.web.servlet.FrameworkServlet.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+10
j org.springframework.web.servlet.FrameworkServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+35
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+374
j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+804
j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+365
j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+157
j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+432
j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x088d4800 JavaThread "http-8080-8" daemon [_thread_blocked, id=21029, stack(0x66e7d000,0x66e9e000)]
0x08b3d400 JavaThread "http-8080-7" daemon [_thread_blocked, id=21028, stack(0x6da0b000,0x6da2c000)]
=>0x08822c00 JavaThread "http-8080-6" daemon [_thread_in_vm, id=21027, stack(0x6da2c000,0x6da4d000)]
0x08823400 JavaThread "http-8080-5" daemon [_thread_blocked, id=21022, stack(0x65cdf000,0x65d00000)]
0x0881e000 JavaThread "http-8080-4" daemon [_thread_blocked, id=21019, stack(0x6da4d000,0x6da6e000)]
0x08d75400 JavaThread "pool-2-thread-1" [_thread_blocked, id=21018, stack(0x660df000,0x66100000)]
0x08976400 JavaThread "http-8080-3" daemon [_thread_blocked, id=21017, stack(0x6da6e000,0x6da8f000)]
0x08976000 JavaThread "http-8080-2" daemon [_thread_blocked, id=21011, stack(0x6da8f000,0x6dab0000)]
0x08c4c000 JavaThread "http-8080-1" daemon [_thread_blocked, id=21006, stack(0x6dd9d000,0x6ddbe000)]
0x08b65000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=21005, stack(0x6ddbe000,0x6dddf000)]
0x08c5ec00 JavaThread "TP-Processor4" daemon [_thread_in_native, id=21004, stack(0x6dddf000,0x6de00000)]
0x08c62c00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=21003, stack(0x6df41000,0x6df62000)]
0x08b66800 JavaThread "TP-Processor2" daemon [_thread_blocked, id=21002, stack(0x6df62000,0x6df83000)]
0x08eab000 JavaThread "TP-Processor1" daemon [_thread_blocked, id=21001, stack(0x6df83000,0x6dfa4000)]
0x08c53800 JavaThread "http-8080-Acceptor-0" daemon [_thread_in_native, id=21000, stack(0x6dfa4000,0x6dfc5000)]
0x08c5d000 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=20999, stack(0x6df1c000,0x6df3d000)]
0x08c9e400 JavaThread "pool-1-thread-1" [_thread_blocked, id=20998, stack(0x66ea5000,0x66ec6000)]
0x08684800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=20996, stack(0x6e1e0000,0x6e201000)]
0x08683000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=20995, stack(0x6e201000,0x6e282000)]
0x0867e800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=20994, stack(0x6e282000,0x6e303000)]
0x0867d000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=20993, stack(0x6e303000,0x6e324000)]
0x0867b800 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=20992, stack(0x6e324000,0x6e345000)]
0x08668000 JavaThread "Finalizer" daemon [_thread_blocked, id=20991, stack(0x6e545000,0x6e566000)]
0x08666c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=20990, stack(0x6e566000,0x6e587000)]
0x08058800 JavaThread "main" [_thread_in_native, id=20962, stack(0xb7fc9000,0xb7fea000)]
Other Threads:
0x08663400 VMThread [stack: 0x6e587000,0x6e608000] [id=20989]
0x08686800 WatcherThread [stack: 0x6e15f000,0x6e1e0000] [id=20997]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
par new generation total 471872K, used 261897K [0x70490000, 0x90490000, 0x90490000)
eden space 419456K, 60% used [0x70490000, 0x7fb7eb48, 0x89e30000)
from space 52416K, 17% used [0x89e30000, 0x8a703c70, 0x8d160000)
to space 52416K, 0% used [0x8d160000, 0x8d160000, 0x90490000)
concurrent mark-sweep generation total 524288K, used 0K [0x90490000, 0xb0490000, 0xb0490000)
concurrent-mark-sweep perm gen total 22400K, used 22275K [0xb0490000, 0xb1a70000, 0xb4490000)
***DYNAMIC LIBRARIES TRUNCATED (POST TOO LONG)***
VM Arguments:
jvm_args: -Xmx1024m -Xms1024m -Xmn512m -Xss128k
-XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8
-XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/opt/apps/tomcat-6.0.18/conf/logging.properties -Djava.endorsed.dirs=/opt/apps/tomcat-6.0.18/endorsed
-Dcatalina.base=/opt/apps/tomcat-6.0.18 -Dcatalina.home=/opt/apps/tomcat-6.0.18 -Djava.io.tmpdir=/opt/apps/tomcat-6.0.18/temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/opt/apps/php/bin:/opt/apps/apache2/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_13/jre/lib/i386/server:/usr/java/jdk1.6.0_13/jre/lib/i386:/usr/java/jdk1.6.0_13/jre/../lib/i386:/opt/dbxml/lib
SHELL=/bin/bash
Signal Handlers:
SIGSEGV: [libjvm.so+0x6071f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x6071f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x5048b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x5048b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x5048b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x5048b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x506d80], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x506b20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: [libjvm.so+0x506b20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x506b20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
--------------- S Y S T E M ---------------
OS:Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
uname:Linux 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686
libc:glibc 2.3.4 NPTL 2.3.4
rlimit: STACK 10240k, CORE 0k, NPROC 32742, NOFILE 1024, AS infinity
load average:0.00 0.00 0.00
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2073300k(27792k free), swap 5197384k(1995648k free)
vm_info: Java HotSpot(TM) Server VM (11.3-b02) for linux-x86 JRE (1.6.0_13-b03), built on Mar 9 2009 01:16:42 by "java_re" with gcc 3.2.1-7a (J2SE release)
time: Mon Jul 27 01:51:01 2009
elapsed time: 11252 secondsI see some "thread blocked" statements, one of them being on the "Low Memory Detector" daemon. Not sure what to make of that.
This is the method chain (from what I can tell) that caused the error:
public String getArticleId(String type, String category, String normalizedTitle)
throws DAOException, DataNotFoundDAOException {
XmlQueryContext context = null;
try{
context = this.getXmlManager().createQueryContext();
context.setEvaluationType(context.Eager);
context.setVariableValue("type", new XmlValue(type));
context.setVariableValue("category", new XmlValue(category));
context.setVariableValue("normalizedTitle", new XmlValue(normalizedTitle));
context.setVariableValue("containerName", new XmlValue(this.getContainer().getName()));
List<String> results = executeQuery(articleIdQuery, context);
if(results.size()>1){
logger.warn(String.format("more than one article found for type:%s, category:%s, normalized-title:%s", type, category, normalizedTitle));
}else if(results.size()==0){
throw new DataNotFoundDAOException(String.format("unable to find an article that matches type:%s, category:%s, normalized-title:%s", type, category, normalizedTitle));
/* dbxml returns query values far xml attributes in this format: {}id="this_is_the_id_we_want"
* we must extract the id before returning
String idString = results.get(0);
return idString.substring(idString.indexOf("\"")+1, idString.length()-1);
}catch (XmlException e) {
throw new DAOException("there was a problem querying the database", e);
} finally{
context.delete();
protected List<String> executeQuery(String query, XmlQueryContext context)
throws DAOException {
// Prepare (compile) the query
List<String> xmlNodes = new ArrayList<String>();
XmlQueryExpression qe = null;
XmlResults results = null;
try {
qe = xmlManager.prepare(query, context);
logger.debug("about to perform query: " + qe.getQuery());
results = qe.execute(context);
while (results.hasNext()) {
xmlNodes.add(results.next().asString());
} catch (XmlException e) {
throw new DAOException("Unable to retrieve Page from db", e);
} finally{
if(results != null){
results.delete();
if(qe != null){
qe.delete();
return xmlNodes;
}And this is the query that was passed into the method:
collection($containerName)/article[type=$type and category=$category and normalized-title=$normalizedTitle]/@idSince this happened in a running web application, I unfortunately can't determine exactly which values were set for the query variables in this instance. However, by the nature of this application, those values are NOT taken from user input, so it would be safe to assume that the input comes from a valid, finite set of values.
Any help would be greatly appreciated.
Thanks
Edited by: eric44 on Jul 27, 2009 2:34 PMThanks Lauren.
I have not yet applied the patch. I will do so shortly. However, I was able to do a bit more tracing, and I think I've gotten to the root of the problem. The seg fault is happening when a null value is used in a query. That is, a Java variable whose value is null is used as the constructor argument to new XmlValue(String s), and then that value is used in the query. I don't know exactly where the error is happening; the log seems a tad ambiguous. Again, I'm not really comfortable at the low-level, but it seems that the stack trace is rooted in the "prepare" java method, but then there seems to be some native trace directly referencing the creation of XmlValue
Stack: [0x6da2c000,0x6da4d000], sp=0x6da4b6d4, free space=125k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x3966c3]
C [libdbxml_java-2.4.so+0x2612db] _Z17createCPPXmlValueP7JNIEnv_P8_jobjectPb+0xd3
C [libdbxml_java-2.4.so+0x26bbcd] _Z24createCPPXmlQueryContextP7JNIEnv_P8_jobjectP7_jclass+0x969
C [libdbxml_java-2.4.so+0x27f2ff] Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1prepare_1_1SWIG_10+0xe7
j com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_prepare__SWIG_0(JLcom/sleepycat/dbxml/XmlManager;Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)J+0
j com.sleepycat.dbxml.XmlManager.prepare(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlQueryContext;)Lcom/sleepycat/dbxml/XmlQueryExpression;+7thanks again -
LINUX wls 6.0 sp2 & jdk 131 - Unable to start the Server - Segmentation fault
Facing problems in starting a weblogic 6.0 server with service pack 2 for Linux.
OS: RedHat7.0
BEA WLS version : 6.0
Service pack : SP2
JDK version : jdk1.3.1
When starting the startWebLogic.sh, it fails to start up completely and ends in
a
"startWebLogic.sh line 142 13834 Segmentation fault".
( After taking in the valid password for the system).
Putting the verbose flag in the start-up script seems to see if it gave any clue,
teh last class loaded was the weblogic.apache.xerces.utils.StringHasher .
Does anyone have ideas as to what the cause maybe.
Is there a patch that is needed/known problem.
Any help would be appreciated.
Thanks
ShyamPlease read the Linux install notes for JDK 1.3.1.
http://java.sun.com/j2se/1.3/install-linux-sdk.html
I'll paste the relevant parts:
Known Problems
RedHat Linux 6.2 is the officially supported Linux platform for J2SDK 1.3.1.
Limited testing has been done on other Linux operating systems, and the
following are known problems on the non-supported platforms.
a.. If you use Red Hat Linux 7, we recommend version 7.1 rather than 7.0.
Limited testing has revealed problems when using J2SDK with Red Hat Linux
7.0, some of which are described below.
b.. The newer glibc-2.2.x libraries cannot correctly handle initial thread
stack sizes larger than 6 MB. This can cause a segmentation fault on come
Linux platforms that use the newer libraries. Such platforms include Red Hat
7.0, Mandrake 8.0, SuSe 7.2, and Debian 2.2. The problem will not occur on
Linux platforms that are using glibc-2.1.x such as Red Hat 6.1 and 6.2. It
will also not affect Red Hat 7.1 because it uses a different thread stack
layout. This problem is being tracked as bug 4466587.
Workaround - Use "ulimit -s 2048" in bash shell or "limit stacksize 2048"
in tcsh to limit the initial thread stack to 2 MB.
c.. When System.exit(int) is invoked on Red Hat 7.0, the program never
exits with a non-zero value. This problem is apparently due to a bug in the
exit function in libc.so library. To avoid this problem, use the supported
Red Hat release, version 6.2, or, if you want to use Red Hat 7, use version
7.1 rather than 7.0.
d.. On RedHat Linux 7.0, if you want to use the Classic VM rather than one
of the Java HotSpot VMs in J2SDK 1.3.1, you must download and install
glibc-2.2-9.i386.rpm file available at
http://www.redhat.com/support/errata/RHBA-2000-079.html. Do not install the
i686 files available on that same web page, as those will prevent proper
functioning of the Java HotSpot VMs in J2SDK 1.3.1.
e.. If you use RedHat Linux 7 Server, you must manually install
compat-libstdc++-6.21-2.9.0.0.i386.rpm to prevent "error while loading
shared libraries" when using the Java HotSpot VMs. This file is located in
the /RedHat/RPMS directory on the RedHat Linux 7 CD-ROM. You may also obtain
a copy of this file from http://rpmfind.net. To install the file, use this
command:
rpm --install compat-libstdc++-6.21-2.9.0.0.i386.rpm
It is not necessary to manually install
compat-libstdc++-6.21-2.9.0.0.i386.rpm if you are using RedHat Linux 7
Workstation.
f.. When using RedHat Linux versions other than 6.1, the font.properties
file may fail to display some Symbol/Dingbats characters properly on some
AWT components. To correct this, use this revised font.properties file to
replace the one at <JAVA_HOME>/jre/lib/.
g.. Caldera OpenLinux uses version 2.1.2-3 of glibc. Because that version
is not greater than or equal to 2.1.2-11, the Java 2 SDK's rpm installer
will fail during its dependency check. We recommend that you obtain an
updated version of the glibc library available from Caldera at the following
locations:
ftp.caldera.com:/pub/updates/eDesktop/2.4/current/RPMS
or
ftp.caldera.com:/pub/updates/eServer/2.3/current/RPMS
Regards,
Eric
"root" <[email protected]> wrote in message
news:[email protected]...
I am having the same problem , Changing the bash stack size even to 16kdidn't help;
>
RedHat 7.0, WebLogic 6.1, JDK1.3.1, have bumped ss , and mx as well as thebash
ulimit ,
Any Ideas .. I see other posts on the same topic. ..verbose load ends withsame
weblogic.apache.xerces.utils.StringHasher.class
as ther have reported.
sundaram wrote:
Facing problems in starting a weblogic 6.0 server with service pack 2
for Linux.
>>
OS: RedHat7.0
BEA WLS version : 6.0
Service pack : SP2
JDK version : jdk1.3.1
When starting the startWebLogic.sh, it fails to start up completely andends in
a
"startWebLogic.sh line 142 13834 Segmentation fault".
( After taking in the valid password for the system).
Putting the verbose flag in the start-up script seems to see if it gaveany clue,
teh last class loaded was the weblogic.apache.xerces.utils.StringHasher.
>>
Does anyone have ideas as to what the cause maybe.
Is there a patch that is needed/known problem.
Any help would be appreciated.
Thanks
Shyam -
Help needed, segmentation fault with java 1.6
Hey, I would very much appreciate help with this problem.
It began a while ago, while I was using Netbeans 6.5 to do some Java Server testing stuff, I was running Adobe Flash on top (working on some WSDL stuff), and the computer was understandable running a bit slowly. However, it got to the point where the computer stopped responding, even with me killing apps as often as possible to conserve memory (1 GB on this machine) and I was forced to kill the machine by holding down the power button (using a white MacBook). When I started up once more, java 1.6 was dead, no amount of re-installs seemed to be helping when I tried downloading the Java Updates from Apple, though java 1.5 seemed to be working at that time. However, poking around in the console and looking at the logs, I noticed that launchd[1] was failing every 10 seconds to start something up, it looked like it was the apache http server, therefore I went to System Preferences to turn of Web Sharing, and that particular problem disappeared. However, whenever I would attempt to run java, even using the Terminal, I would get this Console log, or at least one very similar (this one was generated with java 1.5 I believe)
Process: java [7217]
Path: /usr/bin/java
Identifier: java
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [7208]
Date/Time: 2008-12-13 10:41:23.197 -0500
OS Version: Mac OS X 10.5.5 (9F33)
Report Version: 6
Exception Type: EXCBADACCESS (SIGSEGV)
Exception Codes: 0x000000000000000d, 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x00007fff80e57164 strcmp + 84
1 libobjc.A.dylib 0x00007fff8000b23f _selregisterName + 49
2 libobjc.A.dylib 0x00007fff8000ab46 map_images + 3757
3 dyld 0x00007fff5fc04130 dyld::notifyBatchPartial(dyldimagestates, bool, char const* (*)(dyldimagestates, unsigned int, dyldimageinfo const*)) + 416
4 dyld 0x00007fff5fc048fd dyld::registerImageStateBatchChangeHandler(dyldimagestates, char const* (*)(dyldimagestates, unsigned int, dyldimageinfo const*)) + 525
5 libSystem.B.dylib 0x00007fff80e56472 dyldregister_image_state_changehandler + 88
6 libobjc.A.dylib 0x00007fff8000954f objcinit + 38
7 dyld 0x00007fff5fc11257 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 279
8 dyld 0x00007fff5fc0d16c ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 268
9 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
10 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
11 dyld 0x00007fff5fc0d110 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 176
12 dyld 0x00007fff5fc0d254 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 52
13 dyld 0x00007fff5fc038b4 dyld::initializeMainExecutable() + 132
14 dyld 0x00007fff5fc06eb1 dyld::main(machheader const*, unsigned long, int, char const**, char const**, char const**) + 2209
15 dyld 0x00007fff5fc01695 dyldbootstrap::start(mach_header const*, int, char const**, long) + 693
16 dyld 0x00007fff5fc0103a dyldstart + 42
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00000000000008a0 rbx: 0x00007fff80018760 rcx: 0x0000000000005722 rdx: 0x000000000000008a
rdi: 0x00007fff80018760 rsi: 0x0c00004806000038 rbp: 0x00007fff5fbfdbc0 rsp: 0x00007fff5fbfdba8
r8: 0x00000000c5a8037d r9: 0x0000000068e33de7 r10: 0x00000000bcafe771 r11: 0x0000000000000001
r12: 0x0c00004806000038 r13: 0x0000000000000001 r14: 0x0000000000000001 r15: 0x000000000000001d
rip: 0x00007fff80e57164 rfl: 0x0000000000010202 cr2: 0x00007fff7002f9f0
Binary Images:
0x100000000 - 0x10000afe0 +java ??? (???) <53c91321e79d660f62c011f5d8625a7f> /usr/bin/java
0x100010000 - 0x100018ffd com.apple.JavaVM 12.2.0 (12.2.0) <2b178e8d4bbcc0aa427c2f3f71bb2fcb> /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x7fff5fc00000 - 0x7fff5fc2e593 dyld 96.2 (???) <b0570939de4a19f478c8eabab95aaaee> /usr/lib/dyld
0x7fff80003000 - 0x7fff800f7fff libobjc.A.dylib ??? (???) <118dc1ae05e685ad64290352fc94f1f0> /usr/lib/libobjc.A.dylib
0x7fff80199000 - 0x7fff801aaffd libz.1.dylib ??? (???) <f260db32dd97a14108a5e04184785ded> /usr/lib/libz.1.dylib
0x7fff801ab000 - 0x7fff801e8ff7 com.apple.SystemConfiguration 1.9.2 (1.9.2) <3e058b95c78dc2f54ec3f9781bd86e1c> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x7fff801e9000 - 0x7fff80239fe7 com.apple.Metadata 10.5.2 (398.22) <1fc60b4568a7ffbec4273f656d61ab58> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x7fff808c2000 - 0x7fff80957ffb com.apple.LaunchServices 290 (290) <b5b494e44b291a782bee370a046d5727> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x7fff80a31000 - 0x7fff80a39ffa libbsm.dylib ??? (???) <4d838c0d8a74fe61c781a53a8723303d> /usr/lib/libbsm.dylib
0x7fff80a3a000 - 0x7fff80a6cff7 libauto.dylib ??? (???) <cc8eece8c0097b254c758bd4e8df9537> /usr/lib/libauto.dylib
0x7fff80e4d000 - 0x7fff80fd1ffb libSystem.B.dylib ??? (???) <8e3de87ccdf6c4606b9bcb9da3a33eda> /usr/lib/libSystem.B.dylib
0x7fff80fd2000 - 0x7fff81046fe7 libstdc++.6.dylib ??? (???) <565ee6f798f7fef6f804c60682787280> /usr/lib/libstdc++.6.dylib
0x7fff81075000 - 0x7fff81106fff com.apple.SearchKit 1.2.1 (1.2.1) <e2a25e04f281fe8ff7088a08a549020f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x7fff81107000 - 0x7fff8119bfe3 com.apple.CFNetwork 339.5 (339.5) <6e912954955e0af0e0defb59cc2c348a> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
0x7fff814b5000 - 0x7fff814dcfff libxslt.1.dylib ??? (???) <22a74e7859cfbf63ae7fc310b0a669a4> /usr/lib/libxslt.1.dylib
0x7fff82112000 - 0x7fff82249fff com.apple.CoreFoundation 6.5.4 (476.15) <4b970007410b71eca926819f3959548f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8224a000 - 0x7fff8224affa com.apple.CoreServices 32 (32) <c12e589173b697ce88050a6f736549eb> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff830ae000 - 0x7fff830edfef com.apple.framework.IOKit 1.5.1 (???) <56d5528f3623ad4d9c68751018e658c3> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff832b0000 - 0x7fff83360fef com.apple.CoreServices.OSServices 226.5 (226.5) <4461ef69cec249de2315c88e83d4c904> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x7fff83465000 - 0x7fff835d3fff libicucore.A.dylib ??? (???) <25557e76cafa3f8a97ca7bffe42e2d97> /usr/lib/libicucore.A.dylib
0x7fff835d8000 - 0x7fff835dcfff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
0x7fff835f5000 - 0x7fff8360dfff com.apple.DictionaryServices 1.0.0 (1.0.0) <78ea11e9a92120f76d69efa24b8d1f95> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x7fff836a5000 - 0x7fff8379afff libxml2.2.dylib ??? (???) <8226d1180354f493954c5fa1fc0e1154> /usr/lib/libxml2.2.dylib
0x7fff8379b000 - 0x7fff837a1fff com.apple.DiskArbitration 2.2.1 (2.2.1) <e75fe224700767869227cc903bef8ed9> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff8387a000 - 0x7fff83a80ffb com.apple.security 5.0.4 (34102) <e0b73ab106139601404f2666ce1b9d65> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff83ecb000 - 0x7fff84165fe3 com.apple.Foundation 6.5.6 (677.21) <8995b3185ca91d3508c7580794d40813> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff84166000 - 0x7fff841a1fff com.apple.AE 402.2 (402.2) <b03583e0747f82199e0d9604014faa34> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x7fff842ed000 - 0x7fff842f9ff1 libgcc_s.1.dylib ??? (???) <23fa31a628c1ea8a62ac529fa333b6e1> /usr/lib/libgcc_s.1.dylib
0x7fff842fa000 - 0x7fff84382fe7 libsqlite3.0.dylib ??? (???) <3c7ab3523b816dbd3e039ee7e6e2c580> /usr/lib/libsqlite3.0.dylib
0x7fff84383000 - 0x7fff8467efe3 com.apple.CoreServices.CarbonCore 786.6 (786.6) <7048aee00133f19029108600e9ede844> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x7fffffe00000 - 0x7fffffe01780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
0xfffffffffffec000 - 0xfffffffffffeffff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
As I said, java 1.5 worked for a while, however recently it too has stopped working and spits out Segmentation Faults like these. Any clues as to why, and how to fix?
Much thanks.I have no answers, but strongly suggest posting to an appropriate forum under OS X Technologies, where Unix and developer gurus hang out.
-
Limitation on number of roles in oracle menu or segmentation fault in menu
Hi All,
Is there any limitation on the number of roles we can have in oracle menu? We are having around 300 roles created in our menu and after that if we try to add new role we are not able to compile the menu file. In the windows the form builder closes abruptly and in Linux it gives us segmentation fault error. Did anyone face the problem? Also if there is any solution then please provide the same.
Please let me know.
Thanks in advance!
AshishI just wonder how many forms do you have that you needed to create 300 roles. We normally create a role for one set of users. It means you've 300 different set of users for your application !!.
-
Segment fault (Core dump)
Hi
when i run the following Pro*c file in Unix Environment im getting the SEGMENTATION FAULT(CORE DUMP) error. I used DBX to debug the code. I couldnt find out the proper reason for this error form the dbx output.
This is the output i got from DBX.
*signal SEGV (no mapping at the fault address) in _doprnt at 0xfb98736c*
*0xfb98736c: _doprnt+0x2798: stb %o0, [%o1]*
I did the showmemuse and show leaks, the output for this commands :
(dbx) showmemuse
Checking for memory use...
Blocks in use report (blocks in use: 575 total size: 328086 bytes)
Total % of Num of Avg Allocation call stack
Size All Blocks Size
======= ==== ====== ====== =======================================
134876 41% 30 4495 kpummapg < kghgex
18098 5% 1 18098 lxldlbb < lxlinit < kpummpin < kpupin < sqgctx < sqgrct < sqlcmex < sqlcxt
16552 5% 4 4138 kogmapg < kghgex
16516 5% 4 4129 kogmapg < kogmasg
12288 3% 6 2048 nlhtnsl < nlhthnew
10350 3% 5 2070 calloc < nsbGetBFS
9688 2% 1 9688 kouogini < kouoini < kpuinit0 < kpuinit < sqgctx < sqgrct < sqlcmex < sqlcxt
8200 2% 1 8200 findbuf < doprnt < _fprintf < main
8120 2% 4 2030 sqlrlc < sqlcopydfn
8080 2% 1 8080 kpuinit0 < kpuinit < sqgctx < sqgrct < sqlcmex < sqlcxt < main
7168 2% 1 7168 calloc < nsgbliuc < nsgblini < niotns < nigcall < osncon < kpuadef < upiini
7168 2% 3 2389 lxldlod < lxdlobj
5976 1% 4 1494 sqlrlc < sqlcopydfn
4640 1% 1 4640 sqlrlc < sqldrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
4640 1% 1 4640 sqlrlc < sqlbrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
4128 1% 1 4128 calloc < nsgbliuc < nsgblini < niotns < nigcall < osncon < kpuadef < upiini
4024 1% 1 4024 sqlrlc < sqlbrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
3408 1% 1 3408 sqlrlc < sqldrl < sqlexp < sqlcmex < sqlcxt < get_pub_dates < main
2452 <1% 8 306 calloc < nsmal
2156 <1% 7 308 calloc < nlemfins
(dbx) showleaks
Checking for memory leaks...
Actual leaks report (actual leaks: 1 total size: 30 bytes)
Total Num of Leaked Allocation call stack
Size Blocks Block
Address
====== ====== ========== =======================================
30 1 0x9c9c8 getOutFileName < main
Possible leaks report (possible leaks: 0 total size: 0 bytes)
i know its because of Pad pointer and something related to Pointer or array overflow. But i couldnt find out where exactly happening....
Following is my Code, please help me to find out the error and what i need to change in my code:
#ifndef ORA_PROC
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <math.h>
#else
typedef struct FILE FILE;
#endif
/*** Added by TCS Begins ***/
char getOutFileName(char );
char getEnvVar(char );
void prepare_declare_oracle_cursors();
void get_calendar_dates();
void get_issues();
void get_master_cusip_no();
void get_run_date_finish();
void get_payments();
int get_pub_dates();
void get_rights();
void get_s_h_meetings();
void get_special_codes();
void get_agents();
void get_currency();
void get_payment_codes();
void get_issue_codes();
void get_standard_footnotes();
void get_index_codes();
void get_exchanges();
void get_tax_codes();
void get_tenders();
int check_if_holiday(int );
void sql_error(int , int , char *);
void login_error();
void no_pub_dates();
void no_cal_dates();
void no_finish_date();
void save_payment_footnote(char , char [3],int , char );
void save_issue_footnote(char );
int print_footnotes();
int print_foreign_tax();
int get_partial_run_time();
void save_rght_footnotes();
int print_supplimental();
int convert_tender_price(char *);
void pad_s_h_meetings();
int strip_out_codes(char *);
char *getSqlLogonString();
/**** TCS ADD Ends ****/
EXEC SQL INCLUDE sqlca;
EXEC SQL INCLUDE ddr_create_all_tapes.h;
#define TRUE 1
#define ORA_NOT_FOUND ( sqlca.sqlcode == 1403 )
/* The Definitions of SUCCESS and FAILURE were switched to test the
idea that SUCCESS should be Zero and FAILURE should be Non-Zero
#define SUCCESS 1
#define FAILURE 0
#define SUCCESS 0
#define FAILURE -1
#define SYSOK 0
#define SYSERR 1
#define DEBUGGING 0
#define DEBUG_LEVEL 0
/* #define DEBUGGING 1
#define DEBUG_LEVEL 2
int first_cal_date;
int footnote_count;
int foreign_count;
int last_cal_date;
int total_records;
int which_tape = 0;
char cusip_table_name[30];
char field_type_code;
char final_cusip_number[10];
/**** char footnote_text[300][300];
char foreign_text[60][100]; **** Commented by TCS as per the change request ****/
/*** Added by TCS as per the change request ***/
char footnote_text[200][300];
char foreign_text[200][300];
/*** TCS Add Ends ***/
char freq_type_code;
char init_cusip_number[10];
char rec_type_code;
char payment_where_clause[600];
char rights_where_clause[600];
char tenders_where_clause[600];
char s_h_meet_where_clause[600];
char last_run_time[18];
char supp_info_buffer[321];
int call_flag;
int tenders_flag;
int rights_flag;
int s_h_meet_flag;
int rght_foot_pos;
double hold_double;
int hold_int;
char hold_char[100];
int i=0;
FILE *fp;
FILE pfp; / this is used for a report file to correspond to
the partial tape file */
int main(int argc, char argv[]) / Modified by TCS */
char ddr_tape_name[100];
char ddr_partial_rpt[100];
char copyright_notice[100];
long file_position;
char *logname;
/* READ IN PARAMETERS AND SET UP VARIABLES */
memset (oracle_uid.arr, 0, sizeof(oracle_uid.arr));
memset (oracle_pwd.arr, 0, sizeof(oracle_pwd.arr));
strcpy (oracle_uid.arr, argv[1]);
oracle_uid.len = strlen(oracle_uid.arr);
strcpy (oracle_pwd.arr, argv[2]);
oracle_pwd.len = strlen(oracle_pwd.arr);
printf("Calling getSqlLogonString");
logname = getSqlLogonString();
which_tape = atoi(argv[1]);
memset (last_run_time, 0, sizeof(last_run_time));
if ( ( DEBUGGING ) && ( DEBUG_LEVEL > 1 ) )
printf ("Oracle username: %s\n", oracle_uid.arr);
printf ("Oracle password: %s\n", oracle_pwd.arr);
printf ("Oracle username/password@database: %s\n", logname); /** Added by TCS **/
printf ("Which Tape: %d\n", which_tape);
hold_double = 0.0;
hold_int = 0;
memset (hold_char, ' ', sizeof(hold_char));
EXEC SQL WHENEVER SQLERROR DO login_error();
/* EXEC SQL CONNECT :oracle_uid IDENTIFIED BY :oracle_pwd; */
EXEC SQL CONNECT :logname ;
printf ("Connected to ORACLE... \n");
EXEC SQL WHENEVER SQLERROR continue;
get_pub_dates();
memset (ddr_tape_name, 0, sizeof(ddr_tape_name));
memset (ddr_partial_rpt, 0, sizeof(ddr_partial_rpt));
memset (cusip_table_name, 0, sizeof(cusip_table_name));
memset (payment_where_clause, 0, sizeof(payment_where_clause));
memset (rights_where_clause, 0, sizeof(rights_where_clause));
memset (tenders_where_clause, 0, sizeof(tenders_where_clause));
memset (s_h_meet_where_clause, 0, sizeof(s_h_meet_where_clause));
/* SET UP VARIABLES BASED ON THE DIFFERENT FREQUENCY OF TAPE */
switch (which_tape)
case 0:
get_partial_run_time();
/*sprintf (ddr_tape_name,
"idb_tape$out:ddr_partial%1d.asc", p_count); ** Comented by TCS **/
sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_PARTIAL_TAPE_TABLE");
/*sprintf (ddr_partial_rpt,
"idb_tape$out:ddr_partial%1d.rpt", p_count); ** Commented by TCS **/
sprintf (ddr_partial_rpt,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_RPT")); /* Added by TCS */
get_calendar_dates();
freq_type_code = '0';
sprintf (payment_where_clause,
"AND PYMT_PUB_DATE IS NULL \
AND ((PYMT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND PYMT_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (PYMT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND PYMT_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_from.arr, p_to.arr, p_from.arr, p_to.arr);
sprintf (rights_where_clause,
"AND RGHT_PUB_DATE IS NULL \
AND ((RGHT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND RGHT_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (RGHT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND RGHT_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_from.arr, p_to.arr, p_from.arr, p_to.arr);
sprintf (tenders_where_clause,
"AND TNDR_PUB_DATE IS NULL \
AND ((TNDR_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND TNDR_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (TNDR_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND TNDR_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_from.arr, p_to.arr, p_from.arr, p_to.arr);
sprintf (s_h_meet_where_clause,
"AND SMTG_PUB_DATE IS NULL \
AND ((SMTG_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND SMTG_ADD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (SMTG_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI') \
AND SMTG_UPD_DATE_TIME < TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_from.arr, p_to.arr, p_from.arr, p_to.arr);
break;
case 3:
/* PARTIAL 5 */
get_partial_run_time();
p_count = 5;
/**sprintf (ddr_tape_name,
"idb_tape$out:ddr_partial%1d.asc", p_count); ** Comented by TCS **/
sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_ASC")); /* Added by TCS */
/* for testing only I am using seperate TABLE */
/**strcpy (cusip_table_name,
"IDB.DDR_PARTIAL5_TAPE_TABLE"); ** Commented by TCS **/
strcpy (cusip_table_name,
"IDB.DDR_PARTIAL_TAPE_TABLE");
/*sprintf (ddr_partial_rpt,
"idb_tape$out:ddr_partial%1d.rpt", p_count); ** Commented by TCS **/
sprintf (ddr_tape_name,"%s%1d.%s",getOutFileName("DDR_PARTIAL"),p_count,getEnvVar("DDR_PARTIAL_EXT_RPT")); /* Added by TCS */
get_calendar_dates();
freq_type_code = '3';
sprintf (payment_where_clause,
"AND ( (PYMT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (PYMT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_to.arr, p_to.arr);
sprintf (rights_where_clause,
"AND ((RGHT_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (RGHT_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_to.arr, p_to.arr);
sprintf (tenders_where_clause,
"AND ((TNDR_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (TNDR_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_to.arr, p_to.arr);
sprintf (s_h_meet_where_clause,
"AND ((SMTG_ADD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')) \
OR (SMTG_UPD_DATE_TIME >= TO_DATE('%15.15s', 'DD-MON-RR HH24:MI')))",
p_to.arr, p_to.arr);
break;
case 1:
/**strcpy (ddr_tape_name,
"idb_tape$out:ddr_daily_tape.asc"); ** Commented by TCS **/
sprintf (ddr_tape_name,"%s",getOutFileName("DDR_DAILY_TAPE_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_DAILY_TAPE_TABLE");
get_calendar_dates();
freq_type_code = '1';
sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
= TO_DATE('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)", pub_to_date.arr);
sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
= TO_DATE('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)", pub_to_date.arr);
sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
= TO_DATE('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)", pub_to_date.arr);
sprintf (s_h_meet_where_clause, "AND (SMTG_PUB_DATE \
= TO_DATE('%s','DD-MON-RR') OR SMTG_PUB_DATE IS NULL)", pub_to_date.arr);
break;
case 5:
/*strcpy (ddr_tape_name,
"idb_tape$out:ddr_weekly_tape.asc"); ** Commented by TCS **/
sprintf (ddr_tape_name, "%s",getOutFileName("DDR_WEEKLY_TAPE_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_WEEKLY_TAPE_TABLE");
get_calendar_dates();
freq_type_code = '2';
sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
/* ram - 6/28/95 - reverted back to original criteria: */
/* include on weekly tape based on pub-date, regardless of */
/* whether in calendar or not */
sprintf (s_h_meet_where_clause, "AND (SMTG_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR SMTG_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
break;
case 12:
/* ram - 7/13/95 */
/* changed monthly "6" to "12" */
/*strcpy (ddr_tape_name,
"idb_tape$out:ddr_monthly_tape.asc"); ** Commented by TCS **/
sprintf (ddr_tape_name, "%s", getOutFileName("DDR_MONTHLY_TAPE_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_MONTHLY_TAPE_TABLE");
freq_type_code = '3';
sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (tenders_where_clause, "AND (TNDR_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR TNDR_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
break;
case 8:
/*strcpy (ddr_tape_name,
"idb_tape$out:ddr_quarterly_tape.asc");** Commented by TCS **/
sprintf (ddr_tape_name,"%s",getOutFileName("DDR_QUARTERLY_TAPE_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_QUARTERLY_TAPE_TABLE");
freq_type_code = '3';
sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
= TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr); break;
case 9:
/*strcpy (ddr_tape_name,
"idb_tape$out:ddr_annual_tape.asc"); ** Comented by TCS **/
sprintf (ddr_tape_name,"%s", getOutFileName("DDR_ANNUAL_TAPE_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_ANNUAL_TAPE_TABLE");
freq_type_code = '4';
sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') \
OR PYMT_PUB_DATE = TO_DATE('29-OCT-1929','DD-MON-YYYY'))",
pub_from_date.arr, pub_to_date.arr);
sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
= TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr); break;
case 15:
/*strcpy (ddr_tape_name,
"idb_tape$out:ddr_general_tape.asc"); ** Commented by TCS **/
sprintf (ddr_tape_name,"%s", getOutFileName("DDR_GENERAL_TAPE_ASC")); /* Added by TCS */
strcpy (cusip_table_name,
"IDB.DDR_GENERAL_TAPE_TABLE");
freq_type_code = '3';
sprintf (payment_where_clause, "AND (PYMT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR PYMT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (rights_where_clause, "AND (RGHT_PUB_DATE \
BETWEEN to_date('%s','DD-MON-RR') AND to_date('%s','DD-MON-RR') OR RGHT_PUB_DATE IS NULL)",
pub_from_date.arr, pub_to_date.arr);
sprintf (tenders_where_clause, "AND (A.TNDR_TENDER_DATE \
= TO_DATE('%s','DD-MON-RR'))", pub_to_date.arr); break;
default:
exit (printf ("Invalid tape option: %d\n", which_tape)); /*** %s changed by TCS to %d ***/
break;
if ((fp = fopen(ddr_tape_name, "w+")) == NULL)
exit (printf ("Unable to open asc <%s> file for write access\n",
ddr_tape_name));
/* GR. Partial 5
if (which_tape == 0 || which_tape == 3 )
if ((pfp = fopen(ddr_partial_rpt, "w+")) == NULL)
exit (printf ("Unable to open asc <%s> file \
for write access\n", ddr_partial_rpt));
/* WRITE THE HEADER RECORD ON THE TAPE */
memset (copyright_notice, 0, sizeof(copyright_notice));
sprintf (copyright_notice, "COPYRIGHT (c) %.4s STANDARD & POOR'S \
CORPORATION. ALL RIGHTS RESERVED", year.arr);
fprintf (fp, "%-80.80sDIVIDEND%8d%17.17s ",
copyright_notice, control_date, run_date_start.arr);
file_position = ftell(fp);
fprintf (fp, "\n");
total_records = 0;
/* GET THE SPECIAL CATEGORY RECORDS */
get_special_codes();
/* SELECT FROM THE DRIVER TABLE TO GET ALL THE OTHER RECORDS */
get_master_cusip_no();
printf("After get_master_cusip_no()");
get_run_date_finish();
printf("After get_run_date_finish()");
if ( DEBUGGING )
printf ("initial cusip = %s\n", init_cusip_number);
printf ("final cusip = %s\n", final_cusip_number);
printf ("record type is %c\n", rec_type_code);
/* WRITE THE TRAILER RECORD */
fprintf (fp, "%8d%-17.17s%07d%-9.9s1%-9.9s%c\n", control_date,
run_date_finish.arr, total_records, init_cusip_number , final_cusip_number,
rec_type_code);
/* re-wind and add to the header record ... */
rewind(fp);
fseek(fp, file_position - 33, 0);
fprintf (fp, "%07d%-9.9s1%-9.9s%c", total_records, init_cusip_number,
final_cusip_number, rec_type_code);
fclose(fp);
/* GR Partial 5
if (which_tape == 0 || which_tape == 3 )
fclose(pfp);
printf ("\nDONE: %07d%-9.9s1%-9.9s%c\n", total_records, init_cusip_number,
final_cusip_number, rec_type_code);
return (0); /*** Added by TCS ***/
void prepare_declare_oracle_cursors() /* Modified by TCS */
/* We'll us dynamic sql to get the appropriate where clause but use */
/* a bind variable for the master cusip number. So we prepare and */
/* declare get_issues, get_payments, get_tenders, get rights, and */
/* get_s_h_meetings cursors only once, outside the driving loop. */
EXEC SQL BEGIN DECLARE SECTION;
/**** TCS Comment begins as per the change request ****
VARCHAR sql_stmt1[1500];*/ /* issues */
/*VARCHAR sql_stmt2[3000]; *//* payments */
/*VARCHAR sql_stmt3[500]; *//* tenders */
/*VARCHAR sql_stmt4[500]; *//* rights */
/*VARCHAR sql_stmt5[500]; *//* s_h_meetings */
/**** TCS Add begins as per the change request ****/
VARCHAR sql_stmt1[2000]; /* issues */
VARCHAR sql_stmt2[4000]; /* payments */
VARCHAR sql_stmt3[1000]; /* tenders */
VARCHAR sql_stmt4[1000]; /* rights */
VARCHAR sql_stmt5[1000]; /* s_h_meetings */
/**** TCS Add ends ****/
EXEC SQL END DECLARE SECTION;
/* prepare and declare the get_issues cursor */
memset (sql_stmt1.arr, 0, sizeof(sql_stmt1.arr));
sprintf (sql_stmt1.arr, "SELECT \
A.ISSU_PAR_VALUE, \
DECODE (A.ISSU_MARKET_SYMBOL||A.ISSU_NASDAQ,'OTCY','NASD', A.ISSU_MARKET_SYMBOL), \
A.ISSU_C_RATE, A.ISSU_C_FREQ, A.ISSU_C_NEW_AMOUNT, A.ISSU_C_NEW_Q1, \
A.ISSU_C_NEW_Q2, A.ISSU_C_NEW_Q3, A.ISSU_C_OLD_AMOUNT, A.ISSU_C_OLD_Q1, \
A.ISSU_C_OLD_Q2, A.ISSU_C_OLD_Q3, A.ISSU_CURRENCY, \
A.ISSU_UPD_HIS, A.ISSU_COMMENT, A.TAX_EXEMPT_FLAG,\
B.SEC_TYPE_CODE, B.ACQ_BY_IND, B.ACQ_ISSUER_NO, \
rtrim(substr(B.ACQ_ISSUER_DESCR,1,30)), \
B.INDEX_CODE, B.TRFR_AGT_CODE, B.NY_AGT_CODE, B.TICKER_SYMBOL, \
B.TICKER_SYMBOL2, \
rtrim(substr(C.ISSR_DDR_ISSUER_DESCR,1,60)), \
rtrim(substr(E.ISSUE_DESCR,1,30)), \
rtrim(substr(D.ISSUER_DESCR1,1,30)), \
F.TRFR_DAYS \
FROM IDB.DDR_ISSUES A, IDB.DDR_ISSUES_2 B, IDB.DDR_ISSUERS C, \
BLIS.CUSIP_ISSUERS D, BLIS.CUSIP_ISSUES E, IDB.DDR_TRANSFER F \
WHERE A.ISSU_CUSIP_NO = :master_cusip_no \
AND A.ISSU_CUSIP_NO = B.ISSU_CUSIP_NO(+) \
AND SUBSTR(A.ISSU_CUSIP_NO, 1, 6) = C.ISSR_ISSUER_NO(+) \
AND SUBSTR(A.ISSU_CUSIP_NO, 1, 6) = D.ISSUER_NO \
AND A.ISSU_CUSIP_NO = E.CUSIP_NO \
AND A.ISSU_TRANSFER_CODE = F.TRFR_TR_CD(+) ");
sql_stmt1.len = strlen(sql_stmt1.arr);
EXEC SQL PREPARE ISSUES FROM :sql_stmt1;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in preparing ISSUES");
EXEC SQL DECLARE ISSUES_C CURSOR FOR ISSUES;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring ISSUES");
/* now the get_payments cursor */
memset (sql_stmt2.arr, 0, sizeof(sql_stmt2.arr));
sprintf (sql_stmt2.arr, "SELECT \
a.PYMT_RP_DIV, \
a.PYMT_RP_DEC, \
a.PYMT_RP_EXD, \
a.PYMT_RP_REC, \
a.PYMT_RP_PAY, \
a.PYMT_RP_DUE, \
a.PYMT_RP_TAX, \
a.PYMT_RP_ANN, \
a.PYMT_PRP_DIV, \
a.PYMT_PRP_DEC, \
a.PYMT_PRP_EXD, \
a.PYMT_PRP_REC, \
a.PYMT_PRP_PAY, \
a.PYMT_PRP_DUE, \
a.PYMT_PRP_TAX, \
a.PYMT_PRP_ANN, \
NVL(a.PYMT_SEQ_NO,0), \
TO_CHAR(a.PYMT_DECLARED, 'YYMMDD'), \
TO_CHAR(a.PYMT_EX_DATE, 'YYMMDD'), \
TO_CHAR(a.PYMT_STK_REC, 'YYMMDD'), \
TO_CHAR(a.PYMT_TRANSFER_DATE, 'YYMMDD'), \
TO_CHAR(a.PYMT_PAYABLE, 'YYMMDD'), \
a.PYMT_CODES, \
NVL(a.PYMT_CASH_DIVD,0.0), \
NVL(b.ORDINARY_INCOME,0.0), \
NVL(b.CAP_GAINS,0.0), \
NVL(b.SHORT_TM_CAP_GAINS,0.0), \
NVL(b.LONG_TM_CAP_GAINS,0.0), \
NVL(b.RETURN_OF_CAPITAL,0.0), \
b.STK_DIVD_IND, \
NVL(a.PYMT_STK_DIVD,0), \
b.FRAC_IN_CASH_STK_IND, \
NVL(b.FRAC_IN_CASH_PRICE,0.0), \
NVL(a.PYMT_SPLIT_NEW,0), \
NVL(a.PYMT_SPLIT_OLD,0), \
TO_CHAR(a.PYMT_DB_DATE, 'YYMMDD'), \
NVL(b.ARREARS_PAID,0.0), \
NVL(b.ARREARS_DUE,0.0), \
b.SPINOFF_IND, \
b.SPINOFF_ISSUE_NO, \
b.SPINOFF_ISSUER_DESCR, \
b.SPINOFF_ISSUE_DESCR, \
NVL(b.TAX_CODE,0), \
NVL(b.TAX_CODE_2,0), \
NVL(b.OLD_SEQ_NO,0), \
b.ORDINARY_INCOME_CODE, \
b.CAP_GAINS_CODE, \
b.SHORT_TM_CAP_GAINS_CODE, \
b.LONG_TM_CAP_GAINS_CODE, \
b.RETURN_OF_CAPITAL_CODE, \
TO_CHAR(b.CALL_DATE, 'YYMMDD'), \
NVL(b.CALL_PRICE,0.0), \
b.CALL_PRICE_CURRENCY, \
b.CALL_AGT_NO, \
b.ACCRUED_DIVD_IND, \
TO_CHAR(a.PYMT_DB_DATE, 'YYMMDD'), \
a.PYMT_DB_TEXT, \
a.PYMT_DVD_TEXT, \
a.PYMT_YEAR, \
TO_CHAR(a.PYMT_STK_REC, 'fmMon dd'), \
TO_CHAR(a.PYMT_DB_DATE, 'fmMon dd'), \
b.NY_CALL_AGT_NO, \
NVL(b.FOREIGN_TAX_RATE, 0.0), \
NVL(b.NET_RATE, 0.0), \
NVL(b.FEE, 0.0), \
NVL(b.COMMISSION, 0.0), \
a.PYMT_CASH_DIVD_FNS, \
a.PYMT_STK_DIVD_FNS, \
a.PYMT_DECLARED_FNS, \
a.PYMT_EX_DATE_FNS, \
a.PYMT_STK_REC_FNS, \
a.PYMT_PAYABLE_FNS, \
a.PYMT_SPLIT_FNS, \
NVL (TO_NUMBER (TO_CHAR(a.PYMT_PUB_DATE, 'YYYYMMDD')), 0), \
NVL (TO_NUMBER (TO_CHAR(a.PYMT_TRANSFER_DATE, 'YYYYMMDD')), 0), \
NVL (TO_NUMBER (TO_CHAR(a.PYMT_STK_REC, 'YYYYMMDD')), 0), \
NVL (TO_NUMBER (TO_CHAR(a.PYMT_DB_DATE, 'YYYYMMDD')), 0) \
FROM IDB.DDR_PAYMENTS A, IDB.DDR_PAYMENTS_2 B \
WHERE A.PYMT_CUSIP_NO = :master_cusip_no \
AND A.PYMT_CUSIP_NO = B.PYMT_CUSIP_NO (+) \
AND A.PYMT_SEQ_NO = B.PYMT_SEQ_NO (+) \
AND NVL(INSTR(A.PYMT_CODES,'CO'),0) NOT IN (1,3,5,7,9,11) ");
strcat (sql_stmt2.arr, payment_where_clause);
sql_stmt2.len = strlen(sql_stmt2.arr);
EXEC SQL PREPARE PAYMENTS FROM :sql_stmt2;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in preparing PAYMENTS");
EXEC SQL DECLARE PAYMENTS_C CURSOR FOR PAYMENTS;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring PAYMENTS");
/* now the get_tenders cursor */
memset (sql_stmt3.arr, 0, sizeof(sql_stmt3.arr));
/* FXL ADD SUBSTR to tndr_price_qual: substr(A.TNDR_PRICE_QUAL,1,14), 3/23/99,
to to_number 3/29/99 */
sprintf (sql_stmt3.arr, "SELECT \
B.TNDR_AGT_NO, \
B.NY_AGT_NO, \
TO_CHAR(A.TNDR_TENDER_DATE, 'YYMMDD'), \
A.TNDR_PRICE, \
to_number(A.TNDR_PRICE_QUAL), \
A.TNDR_TE_SIZE, \
TNDR_TE_TEXT_1 \
FROM IDB.DDR_TENDERS A, IDB.DDR_TENDERS_2 B \
WHERE TNDR_CUSIP_NO = :master_cusip_no \
AND TNDR_CUSIP_NO = TNDR_ISSUE_NO(+) \
AND A.TNDR_TENDER_DATE = B.TNDR_TENDER_DATE(+) ");
strcat (sql_stmt3.arr, tenders_where_clause);
sql_stmt3.len = strlen(sql_stmt3.arr);
EXEC SQL PREPARE TENDERS FROM :sql_stmt3;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in preparing TENDERS");
EXEC SQL DECLARE TENDERS_C CURSOR FOR TENDERS;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring TENDERS");
/* now the get_rights cursor */
memset (sql_stmt4.arr, 0, sizeof(sql_stmt4.arr));
/* ADD TO_CHAR(A.RGHT_DB_DATE, 'YYMMDD') */
sprintf (sql_stmt4.arr, "SELECT \
B.NO_RIGHTS_ISSUED, \
B.SHS_REQ_FOR_PURCH, \
B.RGHTS_REQUIRED, \
B.QTY_SHS_PURCHASED, \
B.TYPE_SHS_ELIGIBLE, \
B.NEW_SHS_CUSIP_NO, \
B.NEW_CO_ISSUER_DESCR, \
TO_CHAR(A.RGHT_RECORD, 'YYMMDD'), \
TO_CHAR(A.RGHT_EX_DATE, 'YYMMDD'), \
TO_CHAR(B.NYC_RECORD_DATE, 'YYMMDD'), \
TO_CHAR(A.RGHT_EXPIRE, 'YYMMDD'), \
TO_CHAR(A.RGHT_DB_DATE, 'YYMMDD'), \
A.RGHT_PRICE, \
NVL(A.RGHT_RECORD_FNS,' '), \
NVL(A.RGHT_EXPIRE_FNS,' '), \
NVL(A.RGHT_EX_DATE_FNS,' '), \
NVL(A.RGHT_PRICE_FNS,' '), \
NVL(A.RGHT_BASIS_FNS,' '), \
A.RGHT_FOOTNOTE, \
B.US_INELIGIBILITY_IND, \
B.RGHT_TRFR_IND \
FROM IDB.DDR_RIGHTS A, IDB.DDR_RIGHTS_2 B \
WHERE RGHT_CUSIP_NO = :master_cusip_no \
AND RGHT_CUSIP_NO = RGHT_ISSUE_NO(+) \
AND A.RGHT_RECORD = B.RGHT_RECORD_DATE(+) ");
strcat (sql_stmt4.arr, rights_where_clause);
sql_stmt4.len = strlen(sql_stmt4.arr);
EXEC SQL PREPARE RIGHTS FROM :sql_stmt4;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in preparing RIGHTS");
EXEC SQL DECLARE RIGHTS_C CURSOR FOR RIGHTS;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring RIGHTS");
/* ram - added logic on 7/18/95 */
/* for the standard footnotes cursor */
EXEC SQL DECLARE STANDARD_FOOTNOTES_C CURSOR
FOR
SELECT SFTN_S_F_TEXT, SFTN_S_F_TYPE
FROM IDB.DDR_STANDARD_FOOTNOTES
WHERE SFTN_S_F_TYPE = :standard_footnote_type;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring STANDARD_FOOTNOTES");
/* now the issue footnotes cursor */
EXEC SQL DECLARE ISSUE_FOOTNOTES_C CURSOR
FOR
SELECT FTNT_F_TEXT, FTNT_F_TYPE
FROM IDB.DDR_FOOTNOTES
WHERE FTNT_CUSIP_NO = :master_cusip_no
AND FTNT_SYMBOL = :footnote_symbol
AND FTNT_YEAR IS NULL;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring ISSUE_FOOTNOTES");
/* now the payment footnotes cursor */
EXEC SQL DECLARE PAYMENT_FOOTNOTES_C CURSOR
FOR
SELECT FTNT_F_TEXT, FTNT_F_TYPE
FROM IDB.DDR_FOOTNOTES
WHERE FTNT_CUSIP_NO = :master_cusip_no
AND FTNT_SYMBOL = :footnote_symbol
AND FTNT_YEAR = :footnote_year;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring PAYMENT_FOOTNOTES");
/* now the get_s_h_meetings cursor */
/* ONLY for certain tape types. */
/* GR PARTial 5
if (which_tape == 0 || which_tape == 3 || which_tape == 1 || which_tape == 5)
memset (sql_stmt5.arr, 0, sizeof(sql_stmt5.arr));
/* ram - 6/15/95 - changed ORigunal to smtg */
/* TO_CHAR(ORIGINAL_REC_DATE, 'YYMMDD'), \ */
sprintf (sql_stmt5.arr, "SELECT \
TO_CHAR(SMTG_MTG_DATE, 'YYMMDD'), \
TO_CHAR(SMTG_REC_DATE, 'YYMMDD'), \
SMTG_FOOTNOTE \
FROM IDB.DDR_S_H_MEETINGS \
WHERE SMTG_CUSIP_NO = :master_cusip_no ");
strcat (sql_stmt5.arr, s_h_meet_where_clause);
sql_stmt5.len = strlen(sql_stmt5.arr);
EXEC SQL PREPARE S_H_MEET FROM :sql_stmt5;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in preparing S_H_MEET");
EXEC SQL DECLARE S_H_MEET_C CURSOR FOR S_H_MEET;
if (sqlca.sqlcode)
sql_error (SYSERR, sqlca.sqlcode,
"Error in declaring S_H_MEET");
} /* end of if (which_tape == 0 || which_tape == 1 || which_tape == 5) */
/* replaced get_calendar_dates function with use of PLSQL - ram - 5/24/95 */
void get_calendar_dates() /* Modified by TCS */
/* put first and last calendar dates into global ints */
/* first_cal_date and last_cal_date (YYYYMMDD) using */
/* ddr package function get_business_days. */
/* The package object ddr is owned by idb, so I'll */
/* specify this, just in case accounts other than idb */
/* run this code. (EXECUTE priviledge is granted to */
/* "idb_user" role.) */
EXEC SQL BEGIN DECLARE SECTION;
int cal_start;
int cal_end;
int return_val;
EXEC SQL END DECLARE SECTION;
/* initialize destination globals */You actually need to run it with "check -access"; memuse and leaks won't help with the crash, which happens because of illegal memory access. Hopefully, "check -access" will help you to locate the bad guy, but that's not panacea either.
To be precise:
- start dbx
$ dbx <your app>
- issue
(dbx) check -access
(dbx) run
and wait for dbx to stop and report suspicious memory access. -
I'm getting a segmentation fault on the laptop
I'm getting a segmentation fault when trying to upgrade system (pacman -Syu).
This happened after my battery went empy (this is a laptop).
Here goes the output of `pacman -Syu --debug':
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: SyncFirst: pacman
debug: config: architecture: x86_64
debug: config: showsize
debug: config: usedelta
debug: config: totaldownload
debug: config: new section 'core'
debug: registering sync database 'core'
debug: config file /etc/pacman.conf, line 64: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'core': http://mirrors.kernel.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.archlinux.no/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.uib.no/core/os/x86_64
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: config file /etc/pacman.conf, line 67: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'extra': http://mirrors.kernel.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.archlinux.no/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.uib.no/extra/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: config file /etc/pacman.conf, line 73: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': http://mirrors.kernel.org/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.archlinux.no/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.uib.no/community/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: registering sync database 'multilib'
debug: config file /etc/pacman.conf, line 86: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'multilib': http://mirrors.kernel.org/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.archlinux.no/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.uib.no/multilib/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'archlinuxfr'
debug: registering sync database 'archlinuxfr'
debug: adding new server URL to database 'archlinuxfr': http://repo.archlinux.fr/x86_64
debug: config: new section 'nightly'
debug: registering sync database 'nightly'
debug: adding new server URL to database 'nightly': http://nightly.uhuc.de/x86_64
debug: config: finished parsing /etc/pacman.conf
debug: registering local database
:: Synchronizing package databases...
debug: destfile found, using mtime only
debug: using 'core.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1288548030 local_time: 1288548030 compare: 0
debug: ust.size: 36523 local_size: 36523 compare: 0
debug: files are identical, skipping core.db.tar.gz
core is up to date
debug: destfile found, using mtime only
debug: using 'extra.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1288548042 local_time: 1288548042 compare: 0
debug: ust.size: 487079 local_size: 487079 compare: 0
debug: files are identical, skipping extra.db.tar.gz
extra is up to date
debug: destfile found, using mtime only
debug: using 'community.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1288545853 local_time: 1288545853 compare: 0
debug: ust.size: 398944 local_size: 398944 compare: 0
debug: files are identical, skipping community.db.tar.gz
community is up to date
debug: destfile found, using mtime only
debug: using 'multilib.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1288386951 local_time: 1288386951 compare: 0
debug: ust.size: 21675 local_size: 21675 compare: 0
debug: files are identical, skipping multilib.db.tar.gz
multilib is up to date
debug: destfile found, using mtime only
debug: using 'archlinuxfr.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1288452825 local_time: 1288452825 compare: 0
debug: ust.size: 21807 local_size: 21807 compare: 0
debug: files are identical, skipping archlinuxfr.db.tar.gz
archlinuxfr is up to date
debug: destfile found, using mtime only
debug: using 'nightly.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1288324936 local_time: 1288324936 compare: 0
debug: ust.size: 21349 local_size: 21349 compare: 0
debug: files are identical, skipping nightly.db.tar.gz
nightly is up to date
debug: loading package cache for repository 'local'
debug: database path for tree local set to /var/lib/pacman/local/
debug: loading package cache for repository 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core/
:: Starting full system upgrade...
debug: checking for package upgrades
debug: loading package cache for repository 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra/
debug: new version of 'aalib' found (1.4rc5-6 => 1.4rc5-7)
debug: adding package aalib-1.4rc5-7 to the transaction targets
debug: loading package cache for repository 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community/
debug: loading package cache for repository 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib/
debug: loading package cache for repository 'archlinuxfr'
debug: database path for tree archlinuxfr set to /var/lib/pacman/sync/archlinuxfr/
debug: loading package cache for repository 'nightly'
debug: database path for tree nightly set to /var/lib/pacman/sync/nightly/
debug: new version of 'awesome' found (3.4.7-1 => 3.4.8-1)
debug: adding package awesome-3.4.8-1 to the transaction targets
debug: new version of 'chromium' found (6.0.472.62-1 => 7.0.517.43-1)
debug: adding package chromium-7.0.517.43-1 to the transaction targets
debug: new version of 'compositeproto' found (0.4.1-1 => 0.4.2-1)
debug: adding package compositeproto-0.4.2-1 to the transaction targets
debug: new version of 'damageproto' found (1.2.0-1 => 1.2.1-1)
debug: adding package damageproto-1.2.1-1 to the transaction targets
debug: new version of 'dhcpcd' found (5.2.7-1 => 5.2.8-1)
debug: adding package dhcpcd-5.2.8-1 to the transaction targets
debug: new version of 'emesene' found (1.6.3-3 => 1.6.3-4)
debug: adding package emesene-1.6.3-4 to the transaction targets
debug: new version of 'fixesproto' found (4.1.1-1 => 4.1.2-1)
debug: adding package fixesproto-4.1.2-1 to the transaction targets
debug: new version of 'fontsproto' found (2.1.0-1 => 2.1.1-1)
debug: adding package fontsproto-2.1.1-1 to the transaction targets
debug: new version of 'gimp' found (2.6.10-2 => 2.6.11-1)
debug: adding package gimp-2.6.11-1 to the transaction targets
debug: new version of 'gparted' found (0.6.4-1 => 0.7.0-1)
debug: adding package gparted-0.7.0-1 to the transaction targets
debug: new version of 'jre' found (6u22-2 => 6u22-3)
debug: adding package jre-6u22-3 to the transaction targets
debug: new version of 'kernel26' found (2.6.35.7-1 => 2.6.35.8-1)
debug: adding package kernel26-2.6.35.8-1 to the transaction targets
debug: new version of 'kernel26-headers' found (2.6.35.7-1 => 2.6.35.8-1)
debug: adding package kernel26-headers-2.6.35.8-1 to the transaction targets
debug: new version of 'libdrm-git' found (20101027-1 => 20101029-1)
debug: adding package libdrm-git-20101029-1 to the transaction targets
debug: new version of 'libxdmcp' found (1.0.3-1 => 1.1.0-1)
debug: adding package libxdmcp-1.1.0-1 to the transaction targets
debug: new version of 'libxft' found (2.1.14-1 => 2.2.0-1)
debug: adding package libxft-2.2.0-1 to the transaction targets
debug: new version of 'libxkbfile' found (1.0.6-1 => 1.0.7-1)
debug: adding package libxkbfile-1.0.7-1 to the transaction targets
debug: new version of 'libxmu' found (1.0.5-1 => 1.1.0-1)
debug: adding package libxmu-1.1.0-1 to the transaction targets
debug: new version of 'libxpm' found (3.5.8-1 => 3.5.9-1)
debug: adding package libxpm-3.5.9-1 to the transaction targets
debug: new version of 'libxss' found (1.2.0-1 => 1.2.1-1)
debug: adding package libxss-1.2.1-1 to the transaction targets
debug: new version of 'libxtst' found (1.1.0-1 => 1.2.0-1)
debug: adding package libxtst-1.2.0-1 to the transaction targets
debug: new version of 'libxv' found (1.0.5-1 => 1.0.6-1)
debug: adding package libxv-1.0.6-1 to the transaction targets
debug: new version of 'libxxf86dga' found (1.1.1-1 => 1.1.2-1)
debug: adding package libxxf86dga-1.1.2-1 to the transaction targets
debug: new version of 'libxxf86vm' found (1.1.0-1 => 1.1.1-1)
debug: adding package libxxf86vm-1.1.1-1 to the transaction targets
debug: new version of 'mlocate' found (0.23.1-1 => 0.23.1-2)
debug: adding package mlocate-0.23.1-2 to the transaction targets
debug: new version of 'mpfr' found (3.0.0-2 => 3.0.0.p4-1)
debug: adding package mpfr-3.0.0.p4-1 to the transaction targets
debug: new version of 'perl-mp3-info' found (1.24-1 => 1.24-2)
debug: adding package perl-mp3-info-1.24-2 to the transaction targets
debug: new version of 'randrproto' found (1.3.1-1 => 1.3.2-1)
debug: adding package randrproto-1.3.2-1 to the transaction targets
debug: new version of 'recordproto' found (1.14-1 => 1.14.1-1)
debug: adding package recordproto-1.14.1-1 to the transaction targets
debug: new version of 'scrnsaverproto' found (1.2.0-1 => 1.2.1-1)
debug: adding package scrnsaverproto-1.2.1-1 to the transaction targets
debug: new version of 'syslinux' found (4.02-1 => 4.03-1)
debug: adding package syslinux-4.03-1 to the transaction targets
debug: new version of 'vicious-git' found (20101027-1 => 20101029-1)
debug: adding package vicious-git-20101029-1 to the transaction targets
debug: new version of 'wine' found (1.3.5-1 => 1.3.6-1)
debug: adding package wine-1.3.6-1 to the transaction targets
debug: new version of 'xplc' found (0.3.13-2 => 0.3.13-3)
debug: adding package xplc-0.3.13-3 to the transaction targets
error: segmentation fault
Internal pacman error: Segmentation fault.
Please submit a full bug report with --debug if appropriate.
I've tried running memtest86+ and I'm not having any errors.
What should I do next?
This is depressing :´-(Hey, thanks!
That just did it -
Root.sh failure during Grid install - segmentation fault for clscfg
Hi anyone got any idea how to resolve the following error during execution of root.sh on second node of a RAC installation. I see there is a failure when clscfg -localadd is run - perhaps this is the start of the issue. I have no idea what this command is doing
Any help appreciated
Installing verison 11.2.0.2 on RHEL 5
ntpd was NOT running - I ignored this during the pre-reqs at the end of the runInstaller - perhaps this is the issue and i need to start fresh and make sure its running before running root.sh ?
root.sh....
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
Failure with signal 11 from command: 1 /opt/app/11.2.0/grid/bin/clscfg -localadd
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'coden-ota-odc'
CRS-2676: Start of 'ora.mdnsd' on 'coden-ota-odc' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'coden-ota-odc'
CRS-2676: Start of 'ora.gpnpd' on 'coden-ota-odc' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'coden-ota-odc'
CRS-2672: Attempting to start 'ora.gipcd' on 'coden-ota-odc'
CRS-2676: Start of 'ora.cssdmonitor' on 'coden-ota-odc' succeeded
CRS-2676: Start of 'ora.gipcd' on 'coden-ota-odc' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'coden-ota-odc'
CRS-2672: Attempting to start 'ora.diskmon' on 'coden-ota-odc'
CRS-2676: Start of 'ora.diskmon' on 'coden-ota-odc' succeeded
CRS-2676: Start of 'ora.cssd' on 'coden-ota-odc' succeeded
Start of resource "ora.ctssd" failed
CRS-2672: Attempting to start 'ora.ctssd' on 'coden-ota-odc'
CRS-2674: Start of 'ora.ctssd' on 'coden-ota-odc' failed
CRS-4000: Command Start failed, or completed with errors.
Cluster Time Synchronisation Service start in exclusive mode failed at /opt/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 6455.
/opt/app/11.2.0/grid/perl/bin/perl -I/opt/app/11.2.0/grid/perl/lib -I/opt/app/11.2.0/grid/crs/install /opt/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
I executed the /opt/app/11.2.0/grid/bin/clscfg to see what the result was and it returns a Segmentation Fault to std err
Edited by: 787789 on Nov 10, 2010 6:58 AMHi,
here is one document you can go for work around but it is on windows platform but similar error as you posted *CRS Installation Failed with "failed to configure Oracle Cluster Registry with CLSCFG, ret 9" [ID 851742.1]*
Thanks -
Upgraded to Ubuntu lucid lynx 64bit platform, Firefox will no longer start, even in terminal safe mode - terminal reports Attempting to load the system libmoon Segmentation fault. Thunderbird works fine. Un-installed/re-installed to no success.
== User Agent ==
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2I completely uninstalled everything associated with firefox in synaptic package manager, then reinstalled the latest version of firefox again.
Evidently one of the add-ons was preventing firefox from opening, not sure which one though. I hope this will help someone else. Firefox is working now. -
When browsing with midori, it sometimes crashes. It seems to be random, a page might chras it someday, but not the otherday. When run in terminall with -g it gives this:
Launching command: '/usr/bin/gdb' --batch -ex 'set print thread-events off' -ex run -ex bt -ex 'set logging on /tmp/midori-gdb.bt' --return-child-result --args midori
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py", line 9, in <module>
from gobject import register
File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
(midori4:5202): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2:19: Theming engine 'adwaita' not found
a bunch of similar Gtk warnings...
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Program received signal SIGSEGV, Segmentation fault.
0xb598565c in JSC::WeakBlock::visit(JSC::HeapRootVisitor&) () from /usr/lib/libjavascriptcoregtk-3.0.so.0
#0 0xb598565c in JSC::WeakBlock::visit(JSC::HeapRootVisitor&) () from /usr/lib/libjavascriptcoregtk-3.0.so.0
#1 0xb5983774 in JSC::MarkedSpace::visitWeakSets(JSC::HeapRootVisitor&) () from /usr/lib/libjavascriptcoregtk-3.0.so.0
#2 0xb597c340 in JSC::Heap::markRoots(bool) () from /usr/lib/libjavascriptcoregtk-3.0.so.0
#3 0xb597cec7 in JSC::Heap::collect(JSC::Heap::SweepToggle) () from /usr/lib/libjavascriptcoregtk-3.0.so.0
#4 0xb597d08c in JSC::Heap::collectAllGarbage() () from /usr/lib/libjavascriptcoregtk-3.0.so.0
#5 0xb5eaf77b in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#6 0xb5eafa45 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#7 0xb6bb5602 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#8 0xb6bb5675 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#9 0xb6c4436b in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#10 0xb7ebd46f in ?? () from /usr/lib/libglib-2.0.so.0
#11 0xb7ebc793 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb7ebcb30 in ?? () from /usr/lib/libglib-2.0.so.0
#13 0xb7ebcf8b in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0xb7ad32f5 in gtk_main () from /usr/lib/libgtk-3.so.0
#15 0x08067e45 in main ()
*** NSPlugin Viewer *** ERROR: rpc_end_sync called when not in sync!
Launching command: '/usr/bin/gdb' --batch -ex 'set print thread-events off' -ex run -ex bt -ex 'set logging on /tmp/midori-gdb.bt' --return-child-result --args midori d
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py", line 9, in <module>
from gobject import register
File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
(midori4:5560): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2:19: Theming engine 'adwaita' not found
a bunch of similar Gtk warnings...
** (midori4:5560): CRITICAL **: midori_browser_add_uri: assertion `uri != NULL' failed
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
#0 0x00000000 in ?? ()
#1 0xbffff438 in ?? ()
#2 0x00000001 in ?? ()
*** NSPlugin Viewer *** ERROR: rpc_end_sync called when not in sync!
[matyilona@localhost ~]$ midori -gd
Launching command: '/usr/bin/gdb' --batch -ex 'set print thread-events off' -ex run -ex bt -ex 'set logging on /tmp/midori-gdb.bt' --return-child-result --args midori d
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py", line 9, in <module>
from gobject import register
File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
(midori4:7964): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2:19: Theming engine 'adwaita' not found
a bunch of similar Gtk warnings...
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Program received signal SIGSEGV, Segmentation fault.
0xb602a803 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#0 0xb602a803 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#1 0xb602ad56 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#2 0xb602d4de in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#3 0xb602e675 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#4 0xa0bdbc80 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
I dont know witch pages I was looking at when midori chrashed.
I found this, but I'm not sure if I have the same problem. Are this three are all the same problem, and if so, is it something with flash?Are you using KDE? Did you just did an upgrade of KDE?
I had a similar problem and it seems to be related to ~/.kde4 where it seems settings do not get updated. I even have a thread about the Pager Settings not updating.
Anyway ... if this is your case deleting ~/.kde4 and logging out and in again solved the problem for me, for both: Chromium and Firefox. Of course you loose your personal settings but it's faster to re-set your settings than it is to find what file is failing to update in ~/.kde4
Hope this helps.
R -
HT1338 Macbook pro mac os 10.6.8 software update segment fault
I recently tried to update a few software on my macbook pro, but apparently software update crashed while it ran in the process.
So I cannot update any softwares since it won't work at all. I even tried to run softwareupdate on command line and it gave me
"segement fault". Any idea how to fix this problem?
In the Software logs:
Apr 11 11:38:00 Realfrees-MacBook-Pro com.apple.WindowServer[263]: Wed Apr 11 11:38:00 Realfrees-MacBook-Pro.local WindowServer[263] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Apr 11 11:38:00 Realfrees-MacBook-Pro WindowServer[263]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Apr 11 11:38:01 Realfrees-MacBook-Pro Software Update[272]: Looking for products to install
Apr 11 11:38:11 Realfrees-MacBook-Pro com.apple.launchd[1] ([0x0-0x21021].com.apple.SoftwareUpdate[272]): Job appears to have crashed: Segmentation fault
Apr 11 11:38:11 Realfrees-MacBook-Pro loginwindow[262]: DEAD_PROCESS: 262 console
Apr 11 11:38:11 Realfrees-MacBook-Pro UserEventAgent[267]: CGSShutdownServerConnections: Detaching application from window server
Apr 11 11:38:11 Realfrees-MacBook-Pro com.apple.UserEventAgent-LoginWindow[267]: Wed Apr 11 11:38:11 Realfrees-MacBook-Pro.local UserEventAgent[267] <Warning>: CGSShutdownServerConnections: Detaching application from window server
Apr 11 11:38:11 Realfrees-MacBook-Pro UserEventAgent[267]: CGSDisplayServerShutdown: Detaching display subsystem from window server
Apr 11 11:38:11 Realfrees-MacBook-Pro UserEventAgent[267]: XRHotKeyAgent:638 kCGErrorInvalidConnection
Apr 11 11:38:11 Realfrees-MacBook-Pro com.apple.UserEventAgent-LoginWindow[267]: Wed Apr 11 11:38:11 Realfrees-MacBook-Pro.local UserEventAgent[267] <Warning>: CGSDisplayServerShutdown: Detaching display subsystem from window server
Apr 11 11:38:12 Realfrees-MacBook-Pro /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow[279]: Login Window Application Started
Apr 11 11:38:13 Realfrees-MacBook-Pro com.apple.ReportCrash.Root[276]: 2012-04-11 11:38:13.055 ReportCrash[276:2903] Saved crash report for Software Update[272] version ??? (???) to /Library/Logs/DiagnosticReports/Software Update_2012-04-11-113813_localhost.crash
And crash reports:
Date/Time: 2012-04-11 11:32:56.409 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000bbadbeef
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.JavaScriptCore 0x00007fff874dd7f9 JSC::Heap::makeUsableFromMultipleThreads() + 57
1 com.apple.JavaScriptCore 0x00007fff874dd2e4 JSGlobalContextCreateInGroup + 132
2 com.apple.installframework 0x00007fff810d2c93 IFJS_GlobalContextCreate + 32
3 com.apple.installframework 0x00007fff810cd986 -[PKDistributionController initWithDistribution:interfaceType:] + 310
4 ...le.SoftwareUpdate.framework 0x00007fff81124416 -[SUProduct distributionController] + 115
5 ...le.SoftwareUpdate.framework 0x00007fff8112bde9 -[SULocalProduct initWithProductKey:productPath:error:] + 401
6 ...le.SoftwareUpdate.framework 0x00007fff8112c85a -[SUProductManager localProductForProductKey:] + 96
7 ...le.SoftwareUpdate.framework 0x00007fff8112d90a -[SUProductManager allLocalProducts] + 258
8 ...le.SoftwareUpdate.framework 0x00007fff8112d559 -[SUProductManager(InstallAtLogout) _productForProductKey:] + 64
9 ...le.SoftwareUpdate.framework 0x00007fff8112d4ac -[SUProductManager(InstallAtLogout) productsToInstallAtLogout] + 236
10 com.apple.SoftwareUpdate 0x000000010000eeeb 0x100000000 + 61163
11 com.apple.Foundation 0x00007fff82380bc5 _nsnote_callback + 167
12 com.apple.CoreFoundation 0x00007fff83ec7000 __CFXNotificationPost + 1008
13 com.apple.CoreFoundation 0x00007fff83eb3578 _CFXNotificationPostNotification + 200
14 com.apple.Foundation 0x00007fff82377b26 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
15 com.apple.AppKit 0x00007fff8784144a -[NSApplication _postDidFinishNotification] + 100
16 com.apple.AppKit 0x00007fff8784137f -[NSApplication _sendFinishLaunchingNotification] + 66
17 com.apple.AppKit 0x00007fff8790c35d -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 219
18 com.apple.AppKit 0x00007fff8790bfd9 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
19 com.apple.Foundation 0x00007fff823af1c6 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
20 com.apple.Foundation 0x00007fff823aeff6 _NSAppleEventManagerGenericHandler + 114
21 com.apple.AE 0x00007fff844f732b aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
22 com.apple.AE 0x00007fff844f7224 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
23 com.apple.AE 0x00007fff844f712b aeProcessAppleEvent + 210
24 com.apple.HIToolbox 0x00007fff8707e619 AEProcessAppleEvent + 48
25 com.apple.AppKit 0x00007fff87811095 _DPSNextEvent + 1191
26 com.apple.AppKit 0x00007fff87810801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
27 com.apple.AppKit 0x00007fff877d668f -[NSApplication run] + 395
28 com.apple.AppKit 0x00007fff877cf3b0 NSApplicationMain + 364
29 com.apple.SoftwareUpdate 0x0000000100001cc8 0x100000000 + 7368Greetings,
Download the combo update (don't install it yet): http://support.apple.com/kb/DL1400
SafeBoot your computer: http://support.apple.com/kb/HT1455
While in SafeBoot install the combo update
Restart the computer to come out of SafeBoot
Try running software update again and see if it works.
Hope that helps.
Maybe you are looking for
-
HT5622 How to remove credit card
How do I remove my credit card from my Apple (ITunes) account?
-
When syncing my iPad for the first time to my iTunes (which was in Australia at one time but no longer) my iPad defaulted to the Australian format for phone numbers and each contact listed was now an Australian address. My iTunes is set to the USA. H
-
How to partition already partitioned hard drive on Macbook pro 10.9.4
Hello I have a macbook pro. I partitioned the hard drive before and installed windows 7. Now the hard disk size of windows is getting full. So I need to shrink the windows part. I tried to partition it again but bootcamp disappears. I have deleted th
-
My users, who are mostly clerical staff want to do everything in a form via the keyboard without using the mouse. We are on 10gAS(9.0.4) forms on windows 2003 server. I have found that Ctrl+S will save a record. What is the key combination for deleti
-
HT201263 iTunes Recovery for iPhone 4s did not work
What do I do if I used iTunes to restore the device, waited an hour, and it still didn't work? iPhone 4s Not jailbroken Paraphrased error message... "there was an error when restoring device, unable to restore" Apple icon still blinking intermittentl