Solaris 2.6 - Solaris 8 - differences in memset ABI
Try the following C program against Solaris 2.6 and 8 libraries:
#include <string.h>
char string[133];
main(){
memset (string, 'a', 132);
string[132] = 0;
memset (string + 66, 'b', -33);
printf ("%s", string);
Under Solaris 2.6:
% a.out
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Under Solaris 8:
% a.out
Segmentation Fault
It looks to me like the way memset() is implemented in the libraries is different between Solaris 2.6 and Solaris 8. In Solaris 2.6, the library (incorrectly) ignores memsets with negative numbers as the count. In Solaris 8, the library (correctly) converts the signed integer into an unsigned one, then fails as it tries to memset almost 2GB memory.
Comments welcome.
Does someone can tell me where i can find information about
migration from solaris 2.6 to 8.0 concerning C and C++ programs and shell scripts
Thanks you in advance
sunsifac
Similar Messages
-
SSH Differences between Solaris 9 and Solaris 10
I use public key authentication when connecting via SSH but have noticed a difference between Solaris 9 and Solaris 10 and wondered if it's an environment setup issue. I keep my keys in $HOME/.ssh
When connecting from Solaris 9 I can provide an identity file without a path regardless of the directory that I'm in e.g.
ssh -i my_identity_file user@hostnameThe above works even if I'm not in the $HOME/.ssh directory. But when using the same from Solaris 10 I get the following error:
Warning: Identity file my_identity_file does not exist.If I run the command from $HOME/.ssh on Solaris 10 it connects fine, and if I pass in the path like so it works fine:
ssh -i $HOME/.ssh/my_identity_file user@hostnameIs there a setting specific to SSH somewhere as I can't see anything in my environment that's different between the two systems. There's certainly no entry in $PATH that points to $HOME/.ssh. How could I get SSH to work on Solaris 10 by just providing the identity file name and not the full path
Regards
RichIt's not explicitly defined in /etc/ssh/ssh_config, so I'm assuming it would be using the default which is ~/.ssh/id_dsa.
But surely that's irrelevant if I'm using the -i switch to provide the identity file?
Remember the problem here is that I have to provide a full path to the identity file, whereas before just the filename would do.
Rich -
Difference of nslookup printout on Solaris 9 and Solaris 10
Hi,
I am not sure whether I had to post in Solaris 9 or Solaris 10 forum. So I posted this here too.
We are porting some of our applications from Solaris 9 to Solaris 10. We found a
strange problem/ scenario with the nslookup on Solaris 9.
We issued a ENUM query on Solaris 9 and the output from the nslookup binary on
Solaris 9 is given below :
nslookup -q=naptr -timeout=0 -domainname=. 0.0.2.1.6.2.2.7.2.1.0.e164i.arpa
Server: test.org
Address: xx.xx.xx.xx
0.0.2.1.6.2.2.7.2.1.0.e164i.arpa order = 0, preference = 0
flags = "u"
services = "E2U+sip"
rule = "!^.*$!sip:01272261200;phone-context=[email protected];user=phone!"
replacement = (root)
0.0.2.1.6.2.2.7.2.1.0.e164i.arpa order = 1, preference = 0
flags = "u"
services = "E2U+sip"
rule = "!^.*$!sip:01272261200;phone-context=[email protected];user=phone!"
replacement = (root)
The same query on Solaris 10 has the following output :
nslookup -q=naptr -timeout=0 -domain=. 0.0.2.1.6.2.2.7.2.1.0.e164i.arpa
Server: xx.xx.xx.xx
Address: xx.xx.xx.x#53
0.0.2.1.6.2.2.7.2.1.0.e164i.arpa naptr = 0 0 "u" "E2U+sip" "!^.*$!sip:01272261200\;phone-context=[email protected]\;user=phone!" .
0.0.2.1.6.2.2.7.2.1.0.e164i.arpa naptr = 1 0 "u" "E2U+sip" "!^.*$!sip:01272261200\;phone-context=[email protected]\;user=phone!" .
I was wondering why the backslash is present only on Solaris 10 and not in Solaris 9. Is this a error in Solaris 9 or is the prinout format in Solaris
10 wrong ???
Thanks in advance !!
Regards,
PhilipWe encoutered a problem on the solaris 10 machine do to a applicative bug. At a moment we get the url xxxxx.do?method=toto&method=titi.Havent you used the same parameter name ??
method=toto&method=titi
Looks same to me ;-)
So I envision this as a coding bug than a Solaris bug.
Or ...maybe you can throw some more light if I misunderstood you.
-Rohit -
Difference of request.getParameter on Solaris 8 and Solaris 10
Hi all,
We put our application running on Solaris 8 and BroadVision 6.0 patch AO (JDK 1.4.2) on a machine running Solaris 10.
We encoutered a problem on the solaris 10 machine do to a applicative bug. At a moment we get the url xxxxx.do?method=toto&method=titi.
Here is the part of the code which is executed differently on Solaris 8 and Solaris 10
String name = request.getParameter("method");
to get the value of "method"
In solaris 8; we have name="toto"
In solaris 10, we have name="titi"
Does anyone encoutered the same "bug" ????
Regards,
FredWe encoutered a problem on the solaris 10 machine do to a applicative bug. At a moment we get the url xxxxx.do?method=toto&method=titi.Havent you used the same parameter name ??
method=toto&method=titi
Looks same to me ;-)
So I envision this as a coding bug than a Solaris bug.
Or ...maybe you can throw some more light if I misunderstood you.
-Rohit -
Defferent work usleep in Solaris 10 and Solaris 9
I've compile program in Solaris 9 and Solaris 10(cc or gcc).
On Solaris 9 cpu load is lower then 1 %.
On Solaris 10 cpu load is more then 16%.
Why I have this big difference. 16% is very big for me.I presume you compiled php on the Sun server, was this done using gcc or the Sun One C compiler.
If the latter then you can also use the flag: --enable-nonportable-atomics when you run configure -
Hi,
I'm a newbie here. My basic question follows: what is the difference between Solaris and Open Solaris(Solaris Express)? Which of them would you suggest for building a java development environment?
Thx.
gigoActually there are actually 3 versions. Solaris 10, Solaris express and open solaris.
Solaris 10 is the production version.
Solaris express is snapshots of the solaris 11 development work.
Theres also solaris express developer environment (SXDE) which is solaris express with the developer tools preinstalled.
Open solaris is the community project where the real development takes place.
As a development environment I would probably recommend going with SXDE but if your apps are going to be deployed in production on solaris 10 boxes, you probably need a solaris 10 box for deployment testing.. -
Diff between Solaris 8 and Solaris 9
Hello Experts,
Do we have a document which talks about the diff between Solaris 8 and Solaris 9
I need to know what are the new featured in Solaris 9 and etc....
Thanks in Advance.
Sunil.Sadly, the difference between the early releases of Solaris 9 and the late releases of Solaris 8 isn't that big, since Sun backported a lot of the cool features in Solaris 9 to Solaris 8..
Hence; the answer to your question depends on which Solaris 8 and which Solaris 9 releases you are talking about.
However, a complete list of changes incoperated in the different Solaris 9 releases can be found here:
http://docs.sun.com/app/docs/doc/817-5770/6ml72d6k9?a=view
I guess there are similar lists for Solaris 10, which is even cooler than 8/9.
Enjoy!
//Magnus -
Steps to upgrade Solaris 7 to Solaris 8
Can any one let me know where I can find the detail documentation of how I
upgrade Sun box running Solaris 7 to Solaris 8.Hi,
Please go through this link to know the detailed procedure to upgrade from solaris 7 to 8.
http://www.cims.nyu.edu:8888/ab2/coll.320.7/SPARCINSTALL/@Ab2PageView/3068?
Hope this helps you.
Rgds,
Dhana_slash. -
How do I install dual-boot Solaris 8 and Solaris 9 on one hard disk ?
I tried to install Solaris 8 and Solaris 9 on same disk using CDs, but
the second installation overwrote the first Solaris which was installed
previoudly on the half-disk size partition of same disk.
How do I install two Solarises on one hard disk ?
Thanks
YakovThere are no tricks to get Solaris to dual boot on the same drive. Just allocate and pick the free slices not used by the first Solaris install when you put in the second install. Technically speaking there is nothing preventing you from running seven separately bootable Solaris instances on the same drive (one of 8 available slices is overlap -- slice 2) provided you use a swap file on a root partition instead of reserving a whole slice for swap.
-
Solaris 8 to Solaris 10 upgrade for oracle 11i
Hi
Need to upgrade my 11i (11.5.9) apps from Solaris 8 to Solaris 10
It will also be a 32 bit to 64 bit conversion
Has anyone done this before. or can specify the any major obstacles.
ThanksDear Bansi
I did something similar on HP-UX but you can mainly follow this
1- Check Certification matrix against Solaris 10
2- Install 64 bit engine of 9iR2 using 9iR2 CD's without creation of a database
3- Patch the engine with the same patch level your database on it [9.2.0.3 is standard DB level for 11.5.9 CD's ] If you want to update this level than the existing to be latest [ie 9.2.0.6 check notes and certification matrix] you should do this step after next step
4- Attach your 11.5.9 database to that engine
5- Copy configurations files from old engine to the new engine [appsutil]
6- Copy Applications in similar locations [If migrate to another server using Solaris 10]
7- If you will change any Application paths or database path consider changing context file and rerun autoconfig
Regards,
A.S.Salem -
Compiler directives to differetiate between solaris 9 and solaris 10
i have an API which makes certain function calls which are different for solaris 9 and solaris 10. i cannot add my own defines, since that would mean that applications too would have to define them.
does the Sun Workshop compiler provide any default directives to differentiate between solaris 9 and solaris 10? something like #ifdef __SunOS_5.10 or something like that?
thanks.As explained in the C Users Guide, the compiler predefines several macros, one of which is represents the Solaris version number.
The macro name is derived from the output of the commands
uname -s and uname -r, starting with __, connected by _, and with dots replaced by _.
Running on Solaris 9:
% uname -s
SunOS
% uname -r
5.9
The defined macro name is __SunOS_5_9
On Solaris 10 you get __SunOS_5_10
__SunOS_5_9 -
Upgrading Solaris 8 to Solaris 10 on SUN Sparc E2900 server
Hi,
We have a Sparc E2900 server which has Solaris 8 & Veritas Volume Manager 4.0. UFS & VXFS filesystems are under Veritas control.
We are planning to upgrade Solaris 8 to Solaris 10.
My questions are as follows
1) Can we upgrade from Solaris 8 to Solaris 10 directly ?
2) If Yes does Solaris 10 support Veritas Filesystem ?
3) Which is the best site to get information regarding upgradation ?
Regards,
Tejas J Raval2) If Yes does Solaris 10 support Veritas Filesystem ?No, it dows not. If you want to use VxFS you still need to have Veritas products installed on this server
-
Upgrade to Solaris 10 from Solaris 8
My client has upgraded from Solaris 8 to Solaris 10. In the process the
partition /lu (live update) was created at about 8GB. The root partition is currently at 94% and removal of /lu has not recovered this space. Please
advise best practice to resolve this problem.
regards,
OraclWzd.Thanks for the reply. I guess I did not make it clear. The /lu (live update) directory needs to be removed in its entirety. It sits under the root partition and is the result of the upgrade from Solaris 8 to 10. We backed-up the directory to tape (over 8GBs) and removed all the files and sub-directories under /lu. The utilization under the root partition remains at 94%. Why would the over 8GBs removed not be returned the available space under the root partition?
thanks,
OraclWzd -
Upgrade solaris 8 to solaris 10 with DiskSuite
Hello
After years of not using Solaris I find I have to upgrade a Sun V240 from Solaris 8 to Solaris 10. My concern is that the disks are managed by DiskSuite. Do I have to back DiskSuite out before I do the upgrade and upgrade just on the underlying disks? Or is Solaris clever enough to not have to do this now?
I have looked around but would just like a definative answer from someone on here.
Many Thanks
Darren.Hi,
You can use a IEAK 10 to deploy the installation of IE 10, build your own package, you can add any additional installations or updates you may want to tack onto your Internet Explorer 10 instal.
This is the download link
Internet Explorer Administration Kit 10
http://www.microsoft.com/en-in/download/details.aspx?id=36807
Detailed instructions are listed in the following link
Utility Spotlight: Build your own Internet Explorer 10 installation
http://technet.microsoft.com/en-us/magazine/dn133229.aspx
Yolanda Zhu
TechNet Community Support -
Upgrading Solaris 9 to Solaris 10
Hi, I need to upgrade my workstation from solaris 9 to solaris 10 by CD. And also upgrade solaris 8 to solaris 9.
Do u have any idea how to do it? Can giv step by step?
Thanks
regards,
raymondYou do not need to use liveupgrade to upgrade, unless you want to learn it--it's complicated. It's good for servers and if you wish to go back to pre-upgrade. You need plenty of spare disk space.
First backup your data on your system to another hard disk or DVD.
Then stick in the installation DVD and select "Upgrade" instead of "Initial Install" when asked.
Maybe you are looking for
-
how can i get option to approve or reject an emial in outlook in mac such that once i click on approve, the email is sent and if i click on reject it goes to sender (within our workgroup), i used to have it in windows
-
What's the difference between using and 802.11a and 5GHz only?
What's the difference between using "802.11n (802.11a compatible)" and "802.11n only (5GHz)" modes on the Airport Extreme?
-
Macbook Air hinge!!!
Hi guys! I bought an apple macbook air mid 2013 13,3 core i7 8gb 512gb... And I have a problem with the hinge. When the computer's lid is closed and I apply pressure to the left side of the black hinge bar at the back of the computer it clicks. Can
-
Installed my X-fi Fatailty. In game mode the sound echos too much. (Quake 4). How do I reduce this echo?
-
Generate graphs from Oracle Reports
How to use graphs in Oracle Reports server, the version of Oracle Application Server is 10.1.2.3 thanks,