Home > pthread create error > pthread_create error 251

Pthread_create Error 251

explicitly in link path, I face anotherproblem where call to 'cout' is aborting. [cout is NOT inside thethread]Any help is appriciated.-Sameer-------------------------------------------------------------------In both cases sources were compiled with optionCCFLAGS = +w -AA -ext -I. +Z -z +inline_level 3 +inst_compiletime +p+DA2.0W-D_POSIX_C_SOURCE=199506L -DO=11.11+ESlit-D_REENTRANT -D_LARGEFILE_SOURCE -D_HPUX_SOURCE -DHPUX-DURFLOG -DXML -DHP -DNEWAUDIT -DHP-I/myhome/include -I/opt/aCC/include_std-mt -g-I/usr/include -c qsrv.cpp -o qsrv.oCASE I :'ldd' out put when pthread_create is failng, but 'cout' are workingok.$gror> ldd qsrvlibc.2 => /usr/lib/pa20_64/libc.2libxerces-c.sl.25 => /myhom/slib/libxerces-c.sl.25libsanitydAPI.sl => /myhome/slib/libsanitydAPI.sllibcnfgaccess.sl => /myhome/slib/libcnfgaccess.sllibcfgdata.sl => /myhome/slib/libcfgdata.sllibdalXml.sl => /myhomeslib/libdalXml.sllibcomnew.sl => /myhome/slib/libcomnew.sllibxml2.sl.7 => /myhome/slib/libxml2.sl.7libstd_v2.2 => /usr/lib/pa20_64/libstd_v2.2libCsup_v2.2 => /usr/lib/pa20_64/libCsup_v2.2libstd.2 => /usr/lib/pa20_64/libstd.2libstream.2 => /usr/lib/pa20_64/libstream.2libCsup.2 => /usr/lib/pa20_64/libCsup.2libpthread.1 => /usr/lib/pa20_64/libpthread.1libm.2 => /usr/lib/pa20_64/libm.2libcl.2 => /usr/lib/pa20_64/libcl.2libdl.1 => /usr/lib/pa20_64/libdl.1libdl.1 => /usr/lib/pa20_64/libdl.1libpthread.1 => /lib/pa20_64/libpthread.1libnsl.1 => /lib/pa20_64/libnsl.1libm.2 => /lib/pa20_64/libm.2libc.2 => /lib/pa20_64/libc.2libdl.1 => /usr/lib/pa20_64/libdl.1libxti.2 => /usr/lib/pa20_64/libxti.2Link command and options./opt/aCC/bin/aCC -Wl,+n,+k,-z+DA2.0W -D_POSIX_C_SOURCE=199506L -D_REENTRANT-D_LARGEFILE_SOURCE-mt-L/myhome/slibqsrv.o queryThread.o-l-lc -l-L/opt/aCC/lib -L/usr/lib/pa20_64 -lstd_v2 -lCsup_v2-o qsrvCASE II:The ldd for linked program when -lpthread added exeplicitly but when'cout' is aborting [the stack trace is at the end]$gror> ldd qsrvlibpthread.1 => /usr/lib/pa20_64/libpthread.1libc.2 => /usr/lib/pa20_64/libc.2libxerces-c.sl.25 => /myhome/slib/libxerces-c.sl.25libsanitydAPI.sl => /myhome/slib/libsanitydAPI.sllibcnfgaccess.sl => /myhome/slib/libcnfgaccess.sllibcfgdata.sl => /myhome/slib/libcfgdata.sllibdalXml.sl =>/myhome/slib/libdalXml.sllibcomnew.sl => /myhome/slib/libcomnew.sllibxml2.sl.7 =>

Technology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries Inside-CRM Inside-ERP VoIP_News I_am_the_dragon MacProTX maxwellarnold Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker Ramnath.Awate JoeTorre Craig Borysowich Locutus Dennis Stevenson DukeGanote Richard http://comp.sys.hp.hpux.narkive.com/VmfkDB2i/pthread-create-error-251-and-cout-aborting iudithm mircea_luca Clinton Jones bracke AbhaiTripathi Adrian_Grigoriu Nikki Klein Iqbalyk blrvenkat numbersguyPA COMPANIES Compuware ZOHO Corporation Cisco HighJump Software View All Topics View All Members View All Companies Toolbox for IT Topics UNIX Groups Ask a New Question HP UX For discussion on HP UX , please visit the UNIX - General Discussions group. More UNIX http://unix.ittoolbox.com/groups/technical-functional/hp-ux-l/weird-pthread_create-error-on-hpux11-90251 Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. Weird pthread create error on HP-UX11 User146608 asked May 1, 2002 | Replies (1) Hi, I have this weird problem on HP-UX11. pthread_create is failing with the following error. error 251: Function is not available. The code is compiled without any warnings or error messages. Your help is highly appreciated. regards Vaidya Join this group 1Reply Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No S

reply to: Sameer Rele: "pthread_create error 251 and cout aborting" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Date: Thu, 19 Aug http://unix.derkeiler.com/Newsgroups/comp.sys.hp.hpux/2004-08/0191.html 2004 23:22:06 GMT Sameer Rele wrote: |I was getting error for https://community.hpe.com/t5/General/pthread-create-on-Itanium-11-23/td-p/5155397 pthread_create() with error code [NOSYS]. When |I added -lpthread library explicitly in link path, I face another |problem where call to 'cout' is aborting. [cout is NOT inside the |thread] | |Any help is appriciated. ... |Link command and options. |/opt/aCC/bin/aCC -Wl,+n,+k,-z | +DA2.0W -D_POSIX_C_SOURCE=199506L -D_REENTRANT |-D_LARGEFILE_SOURCE | pthread_create error -mt | -L/myhome/slib | qsrv.o queryThread.o | -lpthread | -l | -lc -l | -L/opt/aCC/lib -L/usr/lib/pa20_64 -lstd_v2 -lCsup_v2 | -o qsrv You should compile with something like this. /opt/aCC/bin/aCC +DA2.0W -D_LARGEFILE_SOURCE -mt +z -c some.cxx You should link with something more like this. opt/aCC/bin/aCC -Wl,+n,+k,-z +DA2.0W -mt -L/myhome/slib qsrv.o queryThread.o -l -l -o qsrv The -mt option takes care of the -D_POSIX_C_SOURCE=199506L when compiling. The -mt option also takes care of linking with the pthread library. aCC takes care of linking in the right aCC runtime libraries and libc. Your current error is caused by having linked in both the -AA and -AP versions of the c++ runtime libraries. You can see that because both libstd and libstd_v2 show up in the ldd output. You need to consistently compile and link with the -AA option or without the -AA option. When you compile with -AA the code expects the *_v2 libraries. When you link with -AA aCC will link in the *_v2 versions. -- Mike Stroyan, mike.stroyan@hp.com Next message: Alan D Johnson: "Re: has this bug been fixed?" Previous message: Xavier Maillard: "BIND-920 and "chroot"" In reply to: Sameer Rele: "pthread_create error 251 and cout aborting" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Flag as inappropriate (AWS) Security UNIX Linux Coding Usenet Mailing-ListsNewsgroupsAboutPri

Things Small and Medium Business Service Providers All Solutions Services Advise, Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service (SaaS) Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blade Servers Density Optimized Mission Critical Servers Servers for Cloud Server Management All Servers Storage All-flash and Hybrid Storage Midrange and Enterprise Storage Entry Storage Systems Data Availability, Protection and Retention Software Defined Storage Management and Orchestration Storage Networking All Storage Networking Switches Routers Access Points and Controllers Wireless LAN Campus and Branch Networking Data Center Networking Wide Area Network Software Defined Networking Network Functions Virtualization Network Management All Networking About UsSupportClearType to search2086159Solutions Transform to a Hybrid Infrastructure Protect Your Digital Enterprise Empower the Data-Driven Organization Enable Workplace Productivity Cloud Security Big Data Mobility Infrastructure Internet of Things Small and Medium Business Service Providers All Solutions Services Advise, Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service (SaaS) Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blade Servers Density Optimized Mission Critical Servers Servers for Cloud Server Management All Servers Storage All-flash and Hybrid Storage Midrange and Enterprise Storage Entry Storage Systems Data Availability, Protection and Retention Software Defined Storage Management and Orchestration Storage Networking All

 

Related content

pthread_create error 12 enomem

Pthread create Error Enomem p in the non-detached mode and the limited available memory in some system stack is consumed At that point no new threads can be created in non-detached mode until those threads are detached killed or the parent process es killed and restarted Solution create the threads in the detached state with the pthread attr setdetachstate call e g pthread attr init id attr pthread attr setdetachstate id attr PTHREAD CREATE DETACHED pthread create id attr unless you really need the threads in the joinable non-detached state in which case you will have a fixed upper limit

pthread_create error cannot allocate memory

Pthread create Error Cannot Allocate Memory p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn Pthread create detached more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags pthread detach Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like Pthread join you helping each other Join them it only takes a minute Sign

pthread_create error eagain

Pthread create Error Eagain p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies pthread join of this site About Us Learn more about Stack Overflow the company pthread join example Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users pthread attr init Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a Pthread exit minute

pthread_create error codes 12

Pthread create Error Codes p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Why does pthread create return up vote down

pthread_create error enomem

Pthread create Error Enomem p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up pthread create fails w ENOMEM up vote down