pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Segfault
2+ messages / 2 participants
[nested] [flat]

* Segfault
@ 2003-10-21 22:16 Oliver Elphick <olly@lfix.co.uk>
  2003-10-21 22:57 ` Re: Segfault Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Oliver Elphick @ 2003-10-21 22:16 UTC (permalink / raw)
  To: pgsql-odbc

This segfault occurs when using psqlodbc-07.03.0100 and DBI 1.35, with
postgresql 7.4beta4 and also 7.3.4.  This is on i386 architecture with
Debian Linux.

In the log we have:

Oct 21 12:08:45 linda postgres[10923]: [2-1] LOG:  connection received: host=127.0.0.1 port=42389
Oct 21 12:08:45 linda postgres[10923]: [3-1] LOG:  connection authorized: user=olly database=bray
Oct 21 12:08:45 linda postgres[10923]: [4-1] LOG:  unexpected EOF on client connection


I have not been able to trace the program because I haven't yet worked
out how to set breakpoints in a module loaded after the run command in
gdb.

$gdb perl
(gdb) set args  -MDBI -e '$db=DBI->connect("dbi:ODBC:bray")'
(gdb) r 
Starting program: /usr/bin/perl -MDBI -e '$db=DBI->connect("dbi:ODBC:bray")'
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 17780)]
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 17780)]
SOCK_Destructor (self=0x53657267) at socket.c:91
91              if (self->socket != -1)
(gdb) bt full
#0  SOCK_Destructor (self=0x53657267) at socket.c:91
No locals.
#1  0x402f500b in CC_cleanup (self=0x82a3258) at connection.c:470
        i = 136983128
        stmt = (StatementClass *) 0x10
#2  0x402f46da in PGAPI_Disconnect (hdbc=0x82a3258) at connection.c:191
        func = 0x4031b765 "PGAPI_Disconnect"
#3  0x40315de8 in SQLDisconnect (ConnectionHandle=0x82a3258) at odbcapi.c:232
        ret = 16
#4  0x402241bf in odbc_db_disconnect () from /usr/lib/perl5/auto/DBD/ODBC/ODBC.so
No symbol table info available.
#5  0x4021becd in XS_DBD__ODBC__db_DESTROY ()
   from /usr/lib/perl5/auto/DBD/ODBC/ODBC.so
No symbol table info available.
#6  0x4020680b in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so
No symbol table info available.
#7  0x080cd066 in Perl_pp_entersub ()
No symbol table info available.
#8  0x08063bdc in Perl_call_sv ()
No symbol table info available.
#9  0x080639b3 in Perl_call_sv ()
No symbol table info available.
#10 0x080d54b5 in Perl_sv_clear ()
No symbol table info available.
#11 0x080d5d00 in Perl_sv_free ()
No symbol table info available.
#12 0x080e1fb0 in Perl_sv_clean_objs ()
No symbol table info available.
#13 0x08061a03 in perl_destruct ()
No symbol table info available.
#14 0x0805f96d in main ()
No symbol table info available.
(gdb) p *self
$1 = {buffer_size = 0, buffer_filled_in = 0, buffer_filled_out = 0,
  buffer_read_in = 0, buffer_in = 0x0, buffer_out = 0x0, socket = 0,
  errormsg = 0x0, errornumber = 0, sadr = {sin_family = 0, sin_port = 0,
    sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"},
  reverse = 0 '\0'}
(gdb)

debug output file attached

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "If ye then be risen with Christ, seek those things 
      which are above, where Christ sitteth on the right 
      hand of God. Set your affection on things above, not 
      on things on the earth."              Colossians 3:1,2

Attachments:

mylog_olly17780.log (text/plain, 15.7K) download CC_connect: entering... CC_connect(): DSN = 'bray', server = 'localhost', port = '5432', database = 'bray', username = 'olly', password='xxxxx' connecting to the server socket... connection to the server socket succeeded. sizeof startup packet = 292 sent the authentication block. sent the authentication block successfully. gonna do authentication read 15, global_socket_buffersize=4096 auth got 'R' areq = 0 auth got 'K' auth got 'Z' sending an empty query... send_query(): conn=137151680, query=' ' send_query: done sending query in QR_Constructor exit QR_Constructor read 3, global_socket_buffersize=4096 send_query: got id = 'I' send_query: got id = 'Z' QResult: in DESTRUCTOR QResult: free memory in, fcount=0 QResult: free memory out QResult: exit DESTRUCTOR empty query seems to be OK. CC_lookup_pg_version: entering... PGAPI_AllocStmt: entering... **** PGAPI_AllocStmt: hdbc = 137151680, stmt = 137177848 CC_add_statement: self=137151680, stmt=137177848 PGAPI_ExecDirect: entering... **** PGAPI_ExecDirect: hstmt=137177848, statement='select version()' PGAPI_ExecDirect: calling PGAPI_Execute... PGAPI_Execute: entering... PGAPI_Execute: clear errors... recycle statement: self= 137177848 Exec_with_parameters_resolved: copying statement params: trans_status=1, len=16, stmt='select version()' stmt_with_params = 'select version()' Sending SELECT statement on stmt=137177848, cursor_name='SQL_CUR0x82d2af8' send_query(): conn=137151680, query='select version()' send_query: done sending query in QR_Constructor exit QR_Constructor read 156, global_socket_buffersize=4096 send_query: got id = 'P' send_query: got id = 'T' QR_fetch_tuples: cursor = '', self->cursor=0 num_fields = 1 READING ATTTYPMOD CI_read_fields: fieldname='version', adtid=25, adtsize=-1, atttypmod=-1 QR_fetch_tuples: past CI_read_fields: num_fields = 1 MALLOC: tuple_size = 100, size = 800 next_tuple: inTuples = true, falling through: fcount = 101, fetch_count = 101 qresult: len=113, buffer='PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)' end of tuple list -- setting inUse to false: this = 137182304 _next_tuple: 'C' fetch_total = 1 & this_fetch = 1 send_query: got id = 'Z' done sending the query: extend_column_bindings: entering ... self=137177928, bindings_allocated=0, num_columns=1 exit extend_column_bindings PGAPI_ExecDirect: returned 0 from PGAPI_Execute PGAPI_Fetch: stmt = 137177848, stmt->result= 137182304 manual_result = 0, use_declarefetch = 0 **** SC_fetch: manual_result fetch: cols=1, lf=0, opts = 137177928, opts->bindings = 137183384, buffer[] = 0 PGAPI_GetData: enter, stmt=137177848 num_rows = 1 value = 'PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)' **** PGAPI_GetData: icol = 0, fCType = 1, field_type = 25, value = 'PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)' copy_and_convert: field_type = 25, fctype = 1, value = 'PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)', cbValueMax=128 DEFAULT: len = 113, ptr = 'PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)' SQL_C_CHAR, default: len = 113, cbValueMax = 128, rgbValueBindRow = 'PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)' Got the PostgreSQL version string: 'PostgreSQL 7.4beta4 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.2 20031005 (Debian prerelease)' Extracted PostgreSQL version number: '7.4' PGAPI_FreeStmt: entering...hstmt=137177848, fOption=1 QResult: in DESTRUCTOR QResult: free memory in, fcount=1 row = 0, num_fields = 1 free [lf=0] 137183248 QResult: free memory out QResult: exit DESTRUCTOR SC_Destructor: self=137177848, self->result=0, self->hdbc=137151680 reset_a_column_binding: entering ... self=137177928, bindings_allocated=1, icol=1 APD_free_params: ENTER, self=137177980 IPD_free_params: ENTER, self=137178008 IPD_free_params: EXIT SC_Destructor: EXIT CC_send_settings: entering... PGAPI_AllocStmt: entering... **** PGAPI_AllocStmt: hdbc = 137151680, stmt = 137182440 CC_add_statement: self=137151680, stmt=137182440 PGAPI_ExecDirect: entering... **** PGAPI_ExecDirect: hstmt=137182440, statement='set DateStyle to 'ISO'' PGAPI_ExecDirect: calling PGAPI_Execute... PGAPI_Execute: entering... PGAPI_Execute: clear errors... recycle statement: self= 137182440 Exec_with_parameters_resolved: copying statement params: trans_status=1, len=22, stmt='set DateStyle to 'ISO'' stmt_with_params = 'set DateStyle to 'ISO'' it's NOT a select statement: stmt=137182440 send_query(): conn=137151680, query='set DateStyle to 'ISO'' send_query: done sending query in QR_Constructor exit QR_Constructor read 6, global_socket_buffersize=4096 send_query: got id = 'C' send_query: ok - 'C' - SET send_query: setting cmdbuffer = 'SET' send_query: returning res = 137183504 send_query: got id = 'Z' PGAPI_ExecDirect: returned 0 from PGAPI_Execute CC_send_settings: result 0, status 1 from set DateStyle PGAPI_ExecDirect: entering... **** PGAPI_ExecDirect: hstmt=137182440, statement='set geqo to 'OFF'' PGAPI_ExecDirect: calling PGAPI_Execute... PGAPI_Execute: entering... PGAPI_Execute: clear errors... PGAPI_Execute: recycling statement (should have been done by app)... recycle statement: self= 137182440 QResult: in DESTRUCTOR QResult: free memory in, fcount=0 QResult: free memory out QResult: exit DESTRUCTOR APD_free_params: ENTER, self=137182572 IPD_free_params: ENTER, self=137182600 IPD_free_params: EXIT Exec_with_parameters_resolved: copying statement params: trans_status=1, len=17, stmt='set geqo to 'OFF'' stmt_with_params = 'set geqo to 'OFF'' it's NOT a select statement: stmt=137182440 send_query(): conn=137151680, query='set geqo to 'OFF'' send_query: done sending query in QR_Constructor exit QR_Constructor read 6, global_socket_buffersize=4096 send_query: got id = 'C' send_query: ok - 'C' - SET send_query: setting cmdbuffer = 'SET' send_query: returning res = 137183504 send_query: got id = 'Z' PGAPI_ExecDirect: returned 0 from PGAPI_Execute CC_send_settings: result 0, status 1 from set geqo PGAPI_ExecDirect: entering... **** PGAPI_ExecDirect: hstmt=137182440, statement='set extra_float_digits to 2' PGAPI_ExecDirect: calling PGAPI_Execute... PGAPI_Execute: entering... PGAPI_Execute: clear errors... PGAPI_Execute: recycling statement (should have been done by app)... recycle statement: self= 137182440 QResult: in DESTRUCTOR QResult: free memory in, fcount=0 QResult: free memory out QResult: exit DESTRUCTOR APD_free_params: ENTER, self=137182572 IPD_free_params: ENTER, self=137182600 IPD_free_params: EXIT Exec_with_parameters_resolved: copying statement params: trans_status=1, len=27, stmt='set extra_float_digits to 2' stmt_with_params = 'set extra_float_digits to 2' it's NOT a select statement: stmt=137182440 send_query(): conn=137151680, query='set extra_float_digits to 2' send_query: done sending query in QR_Constructor exit QR_Constructor read 6, global_socket_buffersize=4096 send_query: got id = 'C' send_query: ok - 'C' - SET send_query: setting cmdbuffer = 'SET' send_query: returning res = 137183504 send_query: got id = 'Z' PGAPI_ExecDirect: returned 0 from PGAPI_Execute CC_send_settings: result 0, status 1 from set extra_float_digits PGAPI_ExecDirect: entering... **** PGAPI_ExecDirect: hstmt=137182440, statement='SET SEARCH_PATH TO prod, public' PGAPI_ExecDirect: calling PGAPI_Execute... PGAPI_Execute: entering... PGAPI_Execute: clear errors... PGAPI_Execute: recycling statement (should have been done by app)... recycle statement: self= 137182440 QResult: in DESTRUCTOR QResult: free memory in, fcount=0 QResult: free memory out QResult: exit DESTRUCTOR APD_free_params: ENTER, self=137182572 IPD_free_params: ENTER, self=137182600 IPD_free_params: EXIT Exec_with_parameters_resolved: copying statement params: trans_status=1, len=31, stmt='SET SEARCH_PATH TO prod, public' stmt_with_params = 'SET SEARCH_PATH TO prod, public' it's NOT a select statement: stmt=137182440 send_query(): conn=137151680, query='SET SEARCH_PATH TO prod, public' send_query: done sending query in QR_Constructor exit QR_Constructor read 6, global_socket_buffersize=4096 send_query: got id = 'C' send_query: ok - 'C' - SET send_query: setting cmdbuffer = 'SET' send_query: returning res = 137183504 send_query: got id = 'Z' PGAPI_ExecDirect: returned 0 from PGAPI_Execute CC_send_settings: result 0, status 1 from 'SET SEARCH_PATH TO prod, public' PGAPI_FreeStmt: entering...hstmt=137182440, fOption=1 QResult: in DESTRUCTOR QResult: free memory in, fcount=0 QResult: free memory out QResult: exit DESTRUCTOR SC_Destructor: self=137182440, self->result=0, self->hdbc=137151680 APD_free_params: ENTER, self=137182572 IPD_free_params: ENTER, self=137182600 IPD_free_params: EXIT SC_Destructor: EXIT CC_lookup_lo: entering... PGAPI_AllocStmt: entering... **** PGAPI_AllocStmt: hdbc = 137151680, stmt = 137177696 CC_add_statement: self=137151680, stmt=137177696 PGAPI_ExecDirect: entering... **** PGAPI_ExecDirect: hstmt=137177696, statement='select oid from pg_type where typname='lo'' PGAPI_ExecDirect: calling PGAPI_Execute... PGAPI_Execute: entering... PGAPI_Execute: clear errors... recycle statement: self= 137177696 Exec_with_parameters_resolved: copying statement params: trans_status=1, len=42, stmt='select oid from pg_type where typname='lo'' stmt_with_params = 'select oid from pg_type where typname='lo'' Sending SELECT statement on stmt=137177696, cursor_name='SQL_CUR0x82d2a60' send_query(): conn=137151680, query='select oid from pg_type where typname='lo'' send_query: done sending query in QR_Constructor exit QR_Constructor read 33, global_socket_buffersize=4096 send_query: got id = 'P' send_query: got id = 'T' QR_fetch_tuples: cursor = '', self->cursor=0 num_fields = 1 READING ATTTYPMOD CI_read_fields: fieldname='oid', adtid=26, adtsize=4, atttypmod=-1 QR_fetch_tuples: past CI_read_fields: num_fields = 1 MALLOC: tuple_size = 100, size = 800 next_tuple: inTuples = true, falling through: fcount = 101, fetch_count = 101 end of tuple list -- setting inUse to false: this = 137183504 _next_tuple: 'C' fetch_total = 0 & this_fetch = 0 _next_tuple: 'C': DONE (fcount == 0) send_query: got id = 'Z' done sending the query: extend_column_bindings: entering ... self=137177776, bindings_allocated=0, num_columns=1 exit extend_column_bindings PGAPI_ExecDirect: returned 0 from PGAPI_Execute PGAPI_Fetch: stmt = 137177696, stmt->result= 137183504 manual_result = 0, use_declarefetch = 0 PGAPI_FreeStmt: entering...hstmt=137177696, fOption=1 QResult: in DESTRUCTOR QResult: free memory in, fcount=0 QResult: free memory out QResult: exit DESTRUCTOR SC_Destructor: self=137177696, self->result=0, self->hdbc=137151680 reset_a_column_binding: entering ... self=137177776, bindings_allocated=1, icol=1 APD_free_params: ENTER, self=137177828 IPD_free_params: ENTER, self=137177856 IPD_free_params: EXIT SC_Destructor: EXIT CC_lookup_characterset: entering... send_query(): conn=137151680, query='select pg_client_encoding()' send_query: done sending query in QR_Constructor exit QR_Constructor read 63, global_socket_buffersize=4096 send_query: got id = 'P' send_query: got id = 'T' QR_fetch_tuples: cursor = '', self->cursor=0 num_fields = 1 READING ATTTYPMOD CI_read_fields: fieldname='pg_client_encoding', adtid=19, adtsize=64, atttypmod=-1 QR_fetch_tuples: past CI_read_fields: num_fields = 1 MALLOC: tuple_size = 100, size = 800 next_tuple: inTuples = true, falling through: fcount = 101, fetch_count = 101 qresult: len=9, buffer='SQL_ASCII' end of tuple list -- setting inUse to false: this = 137183504 _next_tuple: 'C' fetch_total = 1 & this_fetch = 1 send_query: got id = 'Z' QResult: in DESTRUCTOR QResult: free memory in, fcount=1 row = 0, num_fields = 1 free [lf=0] 137183736 QResult: free memory out QResult: exit DESTRUCTOR CC_connect: returning... PGAPI_Connect: returning... [SQLGetFunctions]PGAPI_GetFunctions: entering...1 [SQLGetFunctions]PGAPI_GetFunctions: entering...2 [SQLGetFunctions]PGAPI_GetFunctions: entering...3 [SQLGetFunctions]PGAPI_GetFunctions: entering...4 [SQLGetFunctions]PGAPI_GetFunctions: entering...72 [SQLGetFunctions]PGAPI_GetFunctions: entering...55 [SQLGetFunctions]PGAPI_GetFunctions: entering...5 [SQLGetFunctions]PGAPI_GetFunctions: entering...6 [SQLGetFunctions]PGAPI_GetFunctions: entering...56 [SQLGetFunctions]PGAPI_GetFunctions: entering...40 [SQLGetFunctions]PGAPI_GetFunctions: entering...7 [SQLGetFunctions]PGAPI_GetFunctions: entering...57 [SQLGetFunctions]PGAPI_GetFunctions: entering...8 [SQLGetFunctions]PGAPI_GetFunctions: entering...58 [SQLGetFunctions]PGAPI_GetFunctions: entering...9 [SQLGetFunctions]PGAPI_GetFunctions: entering...41 [SQLGetFunctions]PGAPI_GetFunctions: entering...10 [SQLGetFunctions]PGAPI_GetFunctions: entering...11 [SQLGetFunctions]PGAPI_GetFunctions: entering...12 [SQLGetFunctions]PGAPI_GetFunctions: entering...59 [SQLGetFunctions]PGAPI_GetFunctions: entering...13 [SQLGetFunctions]PGAPI_GetFunctions: entering...60 [SQLGetFunctions]PGAPI_GetFunctions: entering...15 [SQLGetFunctions]PGAPI_GetFunctions: entering...16 [SQLGetFunctions]PGAPI_GetFunctions: entering...14 [SQLGetFunctions]PGAPI_GetFunctions: entering...42 [SQLGetFunctions]PGAPI_GetFunctions: entering...17 [SQLGetFunctions]PGAPI_GetFunctions: entering...43 [SQLGetFunctions]PGAPI_GetFunctions: entering...44 [SQLGetFunctions]PGAPI_GetFunctions: entering...45 [SQLGetFunctions]PGAPI_GetFunctions: entering...46 [SQLGetFunctions]PGAPI_GetFunctions: entering...47 [SQLGetFunctions]PGAPI_GetFunctions: entering...61 [SQLGetFunctions]PGAPI_GetFunctions: entering...62 [SQLGetFunctions]PGAPI_GetFunctions: entering...63 [SQLGetFunctions]PGAPI_GetFunctions: entering...18 [SQLGetFunctions]PGAPI_GetFunctions: entering...48 [SQLGetFunctions]PGAPI_GetFunctions: entering...64 [SQLGetFunctions]PGAPI_GetFunctions: entering...19 [SQLGetFunctions]PGAPI_GetFunctions: entering...65 [SQLGetFunctions]PGAPI_GetFunctions: entering...66 [SQLGetFunctions]PGAPI_GetFunctions: entering...67 [SQLGetFunctions]PGAPI_GetFunctions: entering...49 [SQLGetFunctions]PGAPI_GetFunctions: entering...20 [SQLGetFunctions]PGAPI_GetFunctions: entering...50 [SQLGetFunctions]PGAPI_GetFunctions: entering...21 [SQLGetFunctions]PGAPI_GetFunctions: entering...22 [SQLGetFunctions]PGAPI_GetFunctions: entering...68 [SQLGetFunctions]PGAPI_GetFunctions: entering...51 [SQLGetFunctions]PGAPI_GetFunctions: entering...52 [SQLGetFunctions]PGAPI_GetFunctions: entering...53 [SQLGetFunctions]PGAPI_GetFunctions: entering...70 [SQLGetFunctions]PGAPI_GetFunctions: entering...54 [SQLGetFunctions]PGAPI_GetFunctions: entering...23 [SQLGetInfo]PGAPI_GetInfo: entering...fInfoType=77 PGAPI_GetInfo: p='02.50', len=0, value=0, cbMax=20 [SQLError]**** PGAPI_Error: henv=0, hdbc=137151680 hstmt=0 **** PGAPI_ConnectError: hdbc=137151680 <512> enter CC_get_error enter CC_create_errormsg msg = '' exit CC_create_errormsg exit CC_get_error CC_Get_error returned nothing. **** PGAPI_Error exit code=100 [SQLSetConnectionOption]PGAPI_SetConnectOption: entering fOption = 102 vParam = 1 PGAPI_SetConnectOption: AUTOCOMMIT: transact_status=0, vparam=1 [SQLGetInfo]PGAPI_GetInfo: entering...fInfoType=77 PGAPI_GetInfo: p='02.50', len=0, value=0, cbMax=20 [SQLGetInfo]PGAPI_GetInfo: entering...fInfoType=17 PGAPI_GetInfo: p='PostgreSQL Legacy', len=0, value=0, cbMax=64 [SQLGetFunctions]PGAPI_GetFunctions: entering...61 [SQLGetFunctions]PGAPI_GetFunctions: entering...58 [SQLSetConnectionOption]PGAPI_SetConnectOption: entering fOption = 102 vParam = 1 [SQLGetConnectOption]PGAPI_GetConnectOption: entering... [SQLDisconnect]PGAPI_Disconnect: entering... PGAPI_Disconnect: about to CC_cleanup in CC_Cleanup, self=136983128 after CC_abort SOCK_Destructor
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: Segfault
  2003-10-21 22:16 Segfault Oliver Elphick <olly@lfix.co.uk>
@ 2003-10-21 22:57 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-10-21 22:57 UTC (permalink / raw)
  To: Oliver Elphick <olly@lfix.co.uk>; +Cc: pgsql-odbc

Oliver Elphick <olly@lfix.co.uk> writes:
> I have not been able to trace the program because I haven't yet worked
> out how to set breakpoints in a module loaded after the run command in
> gdb.

Set a breakpoint somewhere after the module will be loaded.  Once the
module has been loaded, you can tell gdb about it with

	gdb> sharedlibrary path-to-.so-file

Then you'll be able to set a breakpoint in the shared library.
(An annoyance here is that you can't restart the program from scratch
without losing this work and having to redo it.  Grumble.)

At least, that works for me on HP-UX.  I assume it's the same on all
gdb platforms ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-10-21 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-21 22:16 Segfault Oliver Elphick <olly@lfix.co.uk>
2003-10-21 22:57 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox