VDR-1.3.46 Segmentation fault

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

 



I demand that Thomas G?nther may or may not have written...

> If I try to set the time transponder the vdr crashes. :-(

> Program received signal SIGSEGV, Segmentation fault.

> (gdb) bt
> #0  0x401f4cff in strlen () from /lib/libc.so.6
> #1  0x401f4a55 in strdup () from /lib/libc.so.6
> #2  0x080e0b2f in cMenuEditItem::SetValue (this=0xa268768, Value=0x0) at menuitems.c:39

I suggest replacing that line with
  value = Value ? strdup(Value) : NULL;
which _should_ show up other instances without crashing vdr - printf() and
friends will handle it nicely, at least.

|Value| is getting the default value for NoneString, set when calling the
constructor for cMenuEditChanItem in the constructor for cMenuEditTranItem.

[snip]
-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Burn less waste. Use less packaging. Waste less.     USE FEWER RESOURCES.

Mediocre players sink to the level of their opposition.


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux