Exception handling is not working in GCC compile shared object
Hello,
I am facing very strange issue on Solaris x86_64 platform with C++ code compiled usging gcc.3.4.3.
I have compiled shared object that load into web server process space while initialization. Whenever any exception generate in code base, it is not being caught by exception handler. Even though exception handlers are there. Same code is working fine since long time but on Solaris x86, Sparc arch, Linux platform
With Dbx, I am getting following stack trace.
Stack trace is
dbx: internal error: reference through NULL pointer at line 973 in file symbol.cc
[1] 0x11335(0x1, 0x1, 0x474e5543432b2b00, 0x59cb60, 0xfffffd7fffdff2b0, 0x11335), at 0x11335
---- hidden frames, use 'where -h' to see them all ----
=>[4] __cxa_throw(obj = (nil), tinfo = (nil), dest = (nil), , line 75 in "eh_throw.cc"
[5] OBWebGate_Authent(r = 0xfffffd7fff3fb300), line 86 in "apache.cpp"
[6] ap_run_post_config(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x444624
[7] main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x42c39a
I am using following link options.
Compile option is
/usr/sfw/bin/g++ -c -I/scratch/ashishas/view_storage/build/coreid1014/palantir/apache22/solaris-x86_64/include -m64 -fPIC -D_REENTRANT -Wall -g -o apache.o apache.cpp
Link option is
/usr/sfw/bin/g++ -shared -m64 -o apache.so apache.o -lsocket -lnsl -ldl -lpthread -lthread
At line 86, we are just throwing simple exception which have catch handlers in place. Also we do have catch(...) handler as well.
Surpursing things are..same issue didn't observe if we make it as executable.
Issue only comes if this is shared object loaded on webserver. If this is plain shared object, opened by anyother exe, it works fine.
Can someone help me out. This is completly blocking issue for us. Using Solaris Sun Studio compiler is no option as of now.
shared object that load into web server process space
... same issue didn't observe if we make it as executable.When you "inject" your shared object into some other process a well-being of your exception handling depends on that other process.
Mechanics of x64 stack traversing (unwind) performed when you throw the exception is quite complicated,
particularly involving a "nearly-standartized" Unwind interface (say, Unwind_RaiseException).
When we are talking about g++ on Solaris there are two implementations of unwind interface, one in libc and one in libgcc_s.so.
When you g++-compile the executable you get it directly linked with libgcc_s.so and Unwind stuff resolves into libgccs.
When g++-compiled shared object is loaded into non-g++-compiled executable's process _Unwind calls are most likely already resolved into Solaris libc.
Thats why you might see the difference.
Now, what exactly causes this difference can vary, I can only speculate.
All that would not be a problem if _Unwind interface was completely standartized and properly implemented.
However there are two issues currently:
* gcc (libstdc++ in particular) happens to use additional non-standard _Unwind calls which are not present in Solaris libc
naturally, implementation details of Unwind implementation in libc differs to that of libgccs, so when all the standard _Unwind
routines are resolved into Solaris version and one non-standard _Unwind routine is resolved into gcc version you get a problem
(most likely that is what happens with you)
* libc Unwind sometimes is unable to decipher the code generated by gcc.
However that is likely to happen with modern gcc (say, 4.4+) and not that likely with 3.4.3
Btw, you can check your call frame to see where _Unwind calls come from:
where -h -lIf you indeed stomped on "mixed _Unwind" problem then the only chance for you is to play with linker
so it binds Unwind stuff from your library directly into libgccs.
Not tried it myself though.
regards,
__Fedor.
Similar Messages
-
Exception handler is not working
Hi fellas,
My function works fine when the entered username and password are correct. I'm trying to figure out why my exception handler is not displaying the contents of the DBMS_OUTPUT.PUT_LINE when the username or password are not correct. Any ideas?
Thanks,
Mat
VARIABLE g_output VARCHAR2(30)
VARIABLE g_username VARCHAR2(8)
VARIABLE g_password VARCHAR2(8)
VARIABLE g_ck CHAR
BEGIN
:g_username := 'gma1';
:g_password := 'gofy';
:g_ck := 'N';
END;
CREATE OR REPLACE PACKAGE login_pkg IS
FUNCTION log_in_pf
(p_username IN VARCHAR2,
p_password IN VARCHAR2,
p_ck IN OUT CHAR)
RETURN CHAR;
END;
CREATE OR REPLACE PACKAGE BODY login_pkg IS
FUNCTION log_in_pf
(p_username IN VARCHAR2,
p_password IN VARCHAR2,
p_ck IN OUT CHAR)
RETURN CHAR
IS
lv_username_txt bb_shopper.username %TYPE;
lv_password_txt bb_shopper.password%TYPE;
BEGIN
SELECT username, password
INTO lv_username_txt, lv_password_txt
FROM bb_shopper
WHERE username = p_username
AND password = p_password;
IF lv_username_txt||lv_password_txt = p_username||p_password THEN
p_ck := 'Y';
ELSE p_ck := 'N';
END IF;
RETURN p_ck;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('Invalid username or password');
END log_in_pf;
END;
BEGIN
:g_output := login_pkg.log_in_pf(:g_username, :g_password, :g_ck);
END;
BEGIN
ERROR at line 1:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "SCOTT.LOGIN_PKG", line 23
ORA-06512: at line 2
Edited by: Mathew2 on Jul 20, 2009 3:20 AMChange your package defination too::
CREATE OR REPLACE PACKAGE BODY login_pkg
IS
FUNCTION log_in_pf (
p_username IN VARCHAR2,
p_password IN VARCHAR2,
p_ck IN OUT CHAR
RETURN CHAR
IS
lv_username_txt bb_shopper.username%TYPE;
lv_password_txt bb_shopper.PASSWORD%TYPE;
BEGIN
SELECT username, PASSWORD
INTO lv_username_txt, lv_password_txt
FROM bb_shopper
WHERE username = p_username AND PASSWORD = p_password;
IF lv_username_txt || lv_password_txt = p_username || p_password
THEN
p_ck := 'Y';
ELSE
p_ck := 'N';
END IF;
RETURN p_ck;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
DBMS_OUTPUT.put_line ('Invalid username or password');
return 'N' ; --Added return statement as also mentioned in other post.
END log_in_pf;
END; -
Filtering not working for newly added child objects in master-detail table
Hi,
I am using Jdeveloper 11.1.1.4 version.
Problem scenario:
Filtering of records is not working for newly created child objects in a master-detail scenario.
Steps to reproduce this issue using HR Schema (using LOCATIONS and DEPARTMENTS table ) :
1. Create Business components (EO's & VO's ) for LOCATIONS & DEPARTMENTS table)
1. Create a .jspx page and insert a readonly master table of Locations
2. Insert a child table (inline-edit table) of Departments and enable filtering
4. For the child table, drag and drop CreateInsert operation as a toolbar button .
5. Create a new child record using the toolbar button and enter data .
6. Filtering on the newly created child record's attributes does not work.
Please note that the same filter works for existing child records.
Any suggestions for resolving this issue?
Thanks,
VikasFound from Fusion Developer's Guide the following snippet about QBE functionality :
"+When you create data controls, all data collections will automatically include a Named Criteria node with an All Queriable Attributes criteria. This is the default view criteria that includes all the searchable attributes or columns of the data collection. You cannot edit or modify this view criteria+. "
So, the question is if the implicit view criteria cannot be edited, how else to set the query execution mode to "Both" ?
Shouldn't ADF BC support this by default? Is this a bug?
Note:- If you create a maste-detail table using POJO datacontrols, filter works correctly for newly created child records also .
This seems to be an issue with ADF-BC datacontrols only.
Thanks,
Vikas -
I am connecting to the internet using the Internet Sharing from my iMac ...
The trouble is the messages in the Messages app are not sent when I am connected through my iMac ... When I key in a message and hit send a progress bar appears fills up till 90% and just gets stuck there and after a while the red exclamation mark stating the message was not sent appears ... Now if I connect through my wi-fi router or thether through my phone it works fine ... I can send / recieve messages ...
Similar points to note - Today when I tried to make an App Purchase - The security info screen ( new additon - http://isource.com/2012/04/11/iphone-app-store-security-info-alert/ ) popped up but I got a blank screen for the securtiy questions screen ... It was not loading the screen ... Some games the game center invite does not work through my Internet sharing (tried in MetalStorm) ... but works fine thorough wi-fi or thether ...
What could be the problem with my iMac s sharing? Any suggestions would be really useful /// Thanx in advance
I am running Lion ... and I have updated to the latest Airport software ...
Only thing I tried was changing the DNS ... but that s not related right ?Powerline adapters use your home powerlines (mains a/c) to connect your devices via ethernet to your modem, they're easy to set up and the they TOTALLY fixed my ATV problem, the problem seems to be with the wireless. I've been trawling through apple discussions, and did found a workaround to my problem https://discussions.apple.com/thread/4222883?start=0&tstart=0
but its just a workaround :/ -
Windows XP file/folder handling does not work? (RSP Rules!)
Sorry if this has been asked many times before, but a forum search on "folder" does not return anything ??? (amazing)
I am trying to make sense out of where and when to use folders and collections and I wish there would be more info in the help/manual.
Lesson learned so far: you can spend an awful lot of time flagging images as rejected and then delete them from a quick collection, only to find out that they are only removed from the (logical) quick collection, not from the (physical) folder on the file system. @!x$
Now, it seams that any folder action does either not work at all or only works partially:
- I cannot import an empty folder, to put images in later
- I cannot drag and drop more than one file at a time to a folder
- When I create a new folder, I never get to see it or name it in Lightroom. It gets created on the file system however, as "new folder (x)".
Why are there no settings under "preference" where to put libraries, back-ups of libraries, which library to use at startup, where and how to create/store previews and their lifetime and so on?
Also, there should be a much more convenient way in the handling of multiple computers and creating/restoring backups!
Reading some of the endless complaints about file corruptions and file losses, I think I will return to RawShooter Premium untill I finally get the feeling that my images and the work on them are safe within Lightroom. RSP is also WAY more snappy and responsive (except for the slide show)!Jeff: You truly offered some amazing insight here! I really thought that Adobe bought Pixmantec for their technology and for the wizzards that drove that technology. Now you made it clear that all that is limited to "inspiration". Wow! So, why DID Adobe buy Pixmantec? Market share? Take the most brilliant and cheap competitor off the market? Some other reason???
Apart from that: I DO know that writing software is not easy. It must be really unpleasant for the hard working "scary brilliant" experts with a serious track history to hear people complain about issues like file handling on a particular operating system instead of admiring their brilliant ideas and concepts.
Alas, this is life: if you would buy a car you would bring it back to the garage to complain about the lock in the trunk that opens at awkward times leading you to loose your groceries instead of talking to those people about how magnificent that particular car takes you trough corners at 100 mph.
And I still believe that the RSP folks did a better job with their version 1 than Adobe did with LR, knowing that Lightroom is more complicated than RSP and taking into consideration that the Adobe people have a much longer history and experience with Photoshop/Album/Bridge. So I would say Adobe can learn a lot from the RSP boys. Just do it!
Tim: as I'm planning to move from RSP to LR (maybe wait until 1.1), the most important starting information I'm looking for right now is how to set up my filesystem and the LR database for the most efficient way of working and for the "most" data security. Neither the LuLa tutorial nor the help file/manual seem to offer much information on this -I believe extremely important- topic.
All this aside from what seems like Windows file handling bugs to me, hopefully adressed in version 1.1 -
Duplicate Handling in not working fot FTP and working for NFS in PI 7.31 SP06
Hi Experts,
To handle the duplicate files and I enabled the check box (Enable Duplicate Handling) in Sender File adapter , but this is working in case of NFS option and it's not working for FTP protocol.
What I observed is if the same file received second time from FTP server and File date and time is current file created date and time in FTP server.
But in case of NFS file time is last file modified date and time.
As per SAP help duplicate file is working based on last file modified date and time stamp - but this is not same for duplicate file in case of FTP.
I am testing this in PI 7.31 SP06.
Please help if you tested this option in PI 7.31 using sender FTP.
Because our scenario we might received from sender FTP duplicate files and this I wanted fix using our standard check box option.
Appreciate your help.
Regards,
Venu.May be have a look at the below blogs if it helps..
http://scn.sap.com/people/sandeep.jaiswal/blog/2008/05/13/adapter-module-to-stop-processing-of-duplicate-file-ftp-location
http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/06/05/how-to-handle-duplicate-files-sender-file-adapter-scenarios-in-process-integration -
Exception handling branch not executing in BPM
Hi all,
We have a problem with exception handling in BPMs.
We have created an exception branch in a block and a transformation step in it. However, the branch doesn't get executed in case of exceptions.
Any ideas? Is this a known problem?
Many thanks,
AldoHi VJ,
The exception name can only be selected from a list. There is no chance of mistaking/misspelling in there.
That is fine as it is. I am quite sure about it.
Any other ideas?
I found SAP note 1039330 but we are already on patch 12 and that correction was released on patch 12.
Thanks, regards,
Aldo -
Empty-Message Handling is not working in receievr File Adapter
Hi All,
I have selected "Empty-Message Handling" = 'Ignore'in Receiver File adapter, but still empty files are creating in target directory.
Message mapping generates output based on the conditon, if the condition is 'false' mapping will generate empty file (no data is being mapped).
Why Receiver file adapter is processing empty fiels even i set 'ignore' empty fiels in configuration (ID)?
Hoe can i manage not to place empty fiels in target directory?
File type is '.txt'
Your help would be appreiciated greatly.
Thanks,
RajeshNot sure why is it not working. Make sure the channel is activated and cache is refreshed properly. But as a workaround you may use OS script checking for size of message and deleting it or configure a BPM to avoid the file creation. Or else an adapter module as shown
/people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module
Regards,
Prateek -
PDF Preview Handler does not work
Hello,
We installed Outlook 2010 on a new Windows 7 32bit machine with Acrobat Reader X.
The preview handler for PDF files does not work in Outlook 2010. Reader works fine by itself.
If I uninstall Reader X and install verison 9.3 then the Preview Handler works fine. Any suggestioers? I have run the repoair on Office and reinstalled Reader X again but to no avail.
- NeilNo i didnt check for office updates.. however i did locate a fix. I am not usually keen to try random fixes so i tested it solo first to confirm it was legitimate. worked fine. http://www.pretentiousname.com/adobe_pdf_x64_fix/
Thank you for attempting to help me though.
Regards,
Will -
JRE7: Exception Handler no longer works
Hello Folks,
in a large-scale Swing App (usually started via JWS) we used to define a global event handler by setting the "sun.awt.exception.handler" environment variable. This used to work under JRE6, but it doesn't work under JRE7 anymore. What is the replacement?
Regards from Germany,
Thomas Nagelhttp://download.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.UncaughtExceptionHandler.html
? -
Xerox_mfp scanner not working in arch (compilation bug?)
I have discovered that my xerox_mfp printer/scanner Xerox Workcentre 3119 is not working in archlinux. However, with the same libsane version, scanner is working in debian.
I checked the two libraries libsane-xerox_mfp.so.1.0.22: they are different in size.
I have copied the debian library in /usr/lib/sane and now the scanner is working.
Compilation bug?
Last edited by hifi25nl (2011-05-24 17:35:01)architecture: x86-64
samsung scx-4200: xerox_mfp sane backend
the same problem
libsane-xerox_mfp.so.1.0.22 from debian libsane_1.0.22-6_amd64 package is working -
GP Exception handling doesn't work
I had implemented the GP Exception handling scenario described in [Configuring Exception Handling|http://help.sap.com/saphelp_nw2004s/helpdata/en/44/10bd4029450d1be10000000a114a6b/frameset.htm].
But when I start the process and input a wrong user id, the exception handling action doesn't start and the process keep in running status. When I check the Background Action Processor Queue, the queue entry of action "Retrieve User Details" retry executing continously.
And when I check the background callable object, it report that "Obsolete process exception: E_NO_USER_FOUND " in section Process Exceptions Check .
Is it a system bug or Is something wrong in system configuration?
BTW: The environment is NW7.0 SP13 Java StackReposting
-
Navigation Handler is not working in jspx page..
Hi,
I have written a sample application with 3 pages.
- one.jpsx
- two.jspx
- error.jspx
In one.jspx page a scriptlet is written to forward the page to error.jspx. But it is not working. Any help or suggestions would be appreciated.
pages:
one.jspx_
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<jsp:directive.page import="javax.faces.context.FacesContext"/>
<jsp:scriptlet>
FacesContext fc = FacesContext.getCurrentInstance();
fc.getApplication().getNavigationHandler().handleNavigation(fc,"","error");
</jsp:scriptlet>
<f:view>
<af:document>
<af:form>
<af:outputText value="This is first page"/>
<af:commandButton text="Click on" action="two"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
error.jspx_
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document>
<af:form>
<af:outputText value="This is error page.."/>
</af:form>
</af:document>
</f:view>
</jsp:root>
two.jspx_
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document>
<af:form>
<af:outputText value="This is second page"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
adfc-config.xml_
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<view id="one">
<page>/one.jspx</page>
</view>
<view id="two">
<page>/two.jspx</page>
</view>
<view id="error">
<page>/error.jspx</page>
</view>
<control-flow-rule>
<from-activity-id>one</from-activity-id>
<control-flow-case>
<from-outcome>two</from-outcome>
<to-activity-id>two</to-activity-id>
</control-flow-case>
</control-flow-rule>
</adfc-config>
Thanks
SukumarWhat's the reason you think the JSP <jsp:scriptlet> tags works in JSF?
CM. -
Navigation Handling does not work !!!!
hi every body
i have two pages Login.jsp and page1.jsp, i want to prevent direct access to page1.jsp unless the user first go to login page and redirected to page1.jsp.. so if the user paste the pathe of page1.jsp immedatily , the application will redirect him to login page.
i used the following code in pre-render method:
FacesContext context=FacesContext.getCurrentInstance();
Application application=context.getApplication();
NavigationHandler navigator=application.getNavigationHandler();
navigator.handleNavigation(context,null, "insecure");-----
but unfortunately it does not work ,
can any one please help me ?
thanks in advance
MohammedDude,
Why not use a filter? It will save you having to add code to every page that requires a user to be logged in.
Try http://securityfilter.sourceforge.net/ for something comprehensive. Or if you just want something that just intercepts a request and checks if a user is logged in (e.g. if the username property in SessionBean1 is set) and redirects the user to the login page if not... it's pretty easy if you've worked with filters before.
Try it out and ask again if you want pointers.
Cheers,
Dave -
SSRS CatalogItem method not working for deploying a shared data source
I have been working with the SSRS CreateCatalogItem method to deploy reports to a SSRS 2012 in SharePoint integrated mode with SharePoint Server Enterprise 2013. I am using Powershell. The CreateCatalogItem method works fine when I deploy RDL files,
but fails when I deploy an RDS. I get an rsInvalidXML1400 error, whatever that is. Here is a cut-down version of my code to establish the bare essentials:
[String] $reportserver = "server20";
[String] $url = "http://$($reportserver)/sites/AdventureWorks/_vti_bin/reportserver/reportservice2010.asmx?WSDL";
[String] $SPFolderPath = "http://server20/sites/AdventureWorks/BICenter/Data%20Connections/";
[String] $fileFolder = "C:\SiteBackups\BIReports\BIReports\";
[String] $itemName = "AdventureWorksCube.rds";
$ssrs = New-WebServiceProxy -uri $url -UseDefaultCredential;
$warnings = $null;
$itemPath= $($fileFolder + $itemName);
$definition = get-content $itemPath -encoding byte;
try
$ssrs.CreateCatalogItem("DataSource", $itemName, $SPFolderPath,$False,$definition,$null, [ref] $warnings);
catch [System.Web.Services.Protocols.SoapException]
$msg = $_.Exception.Detail.InnerText;
Write-Error $msg;
I have a workaround whereby I read the XML of the data source file directly and extract the ConnectString and Extension elements then use the text within them to create the data source using the DataSourceDefinition class. My point is not to get a workaround.
I want to establish that the CreateCatalogItem method indeed does not work when used with the ItemType "DataSource". In the code above, if I change the itemType i.e. first parameter of CreateCatalogItem to "Report" and change the $itemName
to the name of an RDL file, it deploys correctly. Has anyone else encountered this behavior or am I doing something wrong here?
Charles Kangai, MCT
author of the following Microsoft Business Intelligence courses:
http://www.learningtree.co.uk/courses/139/sql-server-analysis-services-for-business-intelligence/
http://www.learningtree.co.uk/courses/134/sql-server-integration-services-for-business-intelligence/
http://www.learningtree.co.uk/courses/140/sql-server-reporting-services/
http://www.learningtree.co.uk/courses/146/sharepoint-business-intelligence/
Charles Kangai, MCTHello,
We can invoke the SSRS proxy endpoint (ReportService2006.asmx)from PowerShell to publish report definitions (.rdl) and report models (.smdl) to a SharePoint library, but this does not apply to data source (.rds) files.
In order to deploy .rds to SharePoint library without using SSDT, you should convert the .rds file to its .rsds counterpart which is pretty contains same content but in different schema.
If you want to fully automate your deployment, you should write your own converter and perform the deployment by utilizing SharePoint feature framework and SSRS proxy endpoint (ReportService2006.asmx).
Please refer to the following blog about this issue:
PowerShell:Deploying SSRS Reports in Integrated Mode
Deploying Reports in Integrated Mode
Regards,
Fanny Liu
If you have any feedback on our support, please click
here.
Fanny Liu
TechNet Community Support
Maybe you are looking for
-
I am having problems burning a playlist to CD - type Maxell CD-R 80XL. I have been using these successfully for a while. iTunes 11.03.42 updated today Error 4251 and wastes a CD I have run windows registry cleaner I have tested CD drive with diagnost
-
How can I keep the name of the user around for each JSP without asking user
I have a number of JSP pages that I give the user access to once they login successfully. I want to be able to keep the name of the user present on every page without having to ask them for it each time. How can I do this? Currently I have a user obj
-
List deployed webservices / webapps in one WLS domain
Is there a way to list all of the deployed webservices through JMX in one WLS domain, or list all of the deployed web applications which contains a web service. Thanks, M.
-
JAVA...A BIG UNKNOWN PROBLEM IS KILLING ME!!
hi friends! i don't know what is exactly the problem, but certainly, java doesn't work at all since i installed the lastest version of quicktime 7.1.6, last updates for mac, and the vlc media player 0.8.6b. i have a mac os x intel 10.4.9. i'm really
-
Left direction Key not working on the keyboard
i have an hp envy 15 laptop.Recently my left direction key on the keyboard has stopped working.the warranty got over this month.can the key be repaired? or is there a way to find out if there is a software glitch involved in this. and what will be th