List:MySQL++« Previous MessageNext Message »
From:Yigong Liu Date:August 6 2004 7:22pm
Subject:RE: gdb cannot read simple1
View as plain text  
Hi there,

Thanks for the reply.

The simple1 which worked is a modified version, in which I changed to
connect to a remote server which does exist. Since I cannot run a local
server, the original simple1 always crashes. And I am trying to find out
why exception handling is not working here. Suppose the "cannot connect"
exception should be caught instead of crash with coredump?

Also I tried the custom.pl patch (by Warren Young?), it still fails at
examples/custom[1-4].cc. However with custom.pl which Bryan posted Feb
10 with Jim Peden fix, I can compile all the example code smoothly.

So with Bryan's 3.3 patch and custom.pl, I can compile the whole package
smoothly. I also tried ./configure --enable-exception.

However, exception handling still not work for me.

I just hand-build simple1.cc and from gdb I saw the following
stack-trace:

Program terminated with signal 6, Aborted.
...
#0  0xff19bb54 in _libc_kill () from /usr/lib/libc.so.1
(gdb) bt
#0  0xff19bb54 in _libc_kill () from /usr/lib/libc.so.1
#1  0xff1357c4 in abort () from /usr/lib/libc.so.1
#2  0xff261acc in __cxxabiv1::__terminate(void (*)()) (
    handler=0xff1356bc <abort>)
    at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47
#3  0xff261b04 in std::terminate() ()
    at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:57

Could you give me any hints what is wrong?

Thanks a lot!

Yigong


-----Original Message-----
From: Sinisa Milivojevic [mailto:sinisa@stripped] 
Sent: Friday, August 06, 2004 2:51 PM
To: Liu, Yigong
Cc: robin.imrie@stripped; plusplus@stripped
Subject: Re: gdb cannot read simple1

Liu, Yigong writes:
> HI there,
> 
> I still have the exception problem with simple1. Basically if simple1
> found no database server to connect to, it will crash the program
> instead of raising the appropriate exceptions.
> 
> I tried to run gdb to debug it, however, gdb complains that it is not
an
> executable or cannot read the format. However I tried other programs
> compiled with the same compiled, gdb can handle them correctly.
> 
> Any tricks I need before I can use gdb to debug it?
> 
> Thanks
> Yigong
> 
> 

You said before that simple worked for you. What changed ???? 

To build it for debugging you have to compile it manually.

Also, you can not expect to have things running if patching did not
succeed. 

So go back and try to patch it withoum problems. You will have to fix
things manually for the failed patches.

-- 

Sincerely,

-- 
For technical support contracts, go to https://order.mysql.com/?ref=msmi
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <sinisa@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB
/_/  /_/\_, /___/\___\_\___/   Full time Developer and Support
Coordinator
       <___/   www.mysql.com   Larnaca, Cyprus




------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.  
If you have received it in error, please notify the sender
immediately and delete the original.  Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]
Thread
gdb cannot read simple1Yigong Liu6 Aug
  • Re: gdb cannot read simple1Sinisa Milivojevic6 Aug
RE: gdb cannot read simple1Yigong Liu6 Aug