Rui in basic_ostream

Hi,
I�m using Sun Studio 12 (CC �V output CC: Sun C++ 5.9 SunOS_sparc 2007/05/03) and get an rui error using dbx.
Am I doing something wrong? Here is a test case:
$ cat testa.cc
#include <iostream>
#include <iomanip>
int main(int argc, char *argv[])
  std::cout << std::setw(4) << 23;
  return 0;
$ CC -g testa.cc
$ dbx -C a.out
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc
Reading a.out
Reading ld.so.1
Reading rtcapihook.so
Reading libCstd.so.1
Reading libCrun.so.1
Reading libm.so.2
Reading libc.so.1
Reading libdl.so.1
Reading libCstd_isa.so.1
Reading rtcaudit.so
Reading libmapmalloc.so.1
Reading libgen.so.1
Reading libc_psr.so.1
Reading rtcboot.so
Reading librtc.so
(dbx) check -all
access checking - ON
memuse checking - ON
(dbx) run
Running: a.out
(process id 9056)
RTC: Enabling Error Checking...
RTC: Running program...
Read from uninitialized (rui):
Attempting to read 3 bytes at address 0xffbffbe5
    which is 3205 bytes above the current stack pointer
stopped in std::basic_ostream<char,std::char_traits<char> >::operator<< at 0xebd
7fa44
0xebd7fa44: operator<<+0x0108:  ba,a     0xeb94b7d8     ! 0xeb94b7d8
Current function is main
    5     std::cout << std::setw(4) << 23;

You're doing everything right; most probably, it is minor dbx issue and I think it is safe for you to ignore this problem.
If you type 'suppress -d' in dbx you should see a line like this:
(dbx) suppress -d
aib air rui - /usr/lib/libCstd.so.1
...which means that all rui type of errors in libCstd should be suppressed. Apparently, they aren't.
It would help a lot if you report this issue through bugs.sun.com (refer to this site if you have questions as to how to do that: http://wikis.sun.com/display/SunStudio/Sun+Studio+FAQ#SunStudioFAQ-GeneralHowdoIreportabuginSunStudio)

Similar Messages

  • There is a  memory access check rui error in std::basic_ostream

    hi,all
    I use sunstudio 11 under Solaris 1- update 1.
    The ouput of CC -V is :
    CC: Sun C++ 5.8 Patch 121017-02 2006/04/19
    My cpp file(try.cpp) is as following:
    #include <iostream>
    int
    main(int argc,char *argv[] )
         std::cout   << 5;
         return 0;
    }My compiling command line is as following :
    CC -g try.cpp
    I had turn on access check.
    When i debugged a.out, I got the following error:
    Access checking started for program /home/l12751/a.out
    Read from uninitialized (rui):
    Attempting to read 3 bytes at address 0xffbfef05
    which is 3205 bytes above the current stack pointer
    Location of error: (unknown OF), line 0, std::basic_ostream<char,std::char_traits<char> >::operator<<()
    Is this a sunstudio 11 CC 5.8 bug or anything i did wrong?
    How can i do access check for this program? or i can safely ignore the error?
    thanks in advance.

    The problem is in the Solaris runtime library /usr/lib/libCstd.so.1.
    I believe the fix will appear in the next C++ shared library patch (SUNWlibC ).
    You can find all current patches here, including required Solaris patches:
    http://developers.sun.com/prodtech/cc/downloads/patches/index.jsp

  • Unresolved symbol: std::basic_ostream char,std::char_trai ...

    Hi,
    Below is a simple app that I created which demonstrates the mysterious compilation problems that I am seeing. I get the following unresolved symbol :
    Undefined first referenced
    symbol in file
    std::basic_ostream<char,std::char_traits<char> >&std::operator<<(std::basic_ostream<char,std::char_traits<char> >&,const char*) ./libIOTestSD.a(iotest.o)
    std::cout ./libIOTestSD.a(iotest.o)
    [Hint: static member std::cout must be defined in the program]
    I am using workshop 6.1 for comilation. I would appreciate any help on this.
    Thanks in advance.
    Ranga.
    #ifndef COM4
    #include <iostream>
    using namespace std ;
    #else
    #include <iostream.h>
    #endif
    class IOTest {
    public:
    IOTest() ;
    void test(const char* str) ;
    private:
    ostream _os ;
    #include <iotest.hpp>
    IOTest::IOTest()
    _os = &cout ;
    void IOTest::test(const char* str)
    _os << str ;
    #include "iotest.hpp"
    int main(int argc, char** argv)
    IOTest iotest ;
    const char* SAY = "Hello World!!!\n" ;
    iotest.test(SAY) ;
    return 0 ;
    Compilation commands:
    CC -g -pto -mt -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_DEBUG -DDEBUG -KPIC -I. -I../../include -I/opt/ws6.1/SUNWs
    pro/WS6U1/include/CC/Cstd -o iotest.o -c iotest.cpp
    CC -o ./libIOTestSD.a -g -pto -mt -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_DEBUG -DDEBUG -xar iotest.o
    CC -g -pto -mt -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_DEBUG -DDEBUG -KPIC -I. -I../../include -I/opt/ws6.1/SUNWs
    pro/WS6U1/include/CC/Cstd -o testapp.o -c testapp.cpp
    CC -o testapp -g -instances=static -mt +d -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUNIX -DUNICODE -D_UNICODE  -D_DEB
    UG -DDEBUG -z text -z defs -G -KPIC testapp.o -Bstatic -lCstd -lCrun -Bstatic -lIOTestSD -Bdynamic -lgen -lm -lw -lcx
    -lc

    This went away when I moved around the libraries on the link line. Some how I was under the impression that order is not important in newer versions of compilers, but whatever it worked... Also I had to remove -z text.
    So, the new compilation command would be
    CC -o testapp -g -instances=static -mt +d -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUNIX -DUNICODE -D_UNICODE -D_DEB
    UG -DDEBUG -z defs -G -KPIC testapp.o -Bstatic -lIOTestSD -lCstd -lCrun -Bstatic -Bdynamic -lgen -lm -lw -lcx -lc
    Thanks all,
    Rg

  • Make std::basic_ostream ... error ?

    /usr/include/c++/3.3.3/ostream:436: error:
       std::basic_ostream<_CharT, _Traits>&
       std::operator<<(std::basic_ostream<_CharT, _Traits>&, char) [with _CharT =
       char, _Traits = std::char_traits<char>] <near match>
    Can someone help me to decode what the problem could be? I have no idea in what direction to go.

    My guess is that the software was written for an older version of C++ that doesn't support templates or the new stream stuff.  Does the package's website give any indications about what is needed in order to compile it?  gcc versions, etc?

  • Read uninitialized (rui)

    Hello,
    I currenlty try to clean my code of rui/wui etc...
    First thing I am wondering of: is the rui output in the sunstudio debuger always reliable ?
    Or could it be theat I some times does not check that a variable has being initialized indirectly ?
    currently I receive this complaint :
    Read from uninitialized (rui) on thread 1:
    Attempting to read 3 bytes at address 0xffbee799
    which is 289 bytes above the current stack pointer
    Location of error: IBAG_iniparser.cpp, line 0, std::istreambuf_iterator<char,std::char_traits<char> >::istreambuf_iterator()
    typedef std::istreambuf_iterator<char> IsbIt;
       class StreamToString
            IsbIt p;
            IsbIt end;
            public:
               StreamToString(std::istream &is ) : p(is), end(IsbIt()), iss(is)   // the rui comes out here. My guess is end(IsbIt()) causes it.
    The caller passes an ifsream to the overloaded constructor.
    since the rui comes out of istreambuf_iterator<char, std::char_traits<char> >::istreambuf_iterator(0xffbee954, 0xffbee794, 0xffbee9e8, 0x78, 0x0, 0x1)  i cannot step onto this function.
    Any Idea why this could be a rui ?
    regards
    fagery

    In general, RUIs can be false positives, as explained in the dbx documentation and dbx help. For example, you can get an RUI when copying padding bytes in a struct:
    struct S {
    char c;
    int i;
    On sparc, struct S will have 3 uninitialized bytes between members 'c' and 'i'. A struct copy will copy these bytes, leading to a false RUI report. We have been taking steps to reduce the number of false RUIs via additional compiler options.
    But reading from above the stack pointer is not a false positive.
    In this case, the problem appears to be due to a bug in either the library or in dbx. I was able to duplicate your problem using the latest patched Studio 11, but not with the Studio 12 Early Access compiler. I was not able to locate a specific bug report, however. I'll do some more checking, and let you know if I find an associated bug report.

  • Zen V screen completely rui

    Last week i put my zen v to charge as usual (via usb). After a couple of hours i came back to listen to it, only to find that there was something wrong with the screen when i turned it on. It was darker than usual, with a red tint and small 'blotches'. I assumed that this woulkd be corrected after rebooting, but this did not prove the case. I tried to kill the battery and recharge it, but that didnt do anything, other than apparently make it worse. The more i listen to it, the darker the screen gets. Now it seems to be at a point where not only is the screen darker, but its 'freezing' previous screens e.g when you go to the menu, you can still faintly see the 'now playing screen' and etc. As far as i am aware i havent done anything out of the ordinary, and the problem onlyt arose after charging it, so i wondered if anyone could help me, as there are no faq's about this.

    <font face="Comic Sans MS" color="#9933ff">Hi!<font face="Comic Sans MS" color="#9933ff">?<font face="Comic Sans MS" color="#9933ff">Just wanted to let you know that the same exact thing just happened to the Vision M that I gave my daughter as a Christmas present. She has only had it one week and yesterday she put it to charge and when she turned it on the screen had two big black blotches that?look like?ink spots. We also tried to reset the player, but the screen still has not cleared. I have searched for an answer and have not found any, I hope that you have better luck. We are really disappointed and I am going to send the player back to Amazon.com where I purchased it. Hopefully we can get a new one in exchange. Good luck with yours!

  • Campo de usuário em tabela de usuário não respeita o tamanho definido

    Criei uma tabela de usuário e dentro dela criei 10 campos alfanuméricos com tamanho de 10 posições. Ao executar a procedure SP_HELP no SQL Server para verificar o tamanho dos campos na estrutura da tabela verifiquei que o tamanho foi definido como -1, ou seja, o tamanho do campo não foi corretamente informado pelo B1 na criação da tabela e o SQL Server 2005 acabou por assumir como padrão o tamanho máximo de 4096 bytes.
    Se olharmos apenas para a definição da tabela e dos campos no B1 os valores são apresentados corretamente, mas não correspondem aos valores definidos nos metadados do banco. Isso é extremamente problemático pois derruba violentamente a performance das consultas nas tabelas de usuário.
    Existe algum workaround que a gente pode utilizar para resolver este problema?
    Testamos a criação de tabelas e campos de usuários na versão 2005B, rodando no SQL Server 2005 com as PLs 40, 41 e 42 e nessas três configurações o problema ocorreu sempre da mesma forma, como descrito acima.
    Sei que podemos forçar a correção da estrutura de dados das tabelas na mão, pelo comando ALTER TABLE do SQL Server, mas isso será apontado pelo Early Watch? Corremos o risco de perder a garantia do produto?
    Qualquer informação que ajudar a solucionar este problema será muito bem aceita.
    []'s
    Edited by: Rui Pereira on Nov 7, 2008 9:27 AM

    Oi Vitor,
    O problema ainda não foi resolvido. Abrimos um chamado na SAP pois entendemos que este comportamento do SBO não é o correto uma vez que ao definir campos alfanuméricos com o maior tamanho possível, as estruturas (metadados) acabam ficando gigantes e isso joga a performance dos add-ons e consultas formatadas pra baixo.
    Você pode reproduzir o problema criando UDFs em tabelas standard ou em UDTs pelo próprio B1. Não precisa criar os campos pelo SDK para que o problema ocorra não. Basta definir o campo do tipo Alfanumérico que, ao executar a SP_HELP no SQL Server você verá a estrutura do seu campo mais ou menos assim:
    CAMPO NVARCHAR(-1)
    Na documentação do SQL Server é explicado que o -1 representa a capacidade máxima de armazenamento do campo.
    Este problema só acontece no SQL Server 2005. No SQL Server 2000 o B1 se comporta bem.
    Edited by: Gabriel Izar on Oct 8, 2008 3:31 PM

  • Error in replicate created BP in CRM 7.0 to ERP

    Hi you all.
    When I create a new BP in CRM, and go to SMW01 the BDOC gives un error, the message is that I didn't fill all required fields.
    I've check and the account group that should recieve the BP in ERP don't have in obrigatory fields.
    The strange is that when I did the initial load ERP->CRM every thing went fine, and also the delta changes went ok. My problem is only in the creation of new BP in CRM, that should be replicated to ERP.
    Can anybody help with some clues?
    Thanks

    Hi Rui,
    For me the best way to identify the field(s) that are causing the trouble is to debug the creation of the BP, in the ERP system.
    Maybe there you'll find the missing information you need.
    If you're willing to give a try, when you create a business partner in CRM the function CRM_UPLOAD_AFTER_MAP_HANDLER calls a remote ERP function called CRM_UPLOAD_TRIGGER.
    This function will call another functions that are configured in the system (I think is table CRM_BUPA_CALL_FU). One of them is PI_BP_PROXY_BAPI_CUSTOMER that will start gathering the information and will create the customer in include LVV02F3J.
    For me, the best spot to put the break-point is in include LVV02F3J, after the CALL TRANSACTION statement. The error messages will be in T_BDCMSGCOLL parameter, and there maybe you'll find the help you need to find the problem.
    Kind regards,
    Garcia

  • Variável ISS - PLD Nota Fiscal

    Boa Tarde,
    Meu nome é Juliana Sanna e sou da Zethos Consulting. Preciso da ajuda de vocês no seguinte item:
    Estou gerando o PLD de uma nota fiscal de serviços e nao consegui localizar a variável para o valor do ISS - não o retido mas o que é calculado pelo código do imposto ISS.
    Já pesquisei no documento How to Modify Nota Fiscal Report e  também no SAP Notes nao consegui localizar.
    Obrigado
    Juliana Sanna
    Edited by: Rui Pereira on Dec 10, 2008 10:28 AM

    Boa Tarde Juliana
    As variáveis que se encontram no documento que referiu são às únicas disponíveis atualmente para a localização Brasil.
    Sugiro que criei no forum como referido na nota SAP 1028874 uma solicitação para o efeito.
    Paulo Calado
    SAP Business One Forums Team

  • Danfe - Impressão de Código de Barras

    Bom Dia pessoal.
    Estou com um problema na configuração do DANFE da Nota Fiscal Eletrônica. Nele existe um campo de código de barras que utiliza o padrão 128-C. Como a fonte não existe no PLD, instalamos a fonte code128 no windows, e mandamos imprimir no sap B1 com ela, mas na hora de testar num leitor de código de barras, ele simplesmente não lê a informação.
    Alguém já passou por isso?
    Obrigado,
    Diogo Conte
    Edited by: Rui Pereira on Apr 15, 2009 9:57 AM

    Diogo, infelizmente nós não nos acertamos com a Danfe em PLD.
    Partimos para uma solução em Crystal que implantamos em alguns clientes e está atendendo bem. Temos inclusive alguns parceiros usando essa solução.
    De repente esse desenvolvimento pode ser uma saída pra vocês também.
    Um abraço,
    Danilo Souza - EasyOne Consultoria

  • Erro diferença de moeda do documento, PN moeda dolar.

    Grupo,
    Precsio de ajuda.
    Tenho um cliente que tem como principal PN, um cliente de ANGOLA que utiliza a moeda dolar
    O problema é que quando se faz uma NFs para este cliente dar um erro, dizendo que a moeda estar diferente da moeda do documento, e gostaria de saber se não pode se fazer uma NFs com o cliente utilizando a moeda estrangeira.
    Se caso não possa como poderei fazer para este cliente, no caso ele pagar a fatura em dolar com a conversão do dia, onde tb se paga os impostos sobre o faturamento.
    Em que momento o sistema irá entende que será necessario utilizar a conta de diferença de cambio , se no caso não pude informa que o PN tem a moeda em dolar?
    Já tentei de varias formas, e a unica maneria que conseguir entrar a NFs foi definindo o PN = varias moedas, a conta contabil mercado exterior = varias moedas e a conta contabil do Cliente  sendo cadastro no plano de contas como cliente exterior e a moeda-= varias moeda.
    Um unico problema seria que fazendo desta maneira o sistema não contabiliza a diferencia de cambio, mesmo que ela estaja configurada no grupo de item.
    A unica conta que é contabilizada é o mercado exterior., , pois estar configurada com varias moedas.
    Agradeço a todos que puder me ajudar, estou devendo esta ao cliente para poder começar a produção.
    Jaqueline Martins
    Edited by: Rui Pereira on Dec 10, 2008 10:31 AM

    Oi Jaqueline
    se a taxa de ccambio for diferente de um dia para o outro, quando voce fizer o pagamento, a conta
    de variacao cambial sera afetada de certeza.
    Um abraço
    Rui Pereira
    SAP Business One Forums Team

  • Nota Fiscal Eletrônica ISS DF

    Boa tarde,
    Gostaria de uma ajuda para entender melhor como funciona esse tipo de NFE - ISS para o distrito federal.
    Realizei leitura de alguns tópicos, mas ainda não ficou claro.
    Deverá ser criado uma nfe com um item de serviço (modelo 55)?
    Essa nota no sap deverá ficar como nfe normal(marcado na j1b3n como nfe) só que com um item de serviço?
    O envio para a (Mensageria)SEFAZ será feito por um xml padrão nfe (normal modelo 55), existe alguma tag nova para esse serviço?
    Obrigado desde já.
    Amanda

    Bom dia Danilo
    a SAP tem um acordo com a Skill que esta vendendo esse Add-on e sao eles que dao o suporte.
    se precisar de contatos, fale com o Carlos Hernandez primeiro.
    Um abraco
    Rui Pereira
    Euipe de Moderadores SAP Business One

  • PLD Nota Fiscal Mista - Inclusão de mais de um CFOP

    Estou com o seguinte problemas ao incluir itens e serviço na mesma nota tenho que incluir dois CFOP distintos, no PLD eu preciso apenas aumentar o campo da descrição do CFOP para que as descrições apareçam separadas por ";" porém o campo do código do CFOP exibe apenas o CFOP da primeira linha.
    Alguém sabe como incluir todos os códigos?
    Abs
    Oswaldo Simões
    Lago Consultoria
    Edited by: Rui Pereira on Apr 15, 2009 9:54 AM

    Prezado Oswaldo,
    relacionado a questão levantada por você, verifiquei a documentação disponível e sugiro que você verifique as notas 1113549 e 987457 disponíveis no Portal da SAP.
    Espero que a dica ajude a resolver seu caso.
    Atenciosamente,
    Wesley Honorato
    Edited by: Rui Pereira on Apr 21, 2009 5:41 PM

  • Re: Impressão de Nota Fiscal - PLD - Lista de variáveis disponíveis

    Franklin, Boa Tarde!!
    Você sabe qual é o campo do banco de dados ou a variavel que está a descrição do CFOP??
    Eu uso a 1354, mas se é colocado mais de um produto vai repetindo a descrição.
    Já adianto que o campo está no cabeçalho e vai aparecendo a descrição duplicada como por exemplo "Venda de Mercadoria" se for colocado na NF 3 produtos no campo da descrição do CFOP sai "Venda de Mercadoria; Venda de Mercadoria; Venda de Mercadoria;".
    Obrigado pela atenção!!
    Rodrigo
    Edited by: Rui Pereira on May 27, 2008 6:43 PM

    Olá
    Essa é o comportamento normal do sistema atualmente.
    Conforme referido na nota SAP 1113549, foram adicionados espaços em caso de haver mais de CFOP, uma vez que antes esta tudo junto.
    Mas essa é a variável e vai aparecer repetido.
    Paulo Calado
    SAP Business One Forums Team

  • LinkedButton de Sistema

    Bom dia a todos, estou com a seguinte duvida, criei um choosefromlist em uma matrix de sistema e ele está funcionando corretamente, porém, não consigo colocar a seta laranja nesse campo da matrix pelo fato de ser uma matrix de sistema, alguem já precisou fazer isso ou tem idéia de como faço.
    Att,
    Vitor Avila (Flag SAP Solution Factory)
    Edited by: Rui Pereira on Nov 7, 2008 9:27 AM

    Bom dia!!!
    Desculpe a demora,
    no FormLoad, ou no Init, você terá que adicionar o ChooseFromList a este campo,  e depois no evento Choose From List
    //Criando choose from list
                    SAPbouiCOM.ChooseFromListCreationParams oCFLP = null;
                    oCFLP = ((SAPbouiCOM.ChooseFromListCreationParams)(Conexao.SBO_ApplicationUI.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)));
                    oCFLP.MultiSelection = false;//se vai ter mais de uma seleção ou não
                    oCFLP.ObjectType = "2"; //Tipo de objeto
                    oCFLP.UniqueID = "cflTrans";//Id do ChooseFrom list
                    oForm.ChooseFromLists.Add(oCFLP);
    //Na Coluna, depois de criar o Choose From List
                   ((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)oForm.Items.Item("MATRIX")).Columns.Item("Coluna")).ChooseFromListUID = "cflTrans"//Id do ChooseFrom Lista
                    ((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)oForm.Items.Item("MATRIX")).Columns.Item("Coluna")).ChooseFromListAlias= "CardCode"";//Alias do Campo a ser capturado
    //Onde oForm é o Form Instanciado
    //Capturando o Evento do Choose From List
               if( evento.type = "ChooseFromList")
                        SAPbouiCOM.IChooseFromListEvent oCFLEvento = null;
                        oCFLEvento = ((SAPbouiCOM.IChooseFromListEvent)(_eventoItem));
                        string sCFL_ID = null;
                        sCFL_ID = oCFLEvento.ChooseFromListUID;
                        SAPbouiCOM.ChooseFromList oCFL = null;
                        oCFL = oForm.ChooseFromLists.Item(sCFL_ID);
                        SAPbouiCOM.DataTable oDataTable = null;
                        oDataTable = oCFLEvento.SelectedObjects;
                        if (oDataTable != null)
                            if (oDataTable.GetValue(0, 0).ToString() == "")
                                return false;
                            try
                                if(oCFL = "IDCHOOSEFROMLIST")
                               ((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)oForm.Items.Item("MATRIX")).Columns.Item("Coluna")).Value= oDataTable.GetValue(0, 0).ToString();
                            catch (Exception)
    Espero que tenha ajudado.

Maybe you are looking for