Xprint segfault: init function missing
Adam Jackson
ajax at nwnk.net
Fri Dec 23 10:50:01 PST 2005
On Friday 23 December 2005 09:19, Drew Parsons wrote:
> The backtrace is:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x08056c75 in XpGetMaxWidthHeightRes (printer_name=0x8132468 "colourlw",
> vpr=0x0, width=0xbf89380c, height=0xbf893808, resolution=0xbf893804)
> at mediaSizes.c:705
> 705 pool_msss = XpOidMediumSSNew(value,
vpr->valid_input_trays,
vpr->valid_medium_sizes);
vpr is null and you're dereferencing it.
> (gdb) bt
> #0 0x08056c75 in XpGetMaxWidthHeightRes (
> printer_name=0x8132468 "colourlw", vpr=0x0, width=0xbf89380c,
> height=0xbf893808, resolution=0xbf893804) at mediaSizes.c:705
> #1 0x08054fb0 in InitPrintDrivers (index=0, pScreen=0x813f1c8, argc=10,
> argv=0xbf893a44) at Init.c:1687
InitPrintDrivers is passing in a NULL vpr because GetDimFuncAndRec isn't
filling it in. Which, presumably, is because either driverInits is
zero-sized or because the driver name isn't matching. Breakpoint on
GetDimFuncAndRec and a little snooping should tell you which one it is.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-modular/attachments/20051223/12216c08/attachment.pgp
More information about the xorg-modular
mailing list