segfault on example_03


I'm writing an application that will use libgnomeprint. I was going 
through the examples in libbgnomeprintui/examples. Example_01.c worked 
fine, but when I ran example_03.c it segfaulted. I ran within gdb and got 
the following. Any ideas as to what might be wrong?



[bill localhost examples]$ gdb example_03
GNU gdb Red Hat Linux (5.3post-0.20021129.7rh)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) run
Starting program: 
Program received signal SIGSEGV, Segmentation fault.
0x407cb68a in ERR_reason_error_string () from /lib/
(gdb) where
#0  0x407cb68a in ERR_reason_error_string () from /lib/
#1  0x407c7dae in lh_insert () from /lib/
#2  0x407ca58b in ERR_set_implementation () from /lib/
#3  0x407cac23 in ERR_load_ERR_strings () from /lib/
#4  0x40b10f53 in ERR_load_SSL_strings () from /lib/
#5  0x40b0821e in SSL_load_error_strings () from /lib/
#6  0x40715f7e in httpInitialize () from /usr/lib/
#7  0x407161a8 in httpConnectEncrypt () from /usr/lib/
#8  0x40724354 in cupsPrintFiles () from /usr/lib/
#9  0x40723cd4 in cupsPrintFiles () from /usr/lib/
#10 0x40723c73 in cupsPrintFile () from /usr/lib/
#11 0x40018164 in gp_transport_cups_get_type ()
   from /usr/lib/libgnomeprint/
   from /usr/lib/libgnomeprint/
#12 0x4004f86e in gnome_print_transport_close () from 
#13 0x400471c5 in gnome_print_ps2_get_type () from 
#14 0x40039488 in gnome_print_context_close () from 
#15 0x4004dfd3 in gnome_print_frgba_get_type () from 
#16 0x40039488 in gnome_print_context_close () from 
#17 0x40044f90 in gnome_print_multipage_finish_page () from 
#18 0x40039488 in gnome_print_context_close () from 
#19 0x4004212a in gnome_print_job_print () from 
#20 0x08048b1b in my_print () at example_03.c:66
#21 0x08048b72 in main (argc=1, argv=0xbffff774) at example_03.c:77
#22 0x420154a0 in __libc_start_main () from /lib/tls/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]